Update from omapzoom 18-Aug-2008
[bridge-dev.git] / 0001-TI-DSP-BRIDGE-Kconfig-Entry.patch
blob6c653c3914556654a90dd6fb1e1a2379415ad0ed
1 From 4e40e4c8ab34b8af41b3289bb914b2bbf044e54c Mon Sep 17 00:00:00 2001
2 From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
3 Date: Fri, 15 Aug 2008 01:55:54 +0300
4 Subject: [PATCH 01/10] TI DSP BRIDGE: Kconfig Entry
6 Initial port from omapzoom:
7 http://omapzoom.org/gf/project/omapbridge
9 For details,
10 http://omapzoom.org/gf/project/omapbridge/docman/?subdir=3
12 Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
13 ---
14 arch/arm/Kconfig | 1 +
15 drivers/Makefile | 1 +
16 drivers/dsp/bridge/Kbuild | 44 ++++++++++++++++++++++++++++++++++++++++++++
17 drivers/dsp/bridge/Kconfig | 33 +++++++++++++++++++++++++++++++++
18 4 files changed, 79 insertions(+), 0 deletions(-)
19 create mode 100644 drivers/dsp/bridge/Kbuild
20 create mode 100644 drivers/dsp/bridge/Kconfig
22 Index: lk/arch/arm/Kconfig
23 ===================================================================
24 --- lk.orig/arch/arm/Kconfig 2008-08-18 10:38:06.000000000 +0300
25 +++ lk/arch/arm/Kconfig 2008-08-18 10:38:34.000000000 +0300
26 @@ -1232,6 +1232,7 @@
27 if ARCH_OMAP
28 source "drivers/cbus/Kconfig"
29 source "drivers/dsp/dspgateway/Kconfig"
30 +source "drivers/dsp/bridge/Kconfig"
31 endif
33 endmenu
34 Index: lk/drivers/Makefile
35 ===================================================================
36 --- lk.orig/drivers/Makefile 2008-08-18 10:38:06.000000000 +0300
37 +++ lk/drivers/Makefile 2008-08-18 10:38:34.000000000 +0300
38 @@ -40,6 +40,7 @@
39 obj-y += i2c/
40 obj-y += cbus/
41 obj-$(CONFIG_ARCH_OMAP) += dsp/dspgateway/
42 +obj-$(CONFIG_MPU_BRIDGE) += dsp/bridge/
43 obj-$(CONFIG_NUBUS) += nubus/
44 obj-$(CONFIG_ATM) += atm/
45 obj-y += macintosh/
46 Index: lk/drivers/dsp/bridge/Kbuild
47 ===================================================================
48 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
49 +++ lk/drivers/dsp/bridge/Kbuild 2008-08-18 10:38:34.000000000 +0300
50 @@ -0,0 +1,44 @@
51 +obj-$(CONFIG_MPU_BRIDGE) += bridgedriver.o
53 +libgen = gen/gb.o gen/gt.o gen/gs.o gen/gh.o gen/_gt_para.o gen/uuidutil.o
54 +libservices = services/csl.o services/mem.o services/list.o services/dpc.o \
55 + services/isr.o services/kfile.o services/sync.o \
56 + services/clk.o services/cfg.o services/reg.o \
57 + services/regsup.o services/prcs.o services/ntfy.o \
58 + services/dbg.o services/services.o
59 +libwmd = wmd/chnl_sm.o wmd/msg_sm.o wmd/io_sm.o \
60 + wmd/tiomap3430.o wmd/tiomap3430_pwr.o \
61 + wmd/tiomap_sm.o wmd/tiomap_io.o wmd/mmu_fault.o wmd/ue_deh.o
62 +libpmgr = pmgr/chnl.o pmgr/io.o pmgr/msg.o pmgr/cod.o pmgr/dev.o pmgr/wcd.o \
63 + pmgr/dmm.o pmgr/cmm.o pmgr/dbll.o
64 +librmgr = rmgr/dbdcd.o rmgr/disp.o rmgr/drv.o rmgr/mgr.o rmgr/node.o \
65 + rmgr/proc.o rmgr/pwr.o rmgr/rmm.o rmgr/strm.o rmgr/dspdrv.o \
66 + rmgr/nldr.o rmgr/drv_interface.o
67 +libdload = dynload/cload.o dynload/getsection.o dynload/reloc.o
68 +libhw = hw/hw_prcm.o hw/hw_dspssC64P.o hw/hw_mmu.o hw/hw_mbox.o
70 +bridgedriver-objs = $(libgen) $(libservices) $(libwmd) $(libpmgr) $(librmgr) \
71 + $(libdload) $(libhw)
73 +# Debug
74 +ifeq ($(CONFIG_BRIDGE_DEBUG),y)
75 +ccflags-y += -DGT_TRACE -DDEBUG
76 +endif
78 +ccflags-y += -Wno-strict-prototypes
79 +ccflags-y += -DOPT_ELIMINATE_EXTRA_DLOAD -DOPT_REDUCE_SYMBOL_LOOKUPS \
80 + -DOPT_USE_MEMSET
82 +#Machine dependent
83 +ccflags-y += -D_TI_ -D_DB_TIOMAP -DTMS32060 \
84 + -DTICFG_PROC_VER -DTICFG_EVM_TYPE -DCHNL_SMCLASS \
85 + -DCHNL_MESSAGES -DUSE_LEVEL_1_MACROS
87 +#Header files
88 +ccflags-y += -Idrivers/dsp/bridge/services
89 +ccflags-y += -Idrivers/dsp/bridge/wmd
90 +ccflags-y += -Idrivers/dsp/bridge/pmgr
91 +ccflags-y += -Idrivers/dsp/bridge/rmgr
93 +ccflags-y += -Iarch/arm/plat-omap/include/bridge
94 +ccflags-y += -Idrivers/dsp/bridge/hw
95 \ No newline at end of file
96 Index: lk/drivers/dsp/bridge/Kconfig
97 ===================================================================
98 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
99 +++ lk/drivers/dsp/bridge/Kconfig 2008-08-18 10:38:34.000000000 +0300
100 @@ -0,0 +1,33 @@
102 +# DSP Bridge Driver Support
105 +menuconfig MPU_BRIDGE
106 + tristate "DSP Bridge driver"
107 + default n
108 + help
109 + DSP/BIOS Bridge is designed for platforms that contain a GPP and one or
110 + more attached DSPs. The GPP is considered the master or "host" processor,
111 + and the attached DSPs are processing resources that can be utilized by
112 + applications and drivers running on the GPP.
114 +config DISABLE_BRIDGE_DVFS
115 + bool "Disable Bridge Dynamic Voltage and Frequency Scaling (DVFS)"
116 + depends on MPU_BRIDGE
117 + default y
118 + help
119 + DVFS allows DSP Bridge to initiate the operating point change to scale
120 + the chip voltage and frequency in order to match the performance and
121 + power consumption to the current processing requirements.
123 +config DISABLE_BRIDGE_PM
124 + bool "Disable Bridge Power Management"
125 + depends on MPU_BRIDGE && PM
126 + default y
127 + help
128 + DSP Bridge employs power management techniques to save dynamic and
129 + static power consumption of the IVA sub system.
131 +config BRIDGE_DEBUG
132 + depends on MPU_BRIDGE
133 + bool "DSP Bridge Debug Support"