1
linux/arch/arm/mach-omap2
Paul Walmsley 553d239aad OMAP3: clock: clarify usage of struct clksel_rate.flags and struct omap_clk.cpu
Clarify the usage of the struct omap_clk.cpu flags (e.g., CK_*) to use
bits only for individual SoC variants (e.g., CK_3430ES1, CK_3505,
etc.).  Superset flags, such as CK_3XXX or CK_AM35XX, are now defined
as disjunctions of individual SoC variant flags.  This simplifies the
definition and use of these flags.  struct omap_clk record definitions
can now simply specify the bitmask of actual SoCs that the records are
valid for.  The clock init code can simply set a single CPU type mask
bit for the SoC that is currently in use, and test against that,
rather than needing to set some combination of flags.

Similarly, clarify the use of struct clksel_rate.flags.  The bit
allocated for RATE_IN_3XXX has been reassigned, and RATE_IN_3XXX has
been defined as a disjunction of the 34xx and 36xx rate flags.  The
advantages are the same as the above.

Clarify the usage of struct omap_clk.cpu flags such as CK_34XX to only
apply to the SoCs that they name, e.g., OMAP34xx chips.  The previous
practice caused significantly different SoCs, such as OMAP36xx, to be
included in CK_34XX.  In my opinion, this is much more intuitive.

Similarly, clarify the use of struct clksel_rate.flags, such that
RATE_IN_3430ES2PLUS now only applies to 34xx chips with ES level >= 2
- it does not apply to OMAP36xx.

...

At some point, it probably makes sense to collapse the CK_* and
RATE_IN_* flags together into a single bitfield, and possibly use the
existing CHIP_IS_OMAP* flags for platform detection.

...

This all seems to work fine on OMAP34xx and OMAP36xx Beagle.  Not sure
if it works on Sitara or the TI816X, unfortunately I don't have any
here to test with.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
2010-12-21 21:08:14 -07:00
..
include/mach omap2+: Initialize omap_irq_base for entry-macro.S from platform code 2010-12-10 09:42:51 -08:00
board-2430sdp.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-3430sdp.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-3630sdp.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-4430sdp.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-am3517crane.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-am3517evm.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-apollon.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-cm-t35.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-cm-t3517.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-devkit8000.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-flash.c OMAP2plus: Fix static function warnings 2010-10-08 10:02:49 -07:00
board-flash.h OMAP2plus: Fix static function warnings 2010-10-08 10:02:49 -07:00
board-generic.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-h4.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-igep0020.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-igep0030.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-ldp.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-n8x0.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap3beagle.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap3evm.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap3logic.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap3pandora.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap3stalker.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap3touchbook.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-omap4panda.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-overo.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-rm680.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-rx51-peripherals.c omap: rx51: Switch rx51_tpa6130a2_data __initdata to__initdata_or_module 2010-12-20 18:48:16 -08:00
board-rx51-video.c Added video data to support tvout on rx51 2010-12-20 18:48:16 -08:00
board-rx51.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
board-zoom-debugboard.c OMAP2plus: Fix static function warnings 2010-10-08 10:02:49 -07:00
board-zoom-peripherals.c omap: kill all section mismatch warning for omap2plus_defconfig 2010-12-17 17:25:26 -08:00
board-zoom.c OMAP2+: io: split omap2_init_common_hw() 2010-12-21 19:55:11 -07:00
clkt2xxx_apll.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
clkt2xxx_dpllcore.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
clkt2xxx_osc.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clkt2xxx_sys.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clkt2xxx_virt_prcm_set.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
clkt34xx_dpll3m2.c
clkt_clksel.c
clkt_dpll.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clock2xxx.c
clock2xxx.h
clock3xxx_data.c OMAP3: clock: clarify usage of struct clksel_rate.flags and struct omap_clk.cpu 2010-12-21 21:08:14 -07:00
clock3xxx.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clock3xxx.h
clock34xx.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clock34xx.h
clock36xx.c
clock36xx.h
clock44xx_data.c OMAP4: clock data: Export control to enable/disable CORE/PER M3 clocks 2010-12-21 21:08:14 -07:00
clock44xx.h
clock2420_data.c OMAP2xxx clock: fix dss2_fck recalc to use clksel 2010-12-21 21:08:14 -07:00
clock2430_data.c OMAP2xxx clock: fix dss2_fck recalc to use clksel 2010-12-21 21:08:14 -07:00
clock2430.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clock3517.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
clock3517.h
clock_common_data.c
clock.c OMAP2+: clockdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:15 -07:00
clock.h
clockdomain.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
clockdomain.h OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
clockdomains2xxx_3xxx_data.c OMAP2+: clockdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:15 -07:00
clockdomains44xx_data.c OMAP2+: clockdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:15 -07:00
cm1_44xx.h OMAP4: CM instances: add clockdomain register offsets 2010-12-21 21:05:15 -07:00
cm2_44xx.h OMAP4: CM instances: add clockdomain register offsets 2010-12-21 21:05:15 -07:00
cm2xxx_3xxx.c OMAP2/3: clockdomain: remove unneeded .clkstctrl_reg, remove some direct CM register accesses 2010-12-21 21:05:15 -07:00
cm2xxx_3xxx.h OMAP2/3: clockdomain: remove unneeded .clkstctrl_reg, remove some direct CM register accesses 2010-12-21 21:05:15 -07:00
cm44xx.c OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
cm44xx.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
cm-regbits-24xx.h OMAP2/3: clockdomain: remove unneeded .clkstctrl_reg, remove some direct CM register accesses 2010-12-21 21:05:15 -07:00
cm-regbits-34xx.h OMAP4: clockdomains: add OMAP4 PRCM data and OMAP4 support 2010-12-21 21:05:15 -07:00
cm-regbits-44xx.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
cm.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
cminst44xx.c OMAP4: clockdomains: add OMAP4 PRCM data and OMAP4 support 2010-12-21 21:05:15 -07:00
cminst44xx.h OMAP4: clockdomains: add OMAP4 PRCM data and OMAP4 support 2010-12-21 21:05:15 -07:00
common.c OMAP: control: move plat-omap/control.h to mach-omap2/control.h 2010-10-08 11:40:20 -06:00
control.c OMAP3: control/PM: move padconf save code to mach-omap2/control.c 2010-12-21 21:05:16 -07:00
control.h OMAP3: control/PM: move padconf save code to mach-omap2/control.c 2010-12-21 21:05:16 -07:00
cpuidle34xx.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
devices.c OMAP2+: wd_timer: disable on boot via hwmod postsetup mechanism 2010-12-21 19:57:40 -07:00
dma.c OMAP: DMA: Convert DMA library into platform driver 2010-12-20 18:38:31 -08:00
dpll3xxx.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
dsp.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
emu.c
gpio.c OMAP2+: GPIO: device registration 2010-12-07 16:26:57 -08:00
gpmc-nand.c
gpmc-onenand.c
gpmc-smc91x.c
gpmc-smsc911x.c ARM: OMAP3LOGIC: Add generic smsc911x support when connected to GPMC 2010-09-28 11:39:18 -07:00
gpmc.c
hsmmc.c OMAP: control: move plat-omap/control.h to mach-omap2/control.h 2010-10-08 11:40:20 -06:00
hsmmc.h Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 2010-10-25 13:46:56 -07:00
i2c.c
id.c OMAP: control: move plat-omap/control.h to mach-omap2/control.h 2010-10-08 11:40:20 -06:00
io.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
io.h OMAP: plat-omap: Fix static function warnings 2010-10-08 10:12:38 -07:00
iommu2.c
irq.c OMAP3: add comments for erratas i540 and i478 workarounds 2010-12-17 16:48:20 -08:00
Kconfig omap4: opp: add OPP table data 2010-12-21 14:30:40 -08:00
mailbox.c OMAP: mailbox: fix detection for previously supported chips 2010-12-02 05:43:16 -06:00
Makefile OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
Makefile.boot
mcbsp.c OMAP: McBSP: Remove null omap44xx ops comment 2010-10-08 11:40:21 -06:00
mux34xx.c OMAP: mux: Add __func__ macro to pr_xxx macros 2010-11-17 12:01:54 +01:00
mux34xx.h
mux44xx.c OMAP: mux: Add __func__ macro to pr_xxx macros 2010-11-17 12:01:54 +01:00
mux44xx.h OMAP4: mux: Add CBS package data for OMAP4430 ES2 2010-11-17 12:01:52 +01:00
mux2420.c OMAP: mux: Add __func__ macro to pr_xxx macros 2010-11-17 12:01:54 +01:00
mux2420.h
mux2430.c OMAP: mux: Add __func__ macro to pr_xxx macros 2010-11-17 12:01:54 +01:00
mux2430.h
mux.c OMAP: mux: Add __func__ macro to pr_xxx macros 2010-11-17 12:01:54 +01:00
mux.h arm: mach-omap2: remove NULL board_mux from board files 2010-12-02 17:03:41 -08:00
omap4-common.c omap4: l2x0: Enable early BRESP bit 2010-12-18 09:33:01 -08:00
omap44xx-smc.S
omap_hwmod_3xxx_data.c OMAP2+: wd_timer: disable on boot via hwmod postsetup mechanism 2010-12-21 19:57:40 -07:00
omap_hwmod_44xx_data.c OMAP4: PRCM: reorganize existing OMAP4 PRCM header files 2010-12-21 20:01:54 -07:00
omap_hwmod_2420_data.c OMAP2+: wd_timer: disable on boot via hwmod postsetup mechanism 2010-12-21 19:57:40 -07:00
omap_hwmod_2430_data.c OMAP2+: wd_timer: disable on boot via hwmod postsetup mechanism 2010-12-21 19:57:40 -07:00
omap_hwmod_common_data.c
omap_hwmod_common_data.h
omap_hwmod.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
omap_opp_data.h omap: opp: add OMAP3 OPP table data and common init 2010-12-21 14:30:40 -08:00
omap-headsmp.S
omap-hotplug.c
omap-iommu.c OMAP: iommu: make iva2 iommu selectable 2010-12-15 11:33:31 -06:00
omap-smp.c
opp2xxx.h
opp3xxx_data.c omap: opp: add OMAP3 OPP table data and common init 2010-12-21 14:30:40 -08:00
opp4xxx_data.c omap4: opp: add OPP table data 2010-12-21 14:30:40 -08:00
opp2420_data.c
opp2430_data.c
opp.c omap: opp: add OMAP3 OPP table data and common init 2010-12-21 14:30:40 -08:00
pm24xx.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
pm34xx.c OMAP3: control/PM: move padconf save code to mach-omap2/control.c 2010-12-21 21:05:16 -07:00
pm44xx.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
pm_bus.c
pm-debug.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
pm.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
pm.h OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomain2xxx_3xxx.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomain44xx.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomain-common.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomain.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomain.h OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomains2xxx_3xxx_data.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomains2xxx_3xxx_data.h OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomains2xxx_data.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomains3xxx_data.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
powerdomains44xx_data.c OMAP2+: powerdomain: move header file from plat-omap to mach-omap2 2010-12-21 21:05:16 -07:00
prcm44xx.h OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
prcm_mpu44xx.c OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
prcm_mpu44xx.h OMAP4: CM instances: add clockdomain register offsets 2010-12-21 21:05:15 -07:00
prcm-common.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
prcm.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
prm2xxx_3xxx.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
prm2xxx_3xxx.h OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
prm44xx.c OMAP4: PRCM: move global reset function for OMAP4 to an OMAP4-specific file 2010-12-21 21:05:14 -07:00
prm44xx.h OMAP4: CM instances: add clockdomain register offsets 2010-12-21 21:05:15 -07:00
prm-regbits-24xx.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
prm-regbits-34xx.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
prm-regbits-44xx.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
prm.h OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
prminst44xx.c OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
prminst44xx.h OMAP4: PRCM: add OMAP4-specific accessor/mutator functions 2010-12-21 21:05:14 -07:00
scrm44xx.h OMAP4: PRCM: Add SCRM header file 2010-12-21 20:01:54 -07:00
sdram-hynix-h8mbx00u0mer-0em.h
sdram-micron-mt46h32m32lf-6.h
sdram-nokia.c arm: omap: sdram-nokia: add 97.6/195.2 MHz timing data 2010-12-17 15:13:46 -08:00
sdram-nokia.h arm: omap: add sdram-nokia.h 2010-12-17 15:13:44 -08:00
sdram-numonyx-m65kxxxxam.h
sdram-qimonda-hyb18m512160af-6.h
sdrc2xxx.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
sdrc.c OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
sdrc.h OMAP2+: use global values for the SRAM PA addresses 2010-12-21 14:45:56 -08:00
serial.c OMAP2/3: PRM/CM: prefix OMAP2 PRM/CM functions with "omap2_" 2010-12-21 21:05:14 -07:00
sleep24xx.S
sleep34xx.S OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
sram34xx.S OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
sram242x.S OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
sram243x.S OMAP2/3: PRCM: split OMAP2/3-specific PRCM code into OMAP2/3-specific files 2010-12-21 20:01:55 -07:00
timer-gp.c arm: omap2: timer-gp: delete unused variable 2010-11-24 16:49:42 -08:00
timer-gp.h OMAP2plus: Fix static function warnings 2010-10-08 10:02:49 -07:00
timer-mpu.c
usb-ehci.c
usb-fs.c OMAP: control: move plat-omap/control.h to mach-omap2/control.h 2010-10-08 11:40:20 -06:00
usb-musb.c USB: AM35x: Add musb support 2010-10-22 10:22:16 -07:00
usb-tusb6010.c
wd_timer.c OMAP2+: wd_timer: disable on boot via hwmod postsetup mechanism 2010-12-21 19:57:40 -07:00
wd_timer.h OMAP2+: wd_timer: separate watchdog disable code from the rest of mach-omap2/devices.c 2010-12-21 19:56:17 -07:00