Series short description
Subsystems (15)
Tony Lindgren
maintainercover Series short description
Hi all,
Here are the changes needed to make hardware.h local for mach-omap2. These patches are based on v3.6-rc3 and the following patches:
- Arnd's patch "ARM: omap: move platform_data definitions"
- Igor's series "ARM: OMAP: cleanup plat/board.h file"
- Afzal's series "Prepare for GPMC driver conversion (w.r.t MTD)"
- My series "Clean up hardcoded IRQs for mach-omap2, enable SPARSE_IRQ, plaform_data/gpio-omap.h"
Regards,
Tony
---
Tony Lindgren (4):
ARM: OMAP: Remove unused old gpio-switch.h
ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+
ARM: OMAP2+ Move SoC specific headers to be local to mach-omap2
ARM: OMAP1: Move SoC specific headers from plat to mach for omap1
arch/arm/mach-omap1/board-htcherald.c | 4
arch/arm/mach-omap1/devices.c | 2
arch/arm/mach-omap1/include/mach/hardware.h | 285 +++++++++++++++++++++++
arch/arm/mach-omap1/include/mach/omap1510.h | 3
arch/arm/mach-omap1/include/mach/omap16xx.h | 3
arch/arm/mach-omap1/include/mach/omap7xx.h | 3
arch/arm/mach-omap2/am33xx.h | 0
arch/arm/mach-omap2/board-2430sdp.c | 2
arch/arm/mach-omap2/board-3430sdp.c | 9 -
arch/arm/mach-omap2/board-4430sdp.c | 9 -
arch/arm/mach-omap2/board-am3517crane.c | 1
arch/arm/mach-omap2/board-am3517evm.c | 1
arch/arm/mach-omap2/board-apollon.c | 3
arch/arm/mach-omap2/board-cm-t35.c | 2
arch/arm/mach-omap2/board-cm-t3517.c | 3
arch/arm/mach-omap2/board-devkit8000.c | 22 +-
arch/arm/mach-omap2/board-flash.c | 6
arch/arm/mach-omap2/board-generic.c | 1
arch/arm/mach-omap2/board-h4.c | 3
arch/arm/mach-omap2/board-igep0020.c | 1
arch/arm/mach-omap2/board-ldp.c | 10 -
arch/arm/mach-omap2/board-n8x0.c | 10 -
arch/arm/mach-omap2/board-omap3beagle.c | 12 -
arch/arm/mach-omap2/board-omap3evm.c | 11 -
arch/arm/mach-omap2/board-omap3logic.c | 16 -
arch/arm/mach-omap2/board-omap3pandora.c | 9 -
arch/arm/mach-omap2/board-omap3stalker.c | 20 +-
arch/arm/mach-omap2/board-omap3touchbook.c | 9 -
arch/arm/mach-omap2/board-omap4panda.c | 7 -
arch/arm/mach-omap2/board-overo.c | 14 -
arch/arm/mach-omap2/board-rm680.c | 1
arch/arm/mach-omap2/board-rx51.c | 5
arch/arm/mach-omap2/board-ti8168evm.c | 2
arch/arm/mach-omap2/board-zoom-debugboard.c | 4
arch/arm/mach-omap2/board-zoom-display.c | 4
arch/arm/mach-omap2/board-zoom-peripherals.c | 1
arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 2
arch/arm/mach-omap2/clkt_dpll.c | 2
arch/arm/mach-omap2/clock.c | 8 -
arch/arm/mach-omap2/clock2420_data.c | 2
arch/arm/mach-omap2/clock2430.c | 2
arch/arm/mach-omap2/clock2430_data.c | 2
arch/arm/mach-omap2/clock2xxx.c | 2
arch/arm/mach-omap2/clock33xx_data.c | 2
arch/arm/mach-omap2/clock3xxx.c | 2
arch/arm/mach-omap2/clock3xxx_data.c | 3
arch/arm/mach-omap2/clock44xx_data.c | 3
arch/arm/mach-omap2/cm2xxx_3xxx.c | 3
arch/arm/mach-omap2/common.c | 2
arch/arm/mach-omap2/common.h | 6
arch/arm/mach-omap2/control.c | 2
arch/arm/mach-omap2/control.h | 2
arch/arm/mach-omap2/devices.c | 1
arch/arm/mach-omap2/dpll3xxx.c | 2
arch/arm/mach-omap2/dpll44xx.c | 2
arch/arm/mach-omap2/emu.c | 2
arch/arm/mach-omap2/gpmc-nand.c | 5
arch/arm/mach-omap2/gpmc-onenand.c | 5
arch/arm/mach-omap2/gpmc-smc91x.c | 3
arch/arm/mach-omap2/gpmc.c | 4
arch/arm/mach-omap2/hardware.h | 6
arch/arm/mach-omap2/hsmmc.c | 2
arch/arm/mach-omap2/i2c.c | 1
arch/arm/mach-omap2/id.c | 2
arch/arm/mach-omap2/include/mach/hardware.h | 2
arch/arm/mach-omap2/io.c | 3
arch/arm/mach-omap2/irq.c | 3
arch/arm/mach-omap2/mailbox.c | 3
arch/arm/mach-omap2/mcbsp.c | 5
arch/arm/mach-omap2/omap-mpuss-lowpower.c | 3
arch/arm/mach-omap2/omap-smp.c | 2
arch/arm/mach-omap2/omap-wakeupgen.c | 2
arch/arm/mach-omap2/omap24xx.h | 2
arch/arm/mach-omap2/omap34xx.h | 2
arch/arm/mach-omap2/omap4-common.c | 2
arch/arm/mach-omap2/omap44xx.h | 1
arch/arm/mach-omap2/omap54xx.h | 0
arch/arm/mach-omap2/omap_hwmod.c | 8 -
arch/arm/mach-omap2/omap_hwmod_2420_data.c | 5
arch/arm/mach-omap2/omap_hwmod_2430_data.c | 5
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 3
arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 1
arch/arm/mach-omap2/omap_l3_noc.c | 3
arch/arm/mach-omap2/omap_phy_internal.c | 3
arch/arm/mach-omap2/opp2420_data.c | 2
arch/arm/mach-omap2/opp2430_data.c | 2
arch/arm/mach-omap2/opp3xxx_data.c | 2
arch/arm/mach-omap2/opp4xxx_data.c | 3
arch/arm/mach-omap2/powerdomain.c | 6
arch/arm/mach-omap2/powerdomains3xxx_data.c | 4
arch/arm/mach-omap2/prm2xxx_3xxx.c | 4
arch/arm/mach-omap2/prm44xx.c | 4
arch/arm/mach-omap2/sdrc2xxx.c | 2
arch/arm/mach-omap2/sleep24xx.S | 3
arch/arm/mach-omap2/sleep34xx.S | 2
arch/arm/mach-omap2/sleep44xx.S | 2
arch/arm/mach-omap2/soc.h | 1
arch/arm/mach-omap2/sram242x.S | 3
arch/arm/mach-omap2/sram243x.S | 3
arch/arm/mach-omap2/sram34xx.S | 3
arch/arm/mach-omap2/ti81xx.h | 0
arch/arm/mach-omap2/timer.c | 3
arch/arm/mach-omap2/twl-common.c | 2
arch/arm/mach-omap2/usb-host.c | 1
arch/arm/mach-omap2/usb-musb.c | 6
arch/arm/mach-omap2/vc.c | 3
arch/arm/mach-omap2/voltagedomains3xxx_data.c | 3
arch/arm/plat-omap/Makefile | 3
arch/arm/plat-omap/counter_32k.c | 2
arch/arm/plat-omap/devices.c | 91 -------
arch/arm/plat-omap/dma.c | 3
arch/arm/plat-omap/include/plat/gpio-switch.h | 54 ----
arch/arm/plat-omap/include/plat/hardware.h | 293 ------------------------
arch/arm/plat-omap/include/plat/omap4-keypad.h | 2
drivers/spi/spi-omap-uwire.c | 3
drivers/watchdog/omap_wdt.c | 5
sound/soc/omap/omap-abe-twl6040.c | 4
sound/soc/omap/omap-mcpdm.c | 2
118 files changed, 475 insertions(+), 687 deletions(-)
rename arch/arm/{plat-omap/include/plat/omap1510.h => mach-omap1/include/mach/omap1510.h} (97%)
rename arch/arm/{plat-omap/include/plat/omap16xx.h => mach-omap1/include/mach/omap16xx.h} (99%)
rename arch/arm/{plat-omap/include/plat/omap7xx.h => mach-omap1/include/mach/omap7xx.h} (98%)
rename arch/arm/{plat-omap/include/plat/am33xx.h => mach-omap2/am33xx.h} (100%)
create mode 100644 arch/arm/mach-omap2/hardware.h
rename arch/arm/{plat-omap/include/plat/omap24xx.h => mach-omap2/omap24xx.h} (98%)
rename arch/arm/{plat-omap/include/plat/omap34xx.h => mach-omap2/omap34xx.h} (98%)
rename arch/arm/{plat-omap/include/plat/omap44xx.h => mach-omap2/omap44xx.h} (98%)
rename arch/arm/{plat-omap/include/plat/omap54xx.h => mach-omap2/omap54xx.h} (100%)
create mode 100644 arch/arm/mach-omap2/soc.h
rename arch/arm/{plat-omap/include/plat/ti81xx.h => mach-omap2/ti81xx.h} (100%)
delete mode 100644 arch/arm/plat-omap/devices.c
delete mode 100644 arch/arm/plat-omap/include/plat/gpio-switch.h
delete mode 100644 arch/arm/plat-omap/include/plat/hardware.hSignature · 1 line
Signature
Tony Lindgren
maintainerPATCH 1/4 ARM: OMAP: Remove unused old gpio-switch.h
This is no longer used anywhere.
--- arch/arm/plat-omap/include/plat/gpio-switch.h | 54 ------------------------- 1 file changed, 54 deletions(-) delete mode 100644 arch/arm/plat-omap/include/plat/gpio-switch.h
arch/arm/plat-omap/include/plat/gpio-switch.h deleted +0 -54
@@ -1,54 +0,0 @@ -/* -* GPIO switch definitions -* -* Copyright (C) 2006 Nokia Corporation -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_OMAP_GPIO_SWITCH_H -#define __ASM_ARCH_OMAP_GPIO_SWITCH_H - -#include <linux/types.h> - -/* Cover: -* high -> closed -* low -> open -* Connection: -* high -> connected -* low -> disconnected -* Activity: -* high -> active -* low -> inactive -* -*/ -#define OMAP_GPIO_SWITCH_TYPE_COVER 0x0000 -#define OMAP_GPIO_SWITCH_TYPE_CONNECTION 0x0001 -#define OMAP_GPIO_SWITCH_TYPE_ACTIVITY 0x0002 -#define OMAP_GPIO_SWITCH_FLAG_INVERTED 0x0001 -#define OMAP_GPIO_SWITCH_FLAG_OUTPUT 0x0002 - -struct omap_gpio_switch { -const char *name; -s16 gpio; -unsigned flags:4 ; -unsigned type:4 ; - -/* Time in ms to debounce when transitioning from -* inactive state to active state. */ -u16 debounce_rising; -/* Same for transition from active to inactive state. */ -u16 debounce_falling; - -/* notify board-specific code about state changes */ -void (* notify)(void *data,int state); -void *notify_data; -}; - -/* Call at init time only */ -extern void omap_register_gpio_switches (const struct omap_gpio_switch *tbl, -int count); - -#endif
Tony Lindgren
maintainerPATCH 2/4 ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+
In reply to Tony LindgrenAs the plat and mach includes need to disappear for single zImage work, we need to remove plat/hardware.h.
Do this by splitting plat/hardware.h into omap1 and omap2+ specific files.
The old plat/hardware.h already has omap1 only defines, so it gets moved to mach/hardware.h for omap1. For omap2+, we add a new local hardware.h that for now just includes the related SoC headers to keep this patch more readable.
To avoid churn in the omap2+ specific files, let's also introduce local soc.h that includes plat/cpu.h for the revision check. Let's also include plat/serial.h from common.h for all the board-*.c files. This allows making the include files local later on without patching these files again.
Note that only minimal changes are done in this patch for the drivers/watchdog/omap_wdt.c driver to keep things compiling. Further patches are needed to eventually remove cpu_is_omap usage in the drivers.
Also only minimal changes are done to sound/soc/omap/* to remove the unneeded includes and to define OMAP44XX_MCPDM_L3_BASE locally so there's no need to include omap44xx.h.
While at it, also sort the includes in the standard way.
--- arch/arm/mach-omap1/include/mach/hardware.h | 285 +++++++++++++++++++++++ arch/arm/mach-omap2/board-2430sdp.c | 2 arch/arm/mach-omap2/board-3430sdp.c | 9 - arch/arm/mach-omap2/board-4430sdp.c | 9 - arch/arm/mach-omap2/board-am3517crane.c | 1 arch/arm/mach-omap2/board-am3517evm.c | 1 arch/arm/mach-omap2/board-apollon.c | 3 arch/arm/mach-omap2/board-cm-t35.c | 2 arch/arm/mach-omap2/board-cm-t3517.c | 3 arch/arm/mach-omap2/board-devkit8000.c | 22 +- arch/arm/mach-omap2/board-flash.c | 6 arch/arm/mach-omap2/board-generic.c | 1 arch/arm/mach-omap2/board-h4.c | 3 arch/arm/mach-omap2/board-igep0020.c | 1 arch/arm/mach-omap2/board-ldp.c | 10 - arch/arm/mach-omap2/board-n8x0.c | 10 - arch/arm/mach-omap2/board-omap3beagle.c | 12 - arch/arm/mach-omap2/board-omap3evm.c | 11 - arch/arm/mach-omap2/board-omap3logic.c | 16 - arch/arm/mach-omap2/board-omap3pandora.c | 9 - arch/arm/mach-omap2/board-omap3stalker.c | 20 +- arch/arm/mach-omap2/board-omap3touchbook.c | 9 - arch/arm/mach-omap2/board-omap4panda.c | 7 - arch/arm/mach-omap2/board-overo.c | 14 - arch/arm/mach-omap2/board-rm680.c | 1 arch/arm/mach-omap2/board-rx51.c | 5 arch/arm/mach-omap2/board-ti8168evm.c | 2 arch/arm/mach-omap2/board-zoom-debugboard.c | 4 arch/arm/mach-omap2/board-zoom-display.c | 4 arch/arm/mach-omap2/board-zoom-peripherals.c | 1 arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 2 arch/arm/mach-omap2/clkt_dpll.c | 2 arch/arm/mach-omap2/clock.c | 8 - arch/arm/mach-omap2/clock2420_data.c | 2 arch/arm/mach-omap2/clock2430.c | 2 arch/arm/mach-omap2/clock2430_data.c | 2 arch/arm/mach-omap2/clock2xxx.c | 2 arch/arm/mach-omap2/clock3xxx.c | 2 arch/arm/mach-omap2/clock3xxx_data.c | 3 arch/arm/mach-omap2/clock44xx_data.c | 3 arch/arm/mach-omap2/cm2xxx_3xxx.c | 3 arch/arm/mach-omap2/common.c | 2 arch/arm/mach-omap2/common.h | 6 arch/arm/mach-omap2/control.c | 2 arch/arm/mach-omap2/devices.c | 1 arch/arm/mach-omap2/dpll3xxx.c | 2 arch/arm/mach-omap2/dpll44xx.c | 2 arch/arm/mach-omap2/emu.c | 2 arch/arm/mach-omap2/gpmc-nand.c | 5 arch/arm/mach-omap2/gpmc-onenand.c | 5 arch/arm/mach-omap2/gpmc-smc91x.c | 3 arch/arm/mach-omap2/gpmc.c | 4 arch/arm/mach-omap2/hardware.h | 6 arch/arm/mach-omap2/hsmmc.c | 2 arch/arm/mach-omap2/i2c.c | 1 arch/arm/mach-omap2/id.c | 2 arch/arm/mach-omap2/include/mach/hardware.h | 2 arch/arm/mach-omap2/io.c | 3 arch/arm/mach-omap2/irq.c | 3 arch/arm/mach-omap2/mailbox.c | 3 arch/arm/mach-omap2/mcbsp.c | 5 arch/arm/mach-omap2/omap-smp.c | 2 arch/arm/mach-omap2/omap-wakeupgen.c | 2 arch/arm/mach-omap2/omap4-common.c | 2 arch/arm/mach-omap2/omap_hwmod.c | 8 - arch/arm/mach-omap2/omap_hwmod_2420_data.c | 5 arch/arm/mach-omap2/omap_hwmod_2430_data.c | 5 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 3 arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 1 arch/arm/mach-omap2/omap_l3_noc.c | 3 arch/arm/mach-omap2/omap_phy_internal.c | 3 arch/arm/mach-omap2/opp2420_data.c | 2 arch/arm/mach-omap2/opp2430_data.c | 2 arch/arm/mach-omap2/opp3xxx_data.c | 2 arch/arm/mach-omap2/opp4xxx_data.c | 3 arch/arm/mach-omap2/powerdomain.c | 6 arch/arm/mach-omap2/powerdomains3xxx_data.c | 4 arch/arm/mach-omap2/prm2xxx_3xxx.c | 4 arch/arm/mach-omap2/prm44xx.c | 4 arch/arm/mach-omap2/sdrc2xxx.c | 2 arch/arm/mach-omap2/sleep34xx.S | 2 arch/arm/mach-omap2/soc.h | 1 arch/arm/mach-omap2/sram242x.S | 3 arch/arm/mach-omap2/sram243x.S | 3 arch/arm/mach-omap2/sram34xx.S | 3 arch/arm/mach-omap2/timer.c | 3 arch/arm/mach-omap2/twl-common.c | 2 arch/arm/mach-omap2/usb-host.c | 1 arch/arm/mach-omap2/usb-musb.c | 6 arch/arm/mach-omap2/vc.c | 3 arch/arm/mach-omap2/voltagedomains3xxx_data.c | 3 arch/arm/plat-omap/counter_32k.c | 2 arch/arm/plat-omap/dma.c | 3 arch/arm/plat-omap/include/plat/hardware.h | 293 ------------------------ arch/arm/plat-omap/include/plat/omap4-keypad.h | 2 arch/arm/plat-omap/include/plat/omap44xx.h | 1 drivers/watchdog/omap_wdt.c | 5 sound/soc/omap/omap-abe-twl6040.c | 4 sound/soc/omap/omap-mcpdm.c | 2 99 files changed, 461 insertions(+), 519 deletions(-) create mode 100644 arch/arm/mach-omap2/hardware.h create mode 100644 arch/arm/mach-omap2/soc.h delete mode 100644 arch/arm/plat-omap/include/plat/hardware.h
arch/arm/mach-omap1/include/mach/hardware.h +281 -4
@@ -1,11 +1,46 @@/* * arch/arm/mach-omap1/include/mach/hardware.h +* +* Hardware definitions for TI OMAP processors and boards +* +* NOTE: Please put device driver specific defines into a separate header +* file for each driver. +* +* Copyright (C) 2001 RidgeRun, Inc. +* Author: RidgeRun, Inc. Greg Lonnon <[email protected]> +* +* Reorganized for Linux-2.6 by Tony Lindgren <[email protected]> +* and Dirk Behme <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +* +* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED +* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN +* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifndef __MACH_HARDWARE_H -#define __MACH_HARDWARE_H +#ifndef __ASM_ARCH_OMAP_HARDWARE_H +#define __ASM_ARCH_OMAP_HARDWARE_H +#include <asm/sizes.h> #ifndef __ASSEMBLER__ +#include <asm/types.h> +#include <plat/cpu.h> +/* * NOTE: Please use ioremap + __raw_read/write where possible instead of these */
@@ -35,7 +70,249 @@ static inline u32 omap_cs3_phys(void) ? 0 : OMAP_CS3_PHYS; } +#endif /* ifndef __ASSEMBLER__ */ + +#include <plat/serial.h> + +/* +* --------------------------------------------------------------------------- +* Common definitions for all OMAP processors +* NOTE: Put all processor or board specific parts to the special header +* files. +* --------------------------------------------------------------------------- +*/ + +/* +* ---------------------------------------------------------------------------- +* Timers +* ---------------------------------------------------------------------------- +*/ +#define OMAP_MPU_TIMER1_BASE (0xfffec500) +#define OMAP_MPU_TIMER2_BASE (0xfffec600) +#define OMAP_MPU_TIMER3_BASE (0xfffec700) +#define MPU_TIMER_FREE (1 << 6) +#define MPU_TIMER_CLOCK_ENABLE (1 << 5) +#define MPU_TIMER_AR (1 << 1) +#define MPU_TIMER_ST (1 << 0) + +/* +* ---------------------------------------------------------------------------- +* Clocks +* ---------------------------------------------------------------------------- +*/ +#define CLKGEN_REG_BASE (0xfffece00) +#define ARM_CKCTL (CLKGEN_REG_BASE + 0x0) +#define ARM_IDLECT1 (CLKGEN_REG_BASE + 0x4) +#define ARM_IDLECT2 (CLKGEN_REG_BASE + 0x8) +#define ARM_EWUPCT (CLKGEN_REG_BASE + 0xC) +#define ARM_RSTCT1 (CLKGEN_REG_BASE + 0x10) +#define ARM_RSTCT2 (CLKGEN_REG_BASE + 0x14) +#define ARM_SYSST (CLKGEN_REG_BASE + 0x18) +#define ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) + +#define CK_RATEF 1 +#define CK_IDLEF 2 +#define CK_ENABLEF 4 +#define CK_SELECTF 8 +#define SETARM_IDLE_SHIFT + +/* DPLL control registers */ +#define DPLL_CTL (0xfffecf00) + +/* DSP clock control. Must use __raw_readw() and __raw_writew() with these */ +#define DSP_CONFIG_REG_BASE IOMEM(0xe1008000) +#define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0) +#define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4) +#define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8) +#define DSP_RSTCT2 (DSP_CONFIG_REG_BASE + 0x14) + +/* +* --------------------------------------------------------------------------- +* UPLD +* --------------------------------------------------------------------------- +*/ +#define ULPD_REG_BASE (0xfffe0800) +#define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14) +#define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24) +#define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30) +# define DIS_USB_PVCI_CLK (1 << 5)/* no USB/FAC synch */ +# define USB_MCLK_EN (1 << 4)/* enable W4_USB_CLKO */ +#define ULPD_SOFT_REQ (ULPD_REG_BASE + 0x34) +# define SOFT_UDC_REQ (1 << 4) +# define SOFT_USB_CLK_REQ (1 << 3) +# define SOFT_DPLL_REQ (1 << 0) +#define ULPD_DPLL_CTRL (ULPD_REG_BASE + 0x3c) +#define ULPD_STATUS_REQ (ULPD_REG_BASE + 0x40) +#define ULPD_APLL_CTRL (ULPD_REG_BASE + 0x4c) +#define ULPD_POWER_CTRL (ULPD_REG_BASE + 0x50) +#define ULPD_SOFT_DISABLE_REQ_REG (ULPD_REG_BASE + 0x68) +# define DIS_MMC2_DPLL_REQ (1 << 11) +# define DIS_MMC1_DPLL_REQ (1 << 10) +# define DIS_UART3_DPLL_REQ (1 << 9) +# define DIS_UART2_DPLL_REQ (1 << 8) +# define DIS_UART1_DPLL_REQ (1 << 7) +# define DIS_USB_HOST_DPLL_REQ (1 << 6) +#define ULPD_SDW_CLK_DIV_CTRL_SEL (ULPD_REG_BASE + 0x74) +#define ULPD_CAM_CLK_CTRL (ULPD_REG_BASE + 0x7c) + +/* +* --------------------------------------------------------------------------- +* Watchdog timer +* --------------------------------------------------------------------------- +*/ + +/* Watchdog timer within the OMAP3.2 gigacell */ +#define OMAP_MPU_WATCHDOG_BASE (0xfffec800) +#define OMAP_WDT_TIMER (OMAP_MPU_WATCHDOG_BASE + 0x0) +#define OMAP_WDT_LOAD_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) +#define OMAP_WDT_READ_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) +#define OMAP_WDT_TIMER_MODE (OMAP_MPU_WATCHDOG_BASE + 0x8) + +/* +* --------------------------------------------------------------------------- +* Interrupts +* --------------------------------------------------------------------------- +*/ +#ifdef CONFIG_ARCH_OMAP1 + +/* +* XXX: These probably want to be moved to arch/arm/mach-omap/omap1/irq.c +* or something similar.. -- PFM. +*/ + +#define OMAP_IH1_BASE 0xfffecb00 +#define OMAP_IH2_BASE 0xfffe0000 + +#define OMAP_IH1_ITR (OMAP_IH1_BASE + 0x00) +#define OMAP_IH1_MIR (OMAP_IH1_BASE + 0x04) +#define OMAP_IH1_SIR_IRQ (OMAP_IH1_BASE + 0x10) +#define OMAP_IH1_SIR_FIQ (OMAP_IH1_BASE + 0x14) +#define OMAP_IH1_CONTROL (OMAP_IH1_BASE + 0x18) +#define OMAP_IH1_ILR0 (OMAP_IH1_BASE + 0x1c) +#define OMAP_IH1_ISR (OMAP_IH1_BASE + 0x9c) + +#define OMAP_IH2_ITR (OMAP_IH2_BASE + 0x00) +#define OMAP_IH2_MIR (OMAP_IH2_BASE + 0x04) +#define OMAP_IH2_SIR_IRQ (OMAP_IH2_BASE + 0x10) +#define OMAP_IH2_SIR_FIQ (OMAP_IH2_BASE + 0x14) +#define OMAP_IH2_CONTROL (OMAP_IH2_BASE + 0x18) +#define OMAP_IH2_ILR0 (OMAP_IH2_BASE + 0x1c) +#define OMAP_IH2_ISR (OMAP_IH2_BASE + 0x9c) + +#define IRQ_ITR_REG_OFFSET 0x00 +#define IRQ_MIR_REG_OFFSET 0x04 +#define IRQ_SIR_IRQ_REG_OFFSET 0x10 +#define IRQ_SIR_FIQ_REG_OFFSET 0x14 +#define IRQ_CONTROL_REG_OFFSET 0x18 +#define IRQ_ISR_REG_OFFSET 0x9c +#define IRQ_ILR0_REG_OFFSET 0x1c +#define IRQ_GMR_REG_OFFSET 0xa0 +#endif -#endif -#include <plat/hardware.h> +/* +* ---------------------------------------------------------------------------- +* System control registers +* ---------------------------------------------------------------------------- +*/ +#define MOD_CONF_CTRL_0 0xfffe1080 +#define MOD_CONF_CTRL_1 0xfffe1110 + +/* +* ---------------------------------------------------------------------------- +* Pin multiplexing registers +* ---------------------------------------------------------------------------- +*/ +#define FUNC_MUX_CTRL_0 0xfffe1000 +#define FUNC_MUX_CTRL_1 0xfffe1004 +#define FUNC_MUX_CTRL_2 0xfffe1008 +#define COMP_MODE_CTRL_0 0xfffe100c +#define FUNC_MUX_CTRL_3 0xfffe1010 +#define FUNC_MUX_CTRL_4 0xfffe1014 +#define FUNC_MUX_CTRL_5 0xfffe1018 +#define FUNC_MUX_CTRL_6 0xfffe101C +#define FUNC_MUX_CTRL_7 0xfffe1020 +#define FUNC_MUX_CTRL_8 0xfffe1024 +#define FUNC_MUX_CTRL_9 0xfffe1028 +#define FUNC_MUX_CTRL_A 0xfffe102C +#define FUNC_MUX_CTRL_B 0xfffe1030 +#define FUNC_MUX_CTRL_C 0xfffe1034 +#define FUNC_MUX_CTRL_D 0xfffe1038 +#define PULL_DWN_CTRL_0 0xfffe1040 +#define PULL_DWN_CTRL_1 0xfffe1044 +#define PULL_DWN_CTRL_2 0xfffe1048 +#define PULL_DWN_CTRL_3 0xfffe104c +#define PULL_DWN_CTRL_4 0xfffe10ac + +/* OMAP-1610 specific multiplexing registers */ +#define FUNC_MUX_CTRL_E 0xfffe1090 +#define FUNC_MUX_CTRL_F 0xfffe1094 +#define FUNC_MUX_CTRL_10 0xfffe1098 +#define FUNC_MUX_CTRL_11 0xfffe109c +#define FUNC_MUX_CTRL_12 0xfffe10a0 +#define PU_PD_SEL_0 0xfffe10b4 +#define PU_PD_SEL_1 0xfffe10b8 +#define PU_PD_SEL_2 0xfffe10bc +#define PU_PD_SEL_3 0xfffe10c0 +#define PU_PD_SEL_4 0xfffe10c4 + +/* Timer32K for 1610 and 1710*/ +#define OMAP_TIMER32K_BASE 0xFFFBC400 + +/* +* --------------------------------------------------------------------------- +* TIPB bus interface +* --------------------------------------------------------------------------- +*/ +#define TIPB_PUBLIC_CNTL_BASE 0xfffed300 +#define MPU_PUBLIC_TIPB_CNTL (TIPB_PUBLIC_CNTL_BASE + 0x8) +#define TIPB_PRIVATE_CNTL_BASE 0xfffeca00 +#define MPU_PRIVATE_TIPB_CNTL (TIPB_PRIVATE_CNTL_BASE + 0x8) + +/* +* ---------------------------------------------------------------------------- +* MPUI interface +* ---------------------------------------------------------------------------- +*/ +#define MPUI_BASE (0xfffec900) +#define MPUI_CTRL (MPUI_BASE + 0x0) +#define MPUI_DEBUG_ADDR (MPUI_BASE + 0x4) +#define MPUI_DEBUG_DATA (MPUI_BASE + 0x8) +#define MPUI_DEBUG_FLAG (MPUI_BASE + 0xc) +#define MPUI_STATUS_REG (MPUI_BASE + 0x10) +#define MPUI_DSP_STATUS (MPUI_BASE + 0x14) +#define MPUI_DSP_BOOT_CONFIG (MPUI_BASE + 0x18) +#define MPUI_DSP_API_CONFIG (MPUI_BASE + 0x1c) + +/* +* ---------------------------------------------------------------------------- +* LED Pulse Generator +* ---------------------------------------------------------------------------- +*/ +#define OMAP_LPG1_BASE 0xfffbd000 +#define OMAP_LPG2_BASE 0xfffbd800 +#define OMAP_LPG1_LCR (OMAP_LPG1_BASE + 0x00) +#define OMAP_LPG1_PMR (OMAP_LPG1_BASE + 0x04) +#define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00) +#define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04) + +/* +* ---------------------------------------------------------------------------- +* Pulse-Width Light +* ---------------------------------------------------------------------------- +*/ +#define OMAP_PWL_BASE 0xfffb5800 +#define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00) +#define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04) + +/* +* --------------------------------------------------------------------------- +* Processor specific defines +* --------------------------------------------------------------------------- +*/ + +#include <plat/omap7xx.h> +#include <plat/omap1510.h> +#include <plat/omap16xx.h> + +#endif /* __ASM_ARCH_OMAP_HARDWARE_H */
arch/arm/mach-omap2/board-2430sdp.c +0 -2
@@ -36,8 +36,6 @@#include <plat/usb.h> #include <plat/gpmc-smc91x.h> -#include <mach/hardware.h> -#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h>
arch/arm/mach-omap2/board-3430sdp.c +4 -5
@@ -24,22 +24,21 @@#include <linux/io.h> #include <linux/gpio.h> #include <linux/mmc/host.h> +#include <linux/platform_data/spi-omap2-mcspi.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/usb.h> -#include "common.h" #include <plat/dma.h> #include <plat/gpmc.h> +#include <plat/gpmc-smc91x.h> +#include <video/omapdss.h> #include <video/omap-panel-tfp410.h> -#include <plat/gpmc-smc91x.h> - +#include "common.h" #include "board-flash.h" #include "mux.h" #include "sdram-qimonda-hyb18m512160af-6.h"
arch/arm/mach-omap2/board-4430sdp.c +5 -4
@@ -27,23 +27,24 @@#include <linux/leds.h> #include <linux/leds_pwm.h> #include <linux/platform_data/omap4-keypad.h> +#include <linux/platform_data/omap-abe-twl6040.h> +#include <linux/wl12xx.h> -#include <mach/hardware.h> #include <asm/hardware/gic.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "common.h" #include <plat/usb.h> #include <plat/mmc.h> #include <plat/omap4-keypad.h> +#include <video/omapdss.h> #include <video/omap-panel-nokia-dsi.h> #include <video/omap-panel-picodlp.h> -#include <linux/wl12xx.h> -#include <linux/platform_data/omap-abe-twl6040.h> +#include "hardware.h" +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "control.h"
arch/arm/mach-omap2/board-am3517crane.c +0 -1
@@ -21,7 +21,6 @@#include <linux/init.h> #include <linux/gpio.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h>
arch/arm/mach-omap2/board-am3517evm.c +0 -1
@@ -33,7 +33,6 @@#include <plat/usb.h> -#include <mach/hardware.h> #include <mach/am35xx.h> #include <video/omapdss.h>
arch/arm/mach-omap2/board-apollon.c +1 -2
@@ -29,18 +29,17 @@#include <linux/smc91x.h> #include <linux/gpio.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/flash.h> #include <plat/led.h> -#include "common.h" #include <plat/gpmc.h> #include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> +#include "common.h" #include "mux.h" #include "control.h"
arch/arm/mach-omap2/board-cm-t35.c +0 -2
@@ -43,8 +43,6 @@#include <plat/gpmc.h> #include <plat/usb.h> -#include <mach/hardware.h> -#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h>
arch/arm/mach-omap2/board-cm-t3517.c +1 -2
@@ -33,15 +33,14 @@#include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/can/platform/ti_hecc.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/usb.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/gpmc.h> -#include <plat/serial.h> #include <mach/am35xx.h>
arch/arm/mach-omap2/board-devkit8000.c +9 -13
@@ -24,38 +24,34 @@#include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/mmc/host.h> -#include <linux/regulator/machine.h> #include <linux/i2c/twl.h> +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/input/matrix_keypad.h> +#include <linux/spi/spi.h> +#include <linux/dm9000.h> -#include <mach/hardware.h> -#include <mach/id.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include "common.h" #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> + +#include <mach/id.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <linux/input/matrix_keypad.h> -#include <linux/spi/spi.h> -#include <linux/dm9000.h> -#include <linux/interrupt.h> -#include "sdram-micron-mt46h32m32lf-6.h" - +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "common-board-devices.h"
arch/arm/mach-omap2/board-flash.c +3 -3
@@ -16,13 +16,13 @@#include <linux/platform_device.h> #include <linux/mtd/physmap.h> #include <linux/io.h> - -#include <plat/cpu.h> -#include <plat/gpmc.h> #include <linux/platform_data/mtd-nand-omap2.h> #include <linux/platform_data/mtd-onenand-omap2.h> + +#include <plat/gpmc.h> #include <plat/tc.h> +#include "common.h" #include "board-flash.h" #define REG_FPGA_REV 0x10
arch/arm/mach-omap2/board-generic.c +0 -1
@@ -16,7 +16,6 @@#include <linux/of_platform.h> #include <linux/irqdomain.h> -#include <mach/hardware.h> #include <asm/hardware/gic.h> #include <asm/mach/arch.h>
arch/arm/mach-omap2/board-h4.c +1 -2
@@ -27,12 +27,10 @@#include <linux/io.h> #include <linux/input/matrix_keypad.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "common.h" #include <plat/menelaus.h> #include <plat/dma.h> #include <plat/gpmc.h>
@@ -41,6 +39,7 @@#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> +#include "common.h" #include "mux.h" #include "control.h"
arch/arm/mach-omap2/board-igep0020.c +0 -1
@@ -31,7 +31,6 @@#include <plat/gpmc.h> #include <plat/usb.h> -#include <plat/serial.h> #include <video/omapdss.h> #include <video/omap-panel-tfp410.h>
arch/arm/mach-omap2/board-ldp.c +4 -6
@@ -28,24 +28,22 @@#include <linux/io.h> #include <linux/smsc911x.h> #include <linux/mmc/host.h> +#include <linux/platform_data/spi-omap2-mcspi.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include "common.h" #include <plat/gpmc.h> -#include <mach/board-zoom.h> - -#include <asm/delay.h> #include <plat/usb.h> #include <plat/gpmc-smsc911x.h> +#include <mach/board-zoom.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> +#include "common.h" #include "board-flash.h" #include "mux.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-n8x0.c +5 -5
@@ -20,18 +20,18 @@#include <linux/i2c.h> #include <linux/spi/spi.h> #include <linux/usb/musb.h> -#include <sound/tlv320aic3x.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/platform_data/mtd-onenand-omap2.h> #include <asm/mach/arch.h> #include <asm/mach-types.h> -#include "common.h" #include <plat/menelaus.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <linux/platform_data/mtd-onenand-omap2.h> #include <plat/mmc.h> -#include <plat/serial.h> +#include <sound/tlv320aic3x.h> + +#include "common.h" #include "mux.h" #define TUSB6010_ASYNC_CS 1
arch/arm/mach-omap2/board-omap3beagle.c +5 -7
@@ -24,29 +24,27 @@#include <linux/input.h> #include <linux/gpio_keys.h> #include <linux/opp.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/mmc/host.h> -#include <linux/regulator/machine.h> #include <linux/i2c/twl.h> +#include <linux/platform_data/mtd-nand-omap2.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include "common.h" -#include <video/omapdss.h> -#include <video/omap-panel-tfp410.h> #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> #include <plat/omap_device.h> +#include <video/omapdss.h> +#include <video/omap-panel-tfp410.h> + +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "pm.h"
arch/arm/mach-omap2/board-omap3evm.c +4 -7
@@ -23,35 +23,32 @@#include <linux/input/matrix_keypad.h> #include <linux/leds.h> #include <linux/interrupt.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> -#include <linux/spi/spi.h> #include <linux/spi/ads7846.h> #include <linux/i2c/twl.h> #include <linux/usb/otg.h> #include <linux/smsc911x.h> - +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> #include <linux/wl12xx.h> #include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> #include <linux/mmc/host.h> #include <linux/export.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/usb.h> -#include <linux/platform_data/mtd-nand-omap2.h> -#include "common.h" -#include <linux/platform_data/spi-omap2-mcspi.h> +#include <video/omapdss.h> #include <video/omap-panel-tfp410.h> +#include "common.h" #include "mux.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-omap3logic.c +6 -10
@@ -23,30 +23,26 @@#include <linux/clk.h> #include <linux/io.h> #include <linux/gpio.h> -#include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> -#include <linux/i2c/twl.h> #include <linux/mmc/host.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "mux.h" -#include "hsmmc.h" -#include "control.h" -#include "common-board-devices.h" - -#include <plat/mux.h> -#include "common.h" #include <plat/gpmc-smsc911x.h> #include <plat/gpmc.h> #include <plat/sdrc.h> #include <plat/usb.h> +#include "common.h" +#include "mux.h" +#include "hsmmc.h" +#include "control.h" +#include "common-board-devices.h" +#define OMAP3LOGIC_SMSC911X_CS 1#define OMAP3530_LV_SOM_MMC_GPIO_CD 110
arch/arm/mach-omap2/board-omap3pandora.c +4 -5
@@ -20,7 +20,6 @@#include <linux/init.h> #include <linux/kernel.h> #include <linux/platform_device.h> -#include <linux/spi/spi.h> #include <linux/regulator/machine.h> #include <linux/i2c/twl.h>
@@ -35,18 +34,18 @@#include <linux/mmc/host.h> #include <linux/mmc/card.h> #include <linux/regulator/fixed.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "common.h" -#include <mach/hardware.h> -#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/usb.h> +#include <video/omapdss.h> -#include <linux/platform_data/mtd-nand-omap2.h> +#include "common.h" #include "mux.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-omap3stalker.c +9 -11
@@ -23,33 +23,31 @@#include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> -#include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> #include <linux/i2c/twl.h> #include <linux/mmc/host.h> +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/input/matrix_keypad.h> +#include <linux/spi/spi.h> +#include <linux/interrupt.h> +#include <linux/smsc911x.h> +#include <linux/i2c/at24.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include "common.h" #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <linux/input/matrix_keypad.h> -#include <linux/spi/spi.h> -#include <linux/interrupt.h> -#include <linux/smsc911x.h> -#include <linux/i2c/at24.h> - +#include "common.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "mux.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-omap3touchbook.c +2 -7
@@ -23,32 +23,27 @@#include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/mmc/host.h> -#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <linux/spi/spi.h> -#include <linux/spi/ads7846.h> -#include <linux/regulator/machine.h> #include <linux/i2c/twl.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> #include <asm/system_info.h> -#include "common.h" #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "common-board-devices.h"
arch/arm/mach-omap2/board-omap4panda.c +4 -3
@@ -32,18 +32,19 @@#include <linux/wl12xx.h> #include <linux/platform_data/omap-abe-twl6040.h> -#include <mach/hardware.h> #include <asm/hardware/gic.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <video/omapdss.h> -#include "common.h" #include <plat/usb.h> #include <plat/mmc.h> + +#include <video/omapdss.h> #include <video/omap-panel-tfp410.h> +#include "hardware.h" +#include "common.h" #include "hsmmc.h" #include "control.h" #include "mux.h"
arch/arm/mach-omap2/board-overo.c +6 -8
@@ -31,28 +31,26 @@#include <linux/regulator/machine.h> #include <linux/regulator/fixed.h> #include <linux/spi/spi.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/mmc/host.h> +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/flash.h> #include <asm/mach/map.h> -#include "common.h" +#include <plat/gpmc.h> +#include <plat/usb.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h> -#include <plat/gpmc.h> -#include <mach/hardware.h> -#include <linux/platform_data/mtd-nand-omap2.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <plat/mux.h> -#include <plat/usb.h> +#include "common.h" #include "mux.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-rm680.c +0 -1
@@ -25,7 +25,6 @@#include <plat/mmc.h> #include <plat/usb.h> #include <plat/gpmc.h> -#include <plat/serial.h> #include <linux/platform_data/mtd-onenand-omap2.h>
arch/arm/mach-omap2/board-rx51.c +2 -3
@@ -17,18 +17,17 @@#include <linux/io.h> #include <linux/gpio.h> #include <linux/leds.h> +#include <linux/platform_data/spi-omap2-mcspi.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include "common.h" #include <plat/dma.h> #include <plat/gpmc.h> #include <plat/usb.h> +#include "common.h" #include "mux.h" #include "pm.h" #include "sdram-nokia.h"
arch/arm/mach-omap2/board-ti8168evm.c +1 -1
@@ -15,12 +15,12 @@#include <linux/kernel.h> #include <linux/init.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/usb.h> +#include "common.h" static struct omap_musb_board_data musb_board_data = {
arch/arm/mach-omap2/board-zoom-debugboard.c +3 -1
@@ -19,10 +19,12 @@#include <plat/gpmc.h> #include <plat/gpmc-smsc911x.h> -#include <plat/serial.h> #include <mach/board-zoom.h> +#include "hardware.h" +#include "common.h" +#define ZOOM_SMSC911X_CS 7#define ZOOM_SMSC911X_GPIO 158#define ZOOM_QUADUART_CS 3
arch/arm/mach-omap2/board-zoom-display.c +2 -2
@@ -16,12 +16,12 @@#include <linux/spi/spi.h> #include <linux/platform_data/spi-omap2-mcspi.h> -#include <plat/cpu.h> -#include <mach/board-zoom.h> #include <video/omapdss.h> +#include "common.h" +#define LCD_PANEL_RESET_GPIO_PROD 96#define LCD_PANEL_RESET_GPIO_PILOT 55#define LCD_PANEL_QVGA_GPIO 56
arch/arm/mach-omap2/board-zoom-peripherals.c +0 -1
@@ -26,7 +26,6 @@#include <asm/mach/map.h> #include <plat/usb.h> -#include <plat/serial.h> #include <mach/board-zoom.h>
arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c +1 -1
@@ -33,11 +33,11 @@#include <linux/cpufreq.h> #include <linux/slab.h> -#include <plat/cpu.h> #include <plat/clock.h> #include <plat/sram.h> #include <plat/sdrc.h> +#include "soc.h" #include "clock.h" #include "clock2xxx.h" #include "opp2xxx.h"
arch/arm/mach-omap2/clkt_dpll.c +1 -1
@@ -22,8 +22,8 @@#include <asm/div64.h> #include <plat/clock.h> -#include <plat/cpu.h> +#include "soc.h" #include "clock.h" #include "cm-regbits-24xx.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/clock.c +5 -3
@@ -22,14 +22,16 @@#include <linux/clk.h> #include <linux/io.h> #include <linux/bitops.h> -#include <trace/events/power.h> #include <asm/cpu.h> +#include <plat/clock.h> -#include "clockdomain.h" -#include <plat/cpu.h> #include <plat/prcm.h> +#include <trace/events/power.h> + +#include "soc.h" +#include "clockdomain.h" #include "clock.h" #include "cm2xxx_3xxx.h" #include "cm-regbits-24xx.h"
arch/arm/mach-omap2/clock2420_data.c +1 -1
@@ -18,9 +18,9 @@#include <linux/clk.h> #include <linux/list.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "hardware.h" #include "iomap.h" #include "clock.h" #include "clock2xxx.h"
arch/arm/mach-omap2/clock2430.c +1 -1
@@ -21,9 +21,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clock.h> +#include "hardware.h" #include "iomap.h" #include "clock.h" #include "clock2xxx.h"
arch/arm/mach-omap2/clock2430_data.c +1 -1
@@ -17,9 +17,9 @@#include <linux/clk.h> #include <linux/list.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "hardware.h" #include "iomap.h" #include "clock.h" #include "clock2xxx.h"
arch/arm/mach-omap2/clock2xxx.c +1 -1
@@ -22,9 +22,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/cpu.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "clock2xxx.h" #include "cm.h"
arch/arm/mach-omap2/clock3xxx.c +1 -1
@@ -21,9 +21,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "clock3xxx.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/clock3xxx_data.c +2 -1
@@ -21,9 +21,10 @@#include <linux/list.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "soc.h" +#include "hardware.h" #include "iomap.h" #include "clock.h" #include "clock3xxx.h"
arch/arm/mach-omap2/clock44xx_data.c +2 -1
@@ -28,9 +28,10 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "soc.h" +#include "hardware.h" #include "iomap.h" #include "clock.h" #include "clock44xx.h"
arch/arm/mach-omap2/cm2xxx_3xxx.c +1 -2
@@ -18,8 +18,7 @@#include <linux/err.h> #include <linux/io.h> -#include <plat/hardware.h> - +#include "hardware.h" #include "iomap.h" #include "common.h" #include "cm.h"
arch/arm/mach-omap2/common.c +1 -1
@@ -17,10 +17,10 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/mux.h> #include <plat/clock.h> +#include "hardware.h" #include "iomap.h" #include "common.h" #include "sdrc.h"
arch/arm/mach-omap2/common.h +5 -1
@@ -28,9 +28,13 @@#include <linux/delay.h> #include <linux/i2c/twl.h> -#include <plat/common.h> +#include <asm/proc-fns.h> +#include <plat/cpu.h> +#include <plat/serial.h> +#include <plat/common.h> +#ifdef CONFIG_SOC_OMAP2420 extern void omap242x_map_common_io (void );#else
arch/arm/mach-omap2/control.c +1 -1
@@ -15,9 +15,9 @@#include <linux/kernel.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/sdrc.h> +#include "hardware.h" #include "iomap.h" #include "common.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/devices.c +0 -1
@@ -19,7 +19,6 @@#include <linux/of.h> #include <linux/platform_data/omap4-keypad.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/pmu.h>
arch/arm/mach-omap2/dpll3xxx.c +1 -1
@@ -28,9 +28,9 @@#include <linux/bitops.h> #include <linux/clkdev.h> -#include <plat/cpu.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "cm2xxx_3xxx.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/dpll44xx.c +1 -1
@@ -15,9 +15,9 @@#include <linux/io.h> #include <linux/bitops.h> -#include <plat/cpu.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "clock44xx.h" #include "cm-regbits-44xx.h"
arch/arm/mach-omap2/emu.c +0 -2
@@ -21,8 +21,6 @@#include <linux/clk.h> #include <linux/err.h> -#include <mach/hardware.h> -#include "iomap.h" MODULE_LICENSE ("GPL" );
arch/arm/mach-omap2/gpmc-nand.c +3 -2
@@ -13,13 +13,14 @@#include <linux/platform_device.h> #include <linux/io.h> #include <linux/mtd/nand.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <asm/mach/flash.h> -#include <plat/cpu.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/gpmc.h> +#include "soc.h" +static struct resource gpmc_nand_resource[] = { { .flags =IORESOURCE_MEM ,
arch/arm/mach-omap2/gpmc-onenand.c +3 -2
@@ -15,13 +15,14 @@#include <linux/platform_device.h> #include <linux/mtd/onenand_regs.h> #include <linux/io.h> +#include <linux/platform_data/mtd-onenand-omap2.h> #include <asm/mach/flash.h> -#include <plat/cpu.h> -#include <linux/platform_data/mtd-onenand-omap2.h> #include <plat/gpmc.h> +#include "soc.h" +#define ONENAND_IO_SIZE SZ_128Kstatic struct omap_onenand_platform_data *gpmc_onenand_data;
arch/arm/mach-omap2/gpmc-smc91x.c +2 -1
@@ -17,10 +17,11 @@#include <linux/io.h> #include <linux/smc91x.h> -#include <plat/cpu.h> #include <plat/gpmc.h> #include <plat/gpmc-smc91x.h> +#include "soc.h" +static struct omap_smc91x_platform_data *gpmc_cfg;static struct resource gpmc_smc91x_resources[] = {
arch/arm/mach-omap2/gpmc.c +2 -2
@@ -27,11 +27,11 @@#include <asm/mach-types.h> -#include <plat/cpu.h> #include <plat/gpmc.h> #include <plat/sdrc.h> -#include <mach/hardware.h> +#include "hardware.h" +#include "soc.h" /* GPMC register offsets */ #define GPMC_REVISION 0x00
arch/arm/mach-omap2/hardware.h new file +6 -0
@@ -0,0 +1,6 @@ +#include <plat/omap24xx.h> +#include <plat/omap34xx.h> +#include <plat/omap44xx.h> +#include <plat/ti81xx.h> +#include <plat/am33xx.h> +#include <plat/omap54xx.h>
arch/arm/mach-omap2/hsmmc.c +0 -2
@@ -21,8 +21,6 @@#include <plat/mux.h> #include <plat/omap_device.h> -#include <mach/hardware.h> -#include "mux.h" #include "hsmmc.h" #include "control.h"
arch/arm/mach-omap2/i2c.c +0 -1
@@ -19,7 +19,6 @@* */ -#include <plat/cpu.h> #include <plat/i2c.h> #include "common.h" #include <plat/omap_hwmod.h>
arch/arm/mach-omap2/id.c +1 -1
@@ -22,10 +22,10 @@#include <asm/cputype.h> #include "common.h" -#include <plat/cpu.h> #include <mach/id.h> +#include "soc.h" #include "control.h" static unsigned int omap_revision;
arch/arm/mach-omap2/include/mach/hardware.h +0 -2
@@ -1,5 +1,3 @@/* * arch/arm/mach-omap2/include/mach/hardware.h */ - -#include <plat/hardware.h>
arch/arm/mach-omap2/io.c +1 -2
@@ -33,8 +33,7 @@#include <plat/multi.h> #include <plat/dma.h> -#include <mach/hardware.h> - +#include "hardware.h" #include "iomap.h" #include "voltage.h" #include "powerdomain.h"
arch/arm/mach-omap2/irq.c +1 -2
@@ -23,8 +23,7 @@#include <linux/of_address.h> #include <linux/of_irq.h> -#include <mach/hardware.h> - +#include "hardware.h" #include "iomap.h" #include "common.h"
arch/arm/mach-omap2/mailbox.c +2 -1
@@ -17,9 +17,10 @@#include <linux/io.h> #include <linux/pm_runtime.h> -#include <plat/cpu.h> #include <plat/mailbox.h> +#include "soc.h" +#define MAILBOX_REVISION 0x000#define MAILBOX_MESSAGE (m) (0x040 + 4 * (m))#define MAILBOX_FIFOSTATUS (m) (0x080 + 4 * (m))
arch/arm/mach-omap2/mcbsp.c +2 -3
@@ -17,12 +17,11 @@#include <linux/io.h> #include <linux/platform_device.h> #include <linux/slab.h> +#include <linux/pm_runtime.h> +#include <linux/platform_data/dsp-mcbsp.h> #include <plat/dma.h> -#include <plat/cpu.h> -#include <linux/platform_data/dsp-mcbsp.h> #include <plat/omap_device.h> -#include <linux/pm_runtime.h> #include "control.h"
arch/arm/mach-omap2/omap-smp.c +1 -1
@@ -24,11 +24,11 @@#include <asm/hardware/gic.h> #include <asm/smp_scu.h> -#include <mach/hardware.h> #include <mach/omap-secure.h> #include <mach/omap-wakeupgen.h> #include <asm/cputype.h> +#include "hardware.h" #include "iomap.h" #include "common.h" #include "clockdomain.h"
arch/arm/mach-omap2/omap-wakeupgen.c +1 -1
@@ -27,10 +27,10 @@#include <asm/hardware/gic.h> -#include <mach/hardware.h> #include <mach/omap-wakeupgen.h> #include <mach/omap-secure.h> +#include "hardware.h" #include "omap4-sar-layout.h" #include "common.h"
arch/arm/mach-omap2/omap4-common.c +1 -1
@@ -29,9 +29,9 @@#include <plat/omap-secure.h> #include <plat/mmc.h> -#include <mach/hardware.h> #include <mach/omap-wakeupgen.h> +#include "hardware.h" #include "common.h" #include "hsmmc.h" #include "omap4-sar-layout.h"
arch/arm/mach-omap2/omap_hwmod.c +4 -4
@@ -139,14 +139,14 @@#include <linux/slab.h> #include <linux/bootmem.h> -#include "common.h" -#include <plat/cpu.h> -#include "clockdomain.h" -#include "powerdomain.h" #include <plat/clock.h> #include <plat/omap_hwmod.h> #include <plat/prcm.h> +#include "soc.h" +#include "common.h" +#include "clockdomain.h" +#include "powerdomain.h" #include "cm2xxx_3xxx.h" #include "cminst44xx.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/omap_hwmod_2420_data.c +3 -2
@@ -12,12 +12,13 @@* XXX handle crossbar/shared link difference for L3? * XXX these should be marked initdata for multi-OMAP kernels */ + +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/dma.h> #include <plat/serial.h> #include <plat/i2c.h> -#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/dmtimer.h> #include <plat/l3_2xxx.h> #include <plat/l4_2xxx.h>
arch/arm/mach-omap2/omap_hwmod_2430_data.c +1 -4
@@ -16,7 +16,6 @@#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/dma.h> #include <plat/serial.h> #include <plat/i2c.h>
@@ -24,10 +23,8 @@#include <plat/mmc.h> #include <plat/l3_2xxx.h> -#include <plat/hardware.h> - +#include "hardware.h" #include "omap_hwmod_common_data.h" -#include "prm-regbits-24xx.h" #include "cm-regbits-24xx.h" #include "wd_timer.h"
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +1 -2
@@ -20,7 +20,6 @@#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/dma.h> #include <plat/serial.h> #include <plat/l3_3xxx.h>
@@ -29,9 +28,9 @@#include <plat/mmc.h> #include <plat/dmtimer.h> -#include <mach/hardware.h> #include <mach/am35xx.h> +#include "hardware.h" #include "omap_hwmod_common_data.h" #include "prm-regbits-34xx.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -1
@@ -25,7 +25,6 @@#include <linux/power/smartreflex.h> #include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/i2c.h> #include <plat/dma.h> #include <plat/mmc.h>
arch/arm/mach-omap2/omap_l3_noc.c +1 -2
@@ -28,8 +28,7 @@#include <linux/kernel.h> #include <linux/slab.h> -#include <plat/hardware.h> - +#include "hardware.h" #include "omap_l3_noc.h" /*
arch/arm/mach-omap2/omap_phy_internal.c +2 -1
@@ -28,9 +28,10 @@#include <linux/err.h> #include <linux/usb.h> -#include <plat/hardware.h> #include <plat/usb.h> +#include "soc.h" +#include "hardware.h" #include "control.h" /* OMAP control module register for UTMI PHY */
arch/arm/mach-omap2/opp2420_data.c +1 -1
@@ -28,7 +28,7 @@* http://repository.maemo.org/pool/diablo/free/k/kernel-source-diablo/ */ -#include <plat/hardware.h> +#include <linux/kernel.h> #include "opp2xxx.h" #include "sdrc.h"
arch/arm/mach-omap2/opp2430_data.c +1 -1
@@ -26,7 +26,7 @@* This is technically part of the OMAP2xxx clock code. */ -#include <plat/hardware.h> +#include <linux/kernel.h> #include "opp2xxx.h" #include "sdrc.h"
arch/arm/mach-omap2/opp3xxx_data.c +0 -2
@@ -19,8 +19,6 @@*/ #include <linux/module.h> -#include <plat/cpu.h> -#include "control.h" #include "omap_opp_data.h" #include "pm.h"
arch/arm/mach-omap2/opp4xxx_data.c +1 -2
@@ -20,8 +20,7 @@*/ #include <linux/module.h> -#include <plat/cpu.h> - +#include "soc.h" #include "control.h" #include "omap_opp_data.h" #include "pm.h"
arch/arm/mach-omap2/powerdomain.c +4 -2
@@ -28,11 +28,13 @@#include "prm44xx.h" #include <asm/cpu.h> -#include <plat/cpu.h> + +#include <plat/prcm.h> +#include "powerdomain.h" #include "clockdomain.h" -#include <plat/prcm.h> +#include "soc.h" #include "pm.h" #define PWRDM_TRACE_STATES_FLAG (1<<31)
arch/arm/mach-omap2/powerdomains3xxx_data.c +1 -3
@@ -15,11 +15,9 @@#include <linux/init.h> #include <linux/bug.h> -#include <plat/cpu.h> - +#include "soc.h" #include "powerdomain.h" #include "powerdomains2xxx_3xxx_data.h" -#include "prcm-common.h" #include "prm2xxx_3xxx.h" #include "prm-regbits-34xx.h"
arch/arm/mach-omap2/prm2xxx_3xxx.c +2 -2
@@ -17,10 +17,10 @@#include <linux/io.h> #include <linux/irq.h> -#include "common.h" -#include <plat/cpu.h> #include <plat/prcm.h> +#include "soc.h" +#include "common.h" #include "vp.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/prm44xx.c +2 -2
@@ -17,10 +17,10 @@#include <linux/err.h> #include <linux/io.h> -#include <plat/cpu.h> #include <plat/prcm.h> -#include <plat/hardware.h> +#include "soc.h" +#include "hardware.h" #include "iomap.h" #include "common.h" #include "vp.h"
arch/arm/mach-omap2/sdrc2xxx.c +1 -1
@@ -24,11 +24,11 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clock.h> #include <plat/sram.h> #include <plat/sdrc.h> +#include "hardware.h" #include "iomap.h" #include "common.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/sleep34xx.S +1 -1
@@ -26,7 +26,7 @@ #include <asm/assembler.h> -#include <plat/hardware.h> +#include <plat/omap34xx.h> #include <plat/sram.h> #include "iomap.h"
arch/arm/mach-omap2/soc.h new file +1 -0
@@ -0,0 +1 @@ +#include <plat/cpu.h>
arch/arm/mach-omap2/sram242x.S +1 -2
@@ -32,8 +32,7 @@ #include <asm/assembler.h> -#include <mach/hardware.h> - +#include "hardware.h" #include "iomap.h" #include "prm2xxx_3xxx.h" #include "cm2xxx_3xxx.h"
arch/arm/mach-omap2/sram243x.S +1 -2
@@ -32,8 +32,7 @@ #include <asm/assembler.h> -#include <mach/hardware.h> - +#include "hardware.h" #include "iomap.h" #include "prm2xxx_3xxx.h" #include "cm2xxx_3xxx.h"
arch/arm/mach-omap2/sram34xx.S +1 -2
@@ -29,8 +29,7 @@ #include <asm/assembler.h> -#include <mach/hardware.h> - +#include "hardware.h" #include "iomap.h" #include "sdrc.h" #include "cm2xxx_3xxx.h"
arch/arm/mach-omap2/timer.c +1 -2
@@ -46,8 +46,7 @@#include <plat/dmtimer.h> #include <plat/omap-pm.h> -#include <mach/hardware.h> - +#include "hardware.h" #include "common.h" #include "powerdomain.h"
arch/arm/mach-omap2/twl-common.c +1 -1
@@ -26,10 +26,10 @@#include <linux/regulator/machine.h> #include <linux/regulator/fixed.h> -#include <plat/hardware.h> #include <plat/i2c.h> #include <plat/usb.h> +#include "hardware.h" #include "twl-common.h" #include "pm.h" #include "voltage.h"
arch/arm/mach-omap2/usb-host.c +0 -1
@@ -25,7 +25,6 @@#include <asm/io.h> -#include <mach/hardware.h> #include <plat/usb.h> #include <plat/omap_device.h>
arch/arm/mach-omap2/usb-musb.c +3 -3
@@ -23,13 +23,13 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> -#include <linux/usb/musb.h> -#include <mach/hardware.h> -#include <mach/am35xx.h> #include <plat/usb.h> #include <plat/omap_device.h> + +#include <mach/am35xx.h> +#include "mux.h" static struct musb_hdrc_config musb_config = {
arch/arm/mach-omap2/vc.c +1 -2
@@ -12,8 +12,7 @@#include <linux/init.h> #include <linux/bug.h> -#include <plat/cpu.h> - +#include "soc.h" #include "voltage.h" #include "vc.h" #include "prm-regbits-34xx.h"
arch/arm/mach-omap2/voltagedomains3xxx_data.c +1 -2
@@ -18,9 +18,8 @@#include <linux/err.h> #include <linux/init.h> +#include "soc.h" #include "common.h" -#include <plat/cpu.h> -#include "prm-regbits-34xx.h" #include "omap_opp_data.h" #include "voltage.h"
arch/arm/plat-omap/counter_32k.c +0 -2
@@ -22,9 +22,7 @@#include <asm/mach/time.h> #include <asm/sched_clock.h> -#include <plat/hardware.h> #include <plat/common.h> -#include <plat/clock.h> /* OMAP2_32KSYNCNT_CR_OFF: offset of 32ksync counter register */
arch/arm/plat-omap/dma.c +1 -2
@@ -36,9 +36,8 @@#include <linux/slab.h> #include <linux/delay.h> -#include <mach/hardware.h> +#include <plat/cpu.h> #include <plat/dma.h> -#include <plat/tc.h> /*
arch/arm/plat-omap/include/plat/hardware.h deleted +0 -293
293 lines not on this page · raw message
arch/arm/plat-omap/include/plat/omap4-keypad.h +2 -0
@@ -1,6 +1,8 @@#ifndef ARCH_ARM_PLAT_OMAP4_KEYPAD_H #define ARCH_ARM_PLAT_OMAP4_KEYPAD_H +struct omap_board_data ; +extern int omap4_keyboard_init (struct omap4_keypad_platform_data *,struct omap_board_data *);#endif
arch/arm/plat-omap/include/plat/omap44xx.h +0 -1
@@ -45,7 +45,6 @@#define OMAP44XX_L2CACHE_BASE 0x48242000#define OMAP44XX_WKUPGEN_BASE 0x48281000#define OMAP44XX_MCPDM_BASE 0x40132000 -#define OMAP44XX_MCPDM_L3_BASE 0x49032000#define OMAP44XX_SAR_RAM_BASE 0x4a326000#define OMAP44XX_MAILBOX_BASE (L4_44XX_BASE + 0xF4000)
drivers/watchdog/omap_wdt.c +5 -0
@@ -46,6 +46,7 @@#include <linux/slab.h> #include <linux/pm_runtime.h> #include <mach/hardware.h> +#include <plat/cpu.h> #include <plat/prcm.h> #include "omap_wdt.h"
@@ -218,12 +219,16 @@ static long omap_wdt_ioctl(struct file *file, unsigned int cmd,case WDIOC_GETSTATUS :return put_user (0 , (int __user *)arg);case WDIOC_GETBOOTSTATUS : +#ifdef CONFIG_ARCH_OMAP1 if (cpu_is_omap16xx ())return put_user (__raw_readw (ARM_SYSST ), (int __user *)arg); +#endif +#ifdef CONFIG_ARCH_OMAP2PLUS if (cpu_is_omap24xx ())return put_user (omap_prcm_get_reset_sources (), (int __user *)arg); +#endif return put_user (0 , (int __user *)arg);case WDIOC_KEEPALIVE :spin_lock (&wdt_lock);
sound/soc/omap/omap-abe-twl6040.c +0 -4
@@ -31,10 +31,6 @@#include <sound/soc.h> #include <sound/jack.h> -#include <asm/mach-types.h> -#include <plat/hardware.h> -#include <plat/mux.h> -#include "omap-dmic.h" #include "omap-mcpdm.h" #include "omap-pcm.h"
sound/soc/omap/omap-mcpdm.c +2 -0
@@ -45,6 +45,8 @@#include "omap-mcpdm.h" #include "omap-pcm.h" +#define OMAP44XX_MCPDM_L3_BASE 0x49032000 +struct omap_mcpdm {struct device *dev;unsigned long phys_base;
Tony Lindgren
maintainerPATCH 3/4 ARM: OMAP2+ Move SoC specific headers to be local to mach-omap2
In reply to Tony LindgrenThese can now be moved to be local headers in mach-omap2.
Note that this patch removes arch/arm/plat-omap/devices.c as it will get removed anyways with Paul Walmsley's patch "ARM: OMAP: split OMAP1, OMAP2+ RNG device registration".
---
arch/arm/mach-omap2/am33xx.h | 0
arch/arm/mach-omap2/clock33xx_data.c | 2 -
arch/arm/mach-omap2/control.h | 2 -
arch/arm/mach-omap2/hardware.h | 12 ++--
arch/arm/mach-omap2/omap-mpuss-lowpower.c | 3 -
arch/arm/mach-omap2/omap24xx.h | 2 -
arch/arm/mach-omap2/omap34xx.h | 2 -
arch/arm/mach-omap2/omap44xx.h | 0
arch/arm/mach-omap2/omap54xx.h | 0
arch/arm/mach-omap2/sleep24xx.S | 3 -
arch/arm/mach-omap2/sleep34xx.S | 2 -
arch/arm/mach-omap2/sleep44xx.S | 2 -
arch/arm/mach-omap2/ti81xx.h | 0
arch/arm/plat-omap/Makefile | 3 -
arch/arm/plat-omap/devices.c | 91 ----------------------------
15 files changed, 13 insertions(+), 111 deletions(-)
rename arch/arm/{plat-omap/include/plat/am33xx.h => mach-omap2/am33xx.h} (100%)
rename arch/arm/{plat-omap/include/plat/omap24xx.h => mach-omap2/omap24xx.h} (98%)
rename arch/arm/{plat-omap/include/plat/omap34xx.h => mach-omap2/omap34xx.h} (98%)
rename arch/arm/{plat-omap/include/plat/omap44xx.h => mach-omap2/omap44xx.h} (100%)
rename arch/arm/{plat-omap/include/plat/omap54xx.h => mach-omap2/omap54xx.h} (100%)
rename arch/arm/{plat-omap/include/plat/ti81xx.h => mach-omap2/ti81xx.h} (100%)
delete mode 100644 arch/arm/plat-omap/devices.carch/arm/mach-omap2/am33xx.h renamed from arch/arm/plat-omap/include/plat/am33xx.h +0 -0
arch/arm/mach-omap2/clock33xx_data.c +1 -1
@@ -18,8 +18,8 @@#include <linux/list.h> #include <linux/clk.h> #include <plat/clkdev_omap.h> -#include <plat/am33xx.h> +#include "am33xx.h" #include "iomap.h" #include "control.h" #include "clock.h"
arch/arm/mach-omap2/control.h +1 -1
@@ -21,7 +21,7 @@#include <mach/ctrl_module_pad_core_44xx.h> #include <mach/ctrl_module_pad_wkup_44xx.h> -#include <plat/am33xx.h> +#include "am33xx.h" #ifndef __ASSEMBLY__#define OMAP242X_CTRL_REGADDR (reg) \
arch/arm/mach-omap2/hardware.h +6 -6
@@ -1,6 +1,6 @@ -#include <plat/omap24xx.h> -#include <plat/omap34xx.h> -#include <plat/omap44xx.h> -#include <plat/ti81xx.h> -#include <plat/am33xx.h> -#include <plat/omap54xx.h> +#include "omap24xx.h" +#include "omap34xx.h" +#include "omap44xx.h" +#include "ti81xx.h" +#include "am33xx.h" +#include "omap54xx.h"
arch/arm/mach-omap2/omap-mpuss-lowpower.c +1 -2
@@ -50,9 +50,8 @@#include <asm/suspend.h> #include <asm/hardware/cache-l2x0.h> -#include <plat/omap44xx.h> -#include "common.h" +#include "omap44xx.h" #include "omap4-sar-layout.h" #include "pm.h" #include "prcm_mpu44xx.h"
arch/arm/mach-omap2/omap24xx.h renamed from arch/arm/plat-omap/include/plat/omap24xx.h +0 -2
@@ -1,6 +1,4 @@/* -* arch/arm/plat-omap/include/mach/omap24xx.h -* * This file contains the processor specific definitions * of the TI OMAP24XX. *
arch/arm/mach-omap2/omap34xx.h renamed from arch/arm/plat-omap/include/plat/omap34xx.h +0 -2
@@ -1,6 +1,4 @@/* -* arch/arm/plat-omap/include/mach/omap34xx.h -* * This file contains the processor specific definitions of the TI OMAP34XX. * * Copyright (C) 2007 Texas Instruments.
arch/arm/mach-omap2/omap44xx.h renamed from arch/arm/plat-omap/include/plat/omap44xx.h +0 -0
arch/arm/mach-omap2/omap54xx.h renamed from arch/arm/plat-omap/include/plat/omap54xx.h +0 -0
arch/arm/mach-omap2/sleep24xx.S +1 -2
@@ -28,8 +28,7 @@ #include <linux/linkage.h> #include <asm/assembler.h> -#include <plat/omap24xx.h> - +#include "omap24xx.h" #include "sdrc.h" /* First address of reserved address space? apparently valid for OMAP2 & 3 */
arch/arm/mach-omap2/sleep34xx.S +1 -1
@@ -26,9 +26,9 @@ #include <asm/assembler.h> -#include <plat/omap34xx.h> #include <plat/sram.h> +#include "omap34xx.h" #include "iomap.h" #include "cm2xxx_3xxx.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/sleep44xx.S +1 -1
@@ -14,10 +14,10 @@ #include <asm/memory.h> #include <asm/hardware/cache-l2x0.h> -#include <plat/omap44xx.h> #include <mach/omap-secure.h> #include "common.h" +#include "omap44xx.h" #include "omap4-sar-layout.h" #if defined(CONFIG_SMP) && defined(CONFIG_PM)
arch/arm/mach-omap2/ti81xx.h renamed from arch/arm/plat-omap/include/plat/ti81xx.h +0 -0
arch/arm/plat-omap/Makefile +1 -2
@@ -3,8 +3,7 @@ # # Common support -obj-y := common.o sram.o clock.o devices.o dma.o mux.o \ - fb.o counter_32k.o +obj-y := common.o sram.o clock.o dma.o mux.o fb.o counter_32k.o obj-m := obj-n := obj- :=
arch/arm/plat-omap/devices.c deleted +0 -91
91 lines not on this page · raw message
Tony Lindgren
maintainerPATCH 4/4 ARM: OMAP1: Move SoC specific headers from plat to mach for omap1
In reply to Tony LindgrenThere's no need to have these in plat-omap any longer. Note that these could eventually be made local to mach-omap1 instead of being in mach.
But to do that, at least various driver access using omap7xxx.h registers needs to be fixed first.
---
arch/arm/mach-omap1/board-htcherald.c | 4 ++--
arch/arm/mach-omap1/devices.c | 2 +-
arch/arm/mach-omap1/include/mach/hardware.h | 6 +++---
arch/arm/mach-omap1/include/mach/omap1510.h | 3 +--
arch/arm/mach-omap1/include/mach/omap16xx.h | 3 +--
arch/arm/mach-omap1/include/mach/omap7xx.h | 3 +--
drivers/spi/spi-omap-uwire.c | 3 ++-
7 files changed, 11 insertions(+), 13 deletions(-)
rename arch/arm/{plat-omap/include/plat/omap1510.h => mach-omap1/include/mach/omap1510.h} (97%)
rename arch/arm/{plat-omap/include/plat/omap16xx.h => mach-omap1/include/mach/omap16xx.h} (99%)
rename arch/arm/{plat-omap/include/plat/omap7xx.h => mach-omap1/include/mach/omap7xx.h} (98%)arch/arm/mach-omap1/board-htcherald.c +2 -2
@@ -37,14 +37,14 @@#include <linux/spi/spi.h> #include <linux/spi/ads7846.h> #include <linux/omapfb.h> +#include <linux/platform_data/keypad-omap.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <plat/omap7xx.h> -#include <linux/platform_data/keypad-omap.h> #include <plat/mmc.h> +#include <mach/omap7xx.h> #include <mach/irqs.h> #include <mach/usb.h>
arch/arm/mach-omap1/devices.c +1 -1
@@ -23,8 +23,8 @@#include <plat/mux.h> #include <plat/dma.h> #include <plat/mmc.h> -#include <plat/omap7xx.h> +#include <mach/omap7xx.h> #include <mach/camera.h> #include <mach/hardware.h>
arch/arm/mach-omap1/include/mach/hardware.h +3 -3
@@ -311,8 +311,8 @@ static inline u32 omap_cs3_phys(void)* --------------------------------------------------------------------------- */ -#include <plat/omap7xx.h> -#include <plat/omap1510.h> -#include <plat/omap16xx.h> +#include "omap7xx.h" +#include "omap1510.h" +#include "omap16xx.h" #endif /* __ASM_ARCH_OMAP_HARDWARE_H */
arch/arm/mach-omap1/include/mach/omap1510.h renamed from arch/arm/plat-omap/include/plat/omap1510.h +1 -2
@@ -1,5 +1,4 @@ -/* arch/arm/plat-omap/include/mach/omap1510.h -* +/* * Hardware definitions for TI OMAP1510 processor. * * Cleanup for Linux-2.6 by Dirk Behme <[email protected]>
arch/arm/mach-omap1/include/mach/omap16xx.h renamed from arch/arm/plat-omap/include/plat/omap16xx.h +1 -2
@@ -1,5 +1,4 @@ -/* arch/arm/plat-omap/include/mach/omap16xx.h -* +/* * Hardware definitions for TI OMAP1610/5912/1710 processors. * * Cleanup for Linux-2.6 by Dirk Behme <[email protected]>
arch/arm/mach-omap1/include/mach/omap7xx.h renamed from arch/arm/plat-omap/include/plat/omap7xx.h +1 -2
@@ -1,5 +1,4 @@ -/* arch/arm/plat-omap/include/mach/omap7xx.h -* +/* * Hardware definitions for TI OMAP7XX processor. * * Cleanup for Linux-2.6 by Dirk Behme <[email protected]>
drivers/spi/spi-omap-uwire.c +2 -1
@@ -53,7 +53,8 @@#include <asm/mach-types.h> #include <plat/mux.h> -#include <plat/omap7xx.h> /* OMAP7XX_IO_CONF registers */ + +#include <mach/omap7xx.h> /* OMAP7XX_IO_CONF registers */ /* FIXME address is now a platform device resource,
Re: [PATCH 2/4] ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+
In reply to Tony LindgrenQuoted 2 lines · Tony Lindgren
As the plat and mach includes need to disappear for single zImage work, we need to remove
plat/hardware.h.
There's a topic/omap branch in ASoC which you can pull in to help reduce conflicts, or I could merge this there if that's sensible.
Tony Lindgren
maintainerRe: [PATCH 2/4] ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+
Quoted 8 lines · Mark Brown
Quoted 2 lines · Tony Lindgren
As the plat and mach includes need to disappear for single zImage work, we need to remove
plat/hardware.h.Acked-by Mark Brown <[email protected]>There's a topic/omap branch in ASoC which you can pull in to help reduce conflicts, or I could merge this there if that's sensible.
Thanks. Did not see it yet at git://opensource.wolfsonmicro.com/linux-2.6-asoc,
maybe it's not yet pushed out?
Tony
Re: [PATCH 2/4] ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+
In reply to Tony LindgrenQuoted 4 lines · Tony Lindgren
As the plat and mach includes need to disappear for single zImage work, we need to remove
plat/hardware.h.Do this by splitting
plat/hardware.hinto omap1 and omap2+ specific files.
Actually there's no need to have separate local hardware.h and soc.h files. We can just have local soc.h.
Updated patch below to do this. I've kept Mark's ack there as no changes to sound/soc/omap.
Regards,
Tony
From: Tony Lindgren <[email protected]>
Date: Fri, 31 Aug 2012 10:59:07 -0700
Subject: [PATCH] ARM: OMAP: Split plat/hardware.h, introduce local soc.h for omap2+
As the plat and mach includes need to disappear for single zImage work, we need to remove plat/hardware.h.
Do this by splitting plat/hardware.h into omap1 and omap2+ specific files.
The old plat/hardware.h already has omap1 only defines, so it gets moved to mach/hardware.h for omap1. For omap2+, we add a new local soc.h that for now just includes the related SoC headers to keep this patch more readable.
Note that the local soc.h still includes plat/cpu.h that can be dealt with in later patches. Let's also include plat/serial.h from common.h for all the board-*.c files. This allows making the include files local later on without patching these files again.
Note that only minimal changes are done in this patch for the drivers/watchdog/omap_wdt.c driver to keep things compiling. Further patches are needed to eventually remove cpu_is_omap usage in the drivers.
Also only minimal changes are done to sound/soc/omap/* to remove the unneeded includes and to define OMAP44XX_MCPDM_L3_BASE locally so there's no need to include omap44xx.h.
While at it, also sort the includes in the standard way.
arch/arm/mach-omap1/include/mach/hardware.h +281 -4
@@ -1,11 +1,46 @@/* * arch/arm/mach-omap1/include/mach/hardware.h +* +* Hardware definitions for TI OMAP processors and boards +* +* NOTE: Please put device driver specific defines into a separate header +* file for each driver. +* +* Copyright (C) 2001 RidgeRun, Inc. +* Author: RidgeRun, Inc. Greg Lonnon <[email protected]> +* +* Reorganized for Linux-2.6 by Tony Lindgren <[email protected]> +* and Dirk Behme <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +* +* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED +* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN +* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +* You should have received a copy of the GNU General Public License along +* with this program; if not, write to the Free Software Foundation, Inc., +* 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifndef __MACH_HARDWARE_H -#define __MACH_HARDWARE_H +#ifndef __ASM_ARCH_OMAP_HARDWARE_H +#define __ASM_ARCH_OMAP_HARDWARE_H +#include <asm/sizes.h> #ifndef __ASSEMBLER__ +#include <asm/types.h> +#include <plat/cpu.h> +/* * NOTE: Please use ioremap + __raw_read/write where possible instead of these */
@@ -35,7 +70,249 @@ static inline u32 omap_cs3_phys(void) ? 0 : OMAP_CS3_PHYS; } +#endif /* ifndef __ASSEMBLER__ */ + +#include <plat/serial.h> + +/* +* --------------------------------------------------------------------------- +* Common definitions for all OMAP processors +* NOTE: Put all processor or board specific parts to the special header +* files. +* --------------------------------------------------------------------------- +*/ + +/* +* ---------------------------------------------------------------------------- +* Timers +* ---------------------------------------------------------------------------- +*/ +#define OMAP_MPU_TIMER1_BASE (0xfffec500) +#define OMAP_MPU_TIMER2_BASE (0xfffec600) +#define OMAP_MPU_TIMER3_BASE (0xfffec700) +#define MPU_TIMER_FREE (1 << 6) +#define MPU_TIMER_CLOCK_ENABLE (1 << 5) +#define MPU_TIMER_AR (1 << 1) +#define MPU_TIMER_ST (1 << 0) + +/* +* ---------------------------------------------------------------------------- +* Clocks +* ---------------------------------------------------------------------------- +*/ +#define CLKGEN_REG_BASE (0xfffece00) +#define ARM_CKCTL (CLKGEN_REG_BASE + 0x0) +#define ARM_IDLECT1 (CLKGEN_REG_BASE + 0x4) +#define ARM_IDLECT2 (CLKGEN_REG_BASE + 0x8) +#define ARM_EWUPCT (CLKGEN_REG_BASE + 0xC) +#define ARM_RSTCT1 (CLKGEN_REG_BASE + 0x10) +#define ARM_RSTCT2 (CLKGEN_REG_BASE + 0x14) +#define ARM_SYSST (CLKGEN_REG_BASE + 0x18) +#define ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) + +#define CK_RATEF 1 +#define CK_IDLEF 2 +#define CK_ENABLEF 4 +#define CK_SELECTF 8 +#define SETARM_IDLE_SHIFT + +/* DPLL control registers */ +#define DPLL_CTL (0xfffecf00) + +/* DSP clock control. Must use __raw_readw() and __raw_writew() with these */ +#define DSP_CONFIG_REG_BASE IOMEM(0xe1008000) +#define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0) +#define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4) +#define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8) +#define DSP_RSTCT2 (DSP_CONFIG_REG_BASE + 0x14) + +/* +* --------------------------------------------------------------------------- +* UPLD +* --------------------------------------------------------------------------- +*/ +#define ULPD_REG_BASE (0xfffe0800) +#define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14) +#define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24) +#define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30) +# define DIS_USB_PVCI_CLK (1 << 5)/* no USB/FAC synch */ +# define USB_MCLK_EN (1 << 4)/* enable W4_USB_CLKO */ +#define ULPD_SOFT_REQ (ULPD_REG_BASE + 0x34) +# define SOFT_UDC_REQ (1 << 4) +# define SOFT_USB_CLK_REQ (1 << 3) +# define SOFT_DPLL_REQ (1 << 0) +#define ULPD_DPLL_CTRL (ULPD_REG_BASE + 0x3c) +#define ULPD_STATUS_REQ (ULPD_REG_BASE + 0x40) +#define ULPD_APLL_CTRL (ULPD_REG_BASE + 0x4c) +#define ULPD_POWER_CTRL (ULPD_REG_BASE + 0x50) +#define ULPD_SOFT_DISABLE_REQ_REG (ULPD_REG_BASE + 0x68) +# define DIS_MMC2_DPLL_REQ (1 << 11) +# define DIS_MMC1_DPLL_REQ (1 << 10) +# define DIS_UART3_DPLL_REQ (1 << 9) +# define DIS_UART2_DPLL_REQ (1 << 8) +# define DIS_UART1_DPLL_REQ (1 << 7) +# define DIS_USB_HOST_DPLL_REQ (1 << 6) +#define ULPD_SDW_CLK_DIV_CTRL_SEL (ULPD_REG_BASE + 0x74) +#define ULPD_CAM_CLK_CTRL (ULPD_REG_BASE + 0x7c) + +/* +* --------------------------------------------------------------------------- +* Watchdog timer +* --------------------------------------------------------------------------- +*/ + +/* Watchdog timer within the OMAP3.2 gigacell */ +#define OMAP_MPU_WATCHDOG_BASE (0xfffec800) +#define OMAP_WDT_TIMER (OMAP_MPU_WATCHDOG_BASE + 0x0) +#define OMAP_WDT_LOAD_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) +#define OMAP_WDT_READ_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) +#define OMAP_WDT_TIMER_MODE (OMAP_MPU_WATCHDOG_BASE + 0x8) + +/* +* --------------------------------------------------------------------------- +* Interrupts +* --------------------------------------------------------------------------- +*/ +#ifdef CONFIG_ARCH_OMAP1 + +/* +* XXX: These probably want to be moved to arch/arm/mach-omap/omap1/irq.c +* or something similar.. -- PFM. +*/ + +#define OMAP_IH1_BASE 0xfffecb00 +#define OMAP_IH2_BASE 0xfffe0000 + +#define OMAP_IH1_ITR (OMAP_IH1_BASE + 0x00) +#define OMAP_IH1_MIR (OMAP_IH1_BASE + 0x04) +#define OMAP_IH1_SIR_IRQ (OMAP_IH1_BASE + 0x10) +#define OMAP_IH1_SIR_FIQ (OMAP_IH1_BASE + 0x14) +#define OMAP_IH1_CONTROL (OMAP_IH1_BASE + 0x18) +#define OMAP_IH1_ILR0 (OMAP_IH1_BASE + 0x1c) +#define OMAP_IH1_ISR (OMAP_IH1_BASE + 0x9c) + +#define OMAP_IH2_ITR (OMAP_IH2_BASE + 0x00) +#define OMAP_IH2_MIR (OMAP_IH2_BASE + 0x04) +#define OMAP_IH2_SIR_IRQ (OMAP_IH2_BASE + 0x10) +#define OMAP_IH2_SIR_FIQ (OMAP_IH2_BASE + 0x14) +#define OMAP_IH2_CONTROL (OMAP_IH2_BASE + 0x18) +#define OMAP_IH2_ILR0 (OMAP_IH2_BASE + 0x1c) +#define OMAP_IH2_ISR (OMAP_IH2_BASE + 0x9c) + +#define IRQ_ITR_REG_OFFSET 0x00 +#define IRQ_MIR_REG_OFFSET 0x04 +#define IRQ_SIR_IRQ_REG_OFFSET 0x10 +#define IRQ_SIR_FIQ_REG_OFFSET 0x14 +#define IRQ_CONTROL_REG_OFFSET 0x18 +#define IRQ_ISR_REG_OFFSET 0x9c +#define IRQ_ILR0_REG_OFFSET 0x1c +#define IRQ_GMR_REG_OFFSET 0xa0 +#endif -#endif -#include <plat/hardware.h> +/* +* ---------------------------------------------------------------------------- +* System control registers +* ---------------------------------------------------------------------------- +*/ +#define MOD_CONF_CTRL_0 0xfffe1080 +#define MOD_CONF_CTRL_1 0xfffe1110 + +/* +* ---------------------------------------------------------------------------- +* Pin multiplexing registers +* ---------------------------------------------------------------------------- +*/ +#define FUNC_MUX_CTRL_0 0xfffe1000 +#define FUNC_MUX_CTRL_1 0xfffe1004 +#define FUNC_MUX_CTRL_2 0xfffe1008 +#define COMP_MODE_CTRL_0 0xfffe100c +#define FUNC_MUX_CTRL_3 0xfffe1010 +#define FUNC_MUX_CTRL_4 0xfffe1014 +#define FUNC_MUX_CTRL_5 0xfffe1018 +#define FUNC_MUX_CTRL_6 0xfffe101C +#define FUNC_MUX_CTRL_7 0xfffe1020 +#define FUNC_MUX_CTRL_8 0xfffe1024 +#define FUNC_MUX_CTRL_9 0xfffe1028 +#define FUNC_MUX_CTRL_A 0xfffe102C +#define FUNC_MUX_CTRL_B 0xfffe1030 +#define FUNC_MUX_CTRL_C 0xfffe1034 +#define FUNC_MUX_CTRL_D 0xfffe1038 +#define PULL_DWN_CTRL_0 0xfffe1040 +#define PULL_DWN_CTRL_1 0xfffe1044 +#define PULL_DWN_CTRL_2 0xfffe1048 +#define PULL_DWN_CTRL_3 0xfffe104c +#define PULL_DWN_CTRL_4 0xfffe10ac + +/* OMAP-1610 specific multiplexing registers */ +#define FUNC_MUX_CTRL_E 0xfffe1090 +#define FUNC_MUX_CTRL_F 0xfffe1094 +#define FUNC_MUX_CTRL_10 0xfffe1098 +#define FUNC_MUX_CTRL_11 0xfffe109c +#define FUNC_MUX_CTRL_12 0xfffe10a0 +#define PU_PD_SEL_0 0xfffe10b4 +#define PU_PD_SEL_1 0xfffe10b8 +#define PU_PD_SEL_2 0xfffe10bc +#define PU_PD_SEL_3 0xfffe10c0 +#define PU_PD_SEL_4 0xfffe10c4 + +/* Timer32K for 1610 and 1710*/ +#define OMAP_TIMER32K_BASE 0xFFFBC400 + +/* +* --------------------------------------------------------------------------- +* TIPB bus interface +* --------------------------------------------------------------------------- +*/ +#define TIPB_PUBLIC_CNTL_BASE 0xfffed300 +#define MPU_PUBLIC_TIPB_CNTL (TIPB_PUBLIC_CNTL_BASE + 0x8) +#define TIPB_PRIVATE_CNTL_BASE 0xfffeca00 +#define MPU_PRIVATE_TIPB_CNTL (TIPB_PRIVATE_CNTL_BASE + 0x8) + +/* +* ---------------------------------------------------------------------------- +* MPUI interface +* ---------------------------------------------------------------------------- +*/ +#define MPUI_BASE (0xfffec900) +#define MPUI_CTRL (MPUI_BASE + 0x0) +#define MPUI_DEBUG_ADDR (MPUI_BASE + 0x4) +#define MPUI_DEBUG_DATA (MPUI_BASE + 0x8) +#define MPUI_DEBUG_FLAG (MPUI_BASE + 0xc) +#define MPUI_STATUS_REG (MPUI_BASE + 0x10) +#define MPUI_DSP_STATUS (MPUI_BASE + 0x14) +#define MPUI_DSP_BOOT_CONFIG (MPUI_BASE + 0x18) +#define MPUI_DSP_API_CONFIG (MPUI_BASE + 0x1c) + +/* +* ---------------------------------------------------------------------------- +* LED Pulse Generator +* ---------------------------------------------------------------------------- +*/ +#define OMAP_LPG1_BASE 0xfffbd000 +#define OMAP_LPG2_BASE 0xfffbd800 +#define OMAP_LPG1_LCR (OMAP_LPG1_BASE + 0x00) +#define OMAP_LPG1_PMR (OMAP_LPG1_BASE + 0x04) +#define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00) +#define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04) + +/* +* ---------------------------------------------------------------------------- +* Pulse-Width Light +* ---------------------------------------------------------------------------- +*/ +#define OMAP_PWL_BASE 0xfffb5800 +#define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00) +#define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04) + +/* +* --------------------------------------------------------------------------- +* Processor specific defines +* --------------------------------------------------------------------------- +*/ + +#include <plat/omap7xx.h> +#include <plat/omap1510.h> +#include <plat/omap16xx.h> + +#endif /* __ASM_ARCH_OMAP_HARDWARE_H */
arch/arm/mach-omap2/board-2430sdp.c +0 -2
@@ -36,8 +36,6 @@#include <plat/usb.h> #include <plat/gpmc-smc91x.h> -#include <mach/hardware.h> -#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h>
arch/arm/mach-omap2/board-3430sdp.c +4 -5
@@ -24,22 +24,21 @@#include <linux/io.h> #include <linux/gpio.h> #include <linux/mmc/host.h> +#include <linux/platform_data/spi-omap2-mcspi.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/usb.h> -#include "common.h" #include <plat/dma.h> #include <plat/gpmc.h> +#include <plat/gpmc-smc91x.h> +#include <video/omapdss.h> #include <video/omap-panel-tfp410.h> -#include <plat/gpmc-smc91x.h> - +#include "common.h" #include "board-flash.h" #include "mux.h" #include "sdram-qimonda-hyb18m512160af-6.h"
arch/arm/mach-omap2/board-4430sdp.c +5 -4
@@ -27,23 +27,24 @@#include <linux/leds.h> #include <linux/leds_pwm.h> #include <linux/platform_data/omap4-keypad.h> +#include <linux/platform_data/omap-abe-twl6040.h> +#include <linux/wl12xx.h> -#include <mach/hardware.h> #include <asm/hardware/gic.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "common.h" #include <plat/usb.h> #include <plat/mmc.h> #include <plat/omap4-keypad.h> +#include <video/omapdss.h> #include <video/omap-panel-nokia-dsi.h> #include <video/omap-panel-picodlp.h> -#include <linux/wl12xx.h> -#include <linux/platform_data/omap-abe-twl6040.h> +#include "soc.h" +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "control.h"
arch/arm/mach-omap2/board-am3517crane.c +0 -1
@@ -21,7 +21,6 @@#include <linux/init.h> #include <linux/gpio.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h>
arch/arm/mach-omap2/board-am3517evm.c +0 -1
@@ -33,7 +33,6 @@#include <plat/usb.h> -#include <mach/hardware.h> #include <mach/am35xx.h> #include <video/omapdss.h>
arch/arm/mach-omap2/board-apollon.c +1 -2
@@ -29,18 +29,17 @@#include <linux/smc91x.h> #include <linux/gpio.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/flash.h> #include <plat/led.h> -#include "common.h" #include <plat/gpmc.h> #include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> +#include "common.h" #include "mux.h" #include "control.h"
arch/arm/mach-omap2/board-cm-t35.c +0 -2
@@ -43,8 +43,6 @@#include <plat/gpmc.h> #include <plat/usb.h> -#include <mach/hardware.h> -#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h>
arch/arm/mach-omap2/board-cm-t3517.c +1 -2
@@ -33,15 +33,14 @@#include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/can/platform/ti_hecc.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/usb.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/gpmc.h> -#include <plat/serial.h> #include <mach/am35xx.h>
arch/arm/mach-omap2/board-devkit8000.c +9 -13
@@ -24,38 +24,34 @@#include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/mmc/host.h> -#include <linux/regulator/machine.h> #include <linux/i2c/twl.h> +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/input/matrix_keypad.h> +#include <linux/spi/spi.h> +#include <linux/dm9000.h> -#include <mach/hardware.h> -#include <mach/id.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include "common.h" #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> + +#include <mach/id.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <linux/input/matrix_keypad.h> -#include <linux/spi/spi.h> -#include <linux/dm9000.h> -#include <linux/interrupt.h> -#include "sdram-micron-mt46h32m32lf-6.h" - +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "common-board-devices.h"
arch/arm/mach-omap2/board-flash.c +3 -3
@@ -16,13 +16,13 @@#include <linux/platform_device.h> #include <linux/mtd/physmap.h> #include <linux/io.h> - -#include <plat/cpu.h> -#include <plat/gpmc.h> #include <linux/platform_data/mtd-nand-omap2.h> #include <linux/platform_data/mtd-onenand-omap2.h> + +#include <plat/gpmc.h> #include <plat/tc.h> +#include "common.h" #include "board-flash.h" #define REG_FPGA_REV 0x10
arch/arm/mach-omap2/board-generic.c +0 -1
@@ -16,7 +16,6 @@#include <linux/of_platform.h> #include <linux/irqdomain.h> -#include <mach/hardware.h> #include <asm/hardware/gic.h> #include <asm/mach/arch.h>
arch/arm/mach-omap2/board-h4.c +1 -2
@@ -27,12 +27,10 @@#include <linux/io.h> #include <linux/input/matrix_keypad.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "common.h" #include <plat/menelaus.h> #include <plat/dma.h> #include <plat/gpmc.h>
@@ -41,6 +39,7 @@#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> +#include "common.h" #include "mux.h" #include "control.h"
arch/arm/mach-omap2/board-igep0020.c +0 -1
@@ -31,7 +31,6 @@#include <plat/gpmc.h> #include <plat/usb.h> -#include <plat/serial.h> #include <video/omapdss.h> #include <video/omap-panel-tfp410.h>
arch/arm/mach-omap2/board-ldp.c +4 -6
@@ -28,24 +28,22 @@#include <linux/io.h> #include <linux/smsc911x.h> #include <linux/mmc/host.h> +#include <linux/platform_data/spi-omap2-mcspi.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include "common.h" #include <plat/gpmc.h> -#include <mach/board-zoom.h> - -#include <asm/delay.h> #include <plat/usb.h> #include <plat/gpmc-smsc911x.h> +#include <mach/board-zoom.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> +#include "common.h" #include "board-flash.h" #include "mux.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-n8x0.c +5 -5
@@ -20,18 +20,18 @@#include <linux/i2c.h> #include <linux/spi/spi.h> #include <linux/usb/musb.h> -#include <sound/tlv320aic3x.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/platform_data/mtd-onenand-omap2.h> #include <asm/mach/arch.h> #include <asm/mach-types.h> -#include "common.h" #include <plat/menelaus.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <linux/platform_data/mtd-onenand-omap2.h> #include <plat/mmc.h> -#include <plat/serial.h> +#include <sound/tlv320aic3x.h> + +#include "common.h" #include "mux.h" #define TUSB6010_ASYNC_CS 1
arch/arm/mach-omap2/board-omap3beagle.c +5 -7
@@ -24,29 +24,27 @@#include <linux/input.h> #include <linux/gpio_keys.h> #include <linux/opp.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/mmc/host.h> -#include <linux/regulator/machine.h> #include <linux/i2c/twl.h> +#include <linux/platform_data/mtd-nand-omap2.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include "common.h" -#include <video/omapdss.h> -#include <video/omap-panel-tfp410.h> #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> #include <plat/omap_device.h> +#include <video/omapdss.h> +#include <video/omap-panel-tfp410.h> + +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "pm.h"
arch/arm/mach-omap2/board-omap3evm.c +4 -7
@@ -23,35 +23,32 @@#include <linux/input/matrix_keypad.h> #include <linux/leds.h> #include <linux/interrupt.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> -#include <linux/spi/spi.h> #include <linux/spi/ads7846.h> #include <linux/i2c/twl.h> #include <linux/usb/otg.h> #include <linux/smsc911x.h> - +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> #include <linux/wl12xx.h> #include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> #include <linux/mmc/host.h> #include <linux/export.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/usb.h> -#include <linux/platform_data/mtd-nand-omap2.h> -#include "common.h" -#include <linux/platform_data/spi-omap2-mcspi.h> +#include <video/omapdss.h> #include <video/omap-panel-tfp410.h> +#include "common.h" #include "mux.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-omap3logic.c +6 -10
@@ -23,30 +23,26 @@#include <linux/clk.h> #include <linux/io.h> #include <linux/gpio.h> -#include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> -#include <linux/i2c/twl.h> #include <linux/mmc/host.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "mux.h" -#include "hsmmc.h" -#include "control.h" -#include "common-board-devices.h" - -#include <plat/mux.h> -#include "common.h" #include <plat/gpmc-smsc911x.h> #include <plat/gpmc.h> #include <plat/sdrc.h> #include <plat/usb.h> +#include "common.h" +#include "mux.h" +#include "hsmmc.h" +#include "control.h" +#include "common-board-devices.h" +#define OMAP3LOGIC_SMSC911X_CS 1#define OMAP3530_LV_SOM_MMC_GPIO_CD 110
arch/arm/mach-omap2/board-omap3pandora.c +4 -5
@@ -20,7 +20,6 @@#include <linux/init.h> #include <linux/kernel.h> #include <linux/platform_device.h> -#include <linux/spi/spi.h> #include <linux/regulator/machine.h> #include <linux/i2c/twl.h>
@@ -35,18 +34,18 @@#include <linux/mmc/host.h> #include <linux/mmc/card.h> #include <linux/regulator/fixed.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include "common.h" -#include <mach/hardware.h> -#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/usb.h> +#include <video/omapdss.h> -#include <linux/platform_data/mtd-nand-omap2.h> +#include "common.h" #include "mux.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-omap3stalker.c +9 -11
@@ -23,33 +23,31 @@#include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> -#include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> #include <linux/i2c/twl.h> #include <linux/mmc/host.h> +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/input/matrix_keypad.h> +#include <linux/spi/spi.h> +#include <linux/interrupt.h> +#include <linux/smsc911x.h> +#include <linux/i2c/at24.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> -#include "common.h" #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <linux/input/matrix_keypad.h> -#include <linux/spi/spi.h> -#include <linux/interrupt.h> -#include <linux/smsc911x.h> -#include <linux/i2c/at24.h> - +#include "common.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "mux.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-omap3touchbook.c +2 -7
@@ -23,32 +23,27 @@#include <linux/gpio.h> #include <linux/input.h> #include <linux/gpio_keys.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/mmc/host.h> -#include <linux/platform_data/spi-omap2-mcspi.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <linux/spi/spi.h> -#include <linux/spi/ads7846.h> -#include <linux/regulator/machine.h> #include <linux/i2c/twl.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> #include <asm/system_info.h> -#include "common.h" #include <plat/gpmc.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/usb.h> +#include "common.h" #include "mux.h" #include "hsmmc.h" #include "common-board-devices.h"
arch/arm/mach-omap2/board-omap4panda.c +4 -3
@@ -32,18 +32,19 @@#include <linux/wl12xx.h> #include <linux/platform_data/omap-abe-twl6040.h> -#include <mach/hardware.h> #include <asm/hardware/gic.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <video/omapdss.h> -#include "common.h" #include <plat/usb.h> #include <plat/mmc.h> + +#include <video/omapdss.h> #include <video/omap-panel-tfp410.h> +#include "soc.h" +#include "common.h" #include "hsmmc.h" #include "control.h" #include "mux.h"
arch/arm/mach-omap2/board-overo.c +6 -8
@@ -31,28 +31,26 @@#include <linux/regulator/machine.h> #include <linux/regulator/fixed.h> #include <linux/spi/spi.h> -#include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/mmc/host.h> +#include <linux/platform_data/mtd-nand-omap2.h> +#include <linux/platform_data/spi-omap2-mcspi.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/flash.h> #include <asm/mach/map.h> -#include "common.h" +#include <plat/gpmc.h> +#include <plat/usb.h> +#include <video/omapdss.h> #include <video/omap-panel-generic-dpi.h> #include <video/omap-panel-tfp410.h> -#include <plat/gpmc.h> -#include <mach/hardware.h> -#include <linux/platform_data/mtd-nand-omap2.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include <plat/mux.h> -#include <plat/usb.h> +#include "common.h" #include "mux.h" #include "sdram-micron-mt46h32m32lf-6.h" #include "hsmmc.h"
arch/arm/mach-omap2/board-rm680.c +0 -1
@@ -25,7 +25,6 @@#include <plat/mmc.h> #include <plat/usb.h> #include <plat/gpmc.h> -#include <plat/serial.h> #include <linux/platform_data/mtd-onenand-omap2.h>
arch/arm/mach-omap2/board-rx51.c +2 -3
@@ -17,18 +17,17 @@#include <linux/io.h> #include <linux/gpio.h> #include <linux/leds.h> +#include <linux/platform_data/spi-omap2-mcspi.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> -#include <linux/platform_data/spi-omap2-mcspi.h> -#include "common.h" #include <plat/dma.h> #include <plat/gpmc.h> #include <plat/usb.h> +#include "common.h" #include "mux.h" #include "pm.h" #include "sdram-nokia.h"
arch/arm/mach-omap2/board-ti8168evm.c +1 -1
@@ -15,12 +15,12 @@#include <linux/kernel.h> #include <linux/init.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/usb.h> +#include "common.h" static struct omap_musb_board_data musb_board_data = {
arch/arm/mach-omap2/board-zoom-debugboard.c +3 -1
@@ -19,10 +19,12 @@#include <plat/gpmc.h> #include <plat/gpmc-smsc911x.h> -#include <plat/serial.h> #include <mach/board-zoom.h> +#include "soc.h" +#include "common.h" +#define ZOOM_SMSC911X_CS 7#define ZOOM_SMSC911X_GPIO 158#define ZOOM_QUADUART_CS 3
arch/arm/mach-omap2/board-zoom-display.c +2 -2
@@ -16,12 +16,12 @@#include <linux/spi/spi.h> #include <linux/platform_data/spi-omap2-mcspi.h> -#include <plat/cpu.h> -#include <mach/board-zoom.h> #include <video/omapdss.h> +#include "common.h" +#define LCD_PANEL_RESET_GPIO_PROD 96#define LCD_PANEL_RESET_GPIO_PILOT 55#define LCD_PANEL_QVGA_GPIO 56
arch/arm/mach-omap2/board-zoom-peripherals.c +0 -1
@@ -26,7 +26,6 @@#include <asm/mach/map.h> #include <plat/usb.h> -#include <plat/serial.h> #include <mach/board-zoom.h>
arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c +1 -1
@@ -33,11 +33,11 @@#include <linux/cpufreq.h> #include <linux/slab.h> -#include <plat/cpu.h> #include <plat/clock.h> #include <plat/sram.h> #include <plat/sdrc.h> +#include "soc.h" #include "clock.h" #include "clock2xxx.h" #include "opp2xxx.h"
arch/arm/mach-omap2/clkt_dpll.c +1 -1
@@ -22,8 +22,8 @@#include <asm/div64.h> #include <plat/clock.h> -#include <plat/cpu.h> +#include "soc.h" #include "clock.h" #include "cm-regbits-24xx.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/clock.c +5 -3
@@ -22,14 +22,16 @@#include <linux/clk.h> #include <linux/io.h> #include <linux/bitops.h> -#include <trace/events/power.h> #include <asm/cpu.h> +#include <plat/clock.h> -#include "clockdomain.h" -#include <plat/cpu.h> #include <plat/prcm.h> +#include <trace/events/power.h> + +#include "soc.h" +#include "clockdomain.h" #include "clock.h" #include "cm2xxx_3xxx.h" #include "cm-regbits-24xx.h"
arch/arm/mach-omap2/clock2420_data.c +1 -1
@@ -18,9 +18,9 @@#include <linux/clk.h> #include <linux/list.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "soc.h" #include "iomap.h" #include "clock.h" #include "clock2xxx.h"
arch/arm/mach-omap2/clock2430.c +1 -1
@@ -21,9 +21,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clock.h> +#include "soc.h" #include "iomap.h" #include "clock.h" #include "clock2xxx.h"
arch/arm/mach-omap2/clock2430_data.c +1 -1
@@ -17,9 +17,9 @@#include <linux/clk.h> #include <linux/list.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "soc.h" #include "iomap.h" #include "clock.h" #include "clock2xxx.h"
arch/arm/mach-omap2/clock2xxx.c +1 -1
@@ -22,9 +22,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/cpu.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "clock2xxx.h" #include "cm.h"
arch/arm/mach-omap2/clock3xxx.c +1 -1
@@ -21,9 +21,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "clock3xxx.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/clock3xxx_data.c +1 -1
@@ -21,9 +21,9 @@#include <linux/list.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "soc.h" #include "iomap.h" #include "clock.h" #include "clock3xxx.h"
arch/arm/mach-omap2/clock44xx_data.c +1 -1
@@ -28,9 +28,9 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clkdev_omap.h> +#include "soc.h" #include "iomap.h" #include "clock.h" #include "clock44xx.h"
arch/arm/mach-omap2/cm2xxx_3xxx.c +1 -2
@@ -18,8 +18,7 @@#include <linux/err.h> #include <linux/io.h> -#include <plat/hardware.h> - +#include "soc.h" #include "iomap.h" #include "common.h" #include "cm.h"
arch/arm/mach-omap2/common.c +1 -1
@@ -17,10 +17,10 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/mux.h> #include <plat/clock.h> +#include "soc.h" #include "iomap.h" #include "common.h" #include "sdrc.h"
arch/arm/mach-omap2/common.h +5 -1
@@ -29,9 +29,13 @@#include <linux/irq.h> #include <linux/delay.h> #include <linux/i2c/twl.h> -#include <plat/common.h> +#include <asm/proc-fns.h> +#include <plat/cpu.h> +#include <plat/serial.h> +#include <plat/common.h> +#define OMAP_INTC_START NR_IRQS#ifdef CONFIG_SOC_OMAP2420
arch/arm/mach-omap2/control.c +1 -1
@@ -15,9 +15,9 @@#include <linux/kernel.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/sdrc.h> +#include "soc.h" #include "iomap.h" #include "common.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/devices.c +0 -1
@@ -19,7 +19,6 @@#include <linux/of.h> #include <linux/platform_data/omap4-keypad.h> -#include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/pmu.h>
arch/arm/mach-omap2/dpll3xxx.c +1 -1
@@ -28,9 +28,9 @@#include <linux/bitops.h> #include <linux/clkdev.h> -#include <plat/cpu.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "cm2xxx_3xxx.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/dpll44xx.c +1 -1
@@ -15,9 +15,9 @@#include <linux/io.h> #include <linux/bitops.h> -#include <plat/cpu.h> #include <plat/clock.h> +#include "soc.h" #include "clock.h" #include "clock44xx.h" #include "cm-regbits-44xx.h"
arch/arm/mach-omap2/emu.c +0 -2
@@ -21,8 +21,6 @@#include <linux/clk.h> #include <linux/err.h> -#include <mach/hardware.h> -#include "iomap.h" MODULE_LICENSE ("GPL" );
arch/arm/mach-omap2/gpmc-nand.c +3 -2
@@ -13,13 +13,14 @@#include <linux/platform_device.h> #include <linux/io.h> #include <linux/mtd/nand.h> +#include <linux/platform_data/mtd-nand-omap2.h> #include <asm/mach/flash.h> -#include <plat/cpu.h> -#include <linux/platform_data/mtd-nand-omap2.h> #include <plat/gpmc.h> +#include "soc.h" +static struct resource gpmc_nand_resource[] = { { .flags =IORESOURCE_MEM ,
arch/arm/mach-omap2/gpmc-onenand.c +3 -2
@@ -15,13 +15,14 @@#include <linux/platform_device.h> #include <linux/mtd/onenand_regs.h> #include <linux/io.h> +#include <linux/platform_data/mtd-onenand-omap2.h> #include <asm/mach/flash.h> -#include <plat/cpu.h> -#include <linux/platform_data/mtd-onenand-omap2.h> #include <plat/gpmc.h> +#include "soc.h" +#define ONENAND_IO_SIZE SZ_128Kstatic struct omap_onenand_platform_data *gpmc_onenand_data;
arch/arm/mach-omap2/gpmc-smc91x.c +2 -1
@@ -17,10 +17,11 @@#include <linux/io.h> #include <linux/smc91x.h> -#include <plat/cpu.h> #include <plat/gpmc.h> #include <plat/gpmc-smc91x.h> +#include "soc.h" +static struct omap_smc91x_platform_data *gpmc_cfg;static struct resource gpmc_smc91x_resources[] = {
arch/arm/mach-omap2/gpmc.c +1 -2
@@ -27,11 +27,10 @@#include <asm/mach-types.h> -#include <plat/cpu.h> #include <plat/gpmc.h> #include <plat/sdrc.h> -#include <mach/hardware.h> +#include "soc.h" #include "common.h"
arch/arm/mach-omap2/hsmmc.c +0 -2
@@ -21,8 +21,6 @@#include <plat/mux.h> #include <plat/omap_device.h> -#include <mach/hardware.h> -#include "mux.h" #include "hsmmc.h" #include "control.h"
arch/arm/mach-omap2/i2c.c +0 -1
@@ -19,7 +19,6 @@* */ -#include <plat/cpu.h> #include <plat/i2c.h> #include "common.h" #include <plat/omap_hwmod.h>
arch/arm/mach-omap2/id.c +1 -1
@@ -22,10 +22,10 @@#include <asm/cputype.h> #include "common.h" -#include <plat/cpu.h> #include <mach/id.h> +#include "soc.h" #include "control.h" static unsigned int omap_revision;
arch/arm/mach-omap2/include/mach/hardware.h +0 -2
@@ -1,5 +1,3 @@/* * arch/arm/mach-omap2/include/mach/hardware.h */ - -#include <plat/hardware.h>
arch/arm/mach-omap2/io.c +1 -2
@@ -33,8 +33,7 @@#include <plat/multi.h> #include <plat/dma.h> -#include <mach/hardware.h> - +#include "soc.h" #include "iomap.h" #include "voltage.h" #include "powerdomain.h"
arch/arm/mach-omap2/irq.c +1 -2
@@ -23,8 +23,7 @@#include <linux/of_address.h> #include <linux/of_irq.h> -#include <mach/hardware.h> - +#include "soc.h" #include "iomap.h" #include "common.h"
arch/arm/mach-omap2/mailbox.c +2 -1
@@ -17,9 +17,10 @@#include <linux/io.h> #include <linux/pm_runtime.h> -#include <plat/cpu.h> #include <plat/mailbox.h> +#include "soc.h" +#define MAILBOX_REVISION 0x000#define MAILBOX_MESSAGE (m) (0x040 + 4 * (m))#define MAILBOX_FIFOSTATUS (m) (0x080 + 4 * (m))
arch/arm/mach-omap2/mcbsp.c +2 -3
@@ -17,12 +17,11 @@#include <linux/io.h> #include <linux/platform_device.h> #include <linux/slab.h> +#include <linux/pm_runtime.h> +#include <linux/platform_data/ti-mcbsp.h> #include <plat/dma.h> -#include <plat/cpu.h> -#include <linux/platform_data/ti-mcbsp.h> #include <plat/omap_device.h> -#include <linux/pm_runtime.h> #include "control.h"
arch/arm/mach-omap2/omap-smp.c +1 -1
@@ -24,11 +24,11 @@#include <asm/hardware/gic.h> #include <asm/smp_scu.h> -#include <mach/hardware.h> #include <mach/omap-secure.h> #include <mach/omap-wakeupgen.h> #include <asm/cputype.h> +#include "soc.h" #include "iomap.h" #include "common.h" #include "clockdomain.h"
arch/arm/mach-omap2/omap-wakeupgen.c +1 -1
@@ -27,10 +27,10 @@#include <asm/hardware/gic.h> -#include <mach/hardware.h> #include <mach/omap-wakeupgen.h> #include <mach/omap-secure.h> +#include "soc.h" #include "omap4-sar-layout.h" #include "common.h"
arch/arm/mach-omap2/omap4-common.c +1 -1
@@ -29,9 +29,9 @@#include <plat/omap-secure.h> #include <plat/mmc.h> -#include <mach/hardware.h> #include <mach/omap-wakeupgen.h> +#include "soc.h" #include "common.h" #include "hsmmc.h" #include "omap4-sar-layout.h"
arch/arm/mach-omap2/omap_hwmod.c +4 -4
@@ -139,14 +139,14 @@#include <linux/slab.h> #include <linux/bootmem.h> -#include "common.h" -#include <plat/cpu.h> -#include "clockdomain.h" -#include "powerdomain.h" #include <plat/clock.h> #include <plat/omap_hwmod.h> #include <plat/prcm.h> +#include "soc.h" +#include "common.h" +#include "clockdomain.h" +#include "powerdomain.h" #include "cm2xxx_3xxx.h" #include "cminst44xx.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/omap_hwmod_2420_data.c +3 -2
@@ -12,12 +12,13 @@* XXX handle crossbar/shared link difference for L3? * XXX these should be marked initdata for multi-OMAP kernels */ + +#include <linux/platform_data/spi-omap2-mcspi.h> +#include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/dma.h> #include <plat/serial.h> #include <plat/i2c.h> -#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/dmtimer.h> #include <plat/l3_2xxx.h> #include <plat/l4_2xxx.h>
arch/arm/mach-omap2/omap_hwmod_2430_data.c +1 -4
@@ -16,7 +16,6 @@#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/dma.h> #include <plat/serial.h> #include <plat/i2c.h>
@@ -24,10 +23,8 @@#include <plat/mmc.h> #include <plat/l3_2xxx.h> -#include <plat/hardware.h> - +#include "soc.h" #include "omap_hwmod_common_data.h" -#include "prm-regbits-24xx.h" #include "cm-regbits-24xx.h" #include "wd_timer.h"
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +1 -2
@@ -20,7 +20,6 @@#include <linux/platform_data/spi-omap2-mcspi.h> #include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/dma.h> #include <plat/serial.h> #include <plat/l3_3xxx.h>
@@ -29,9 +28,9 @@#include <plat/mmc.h> #include <plat/dmtimer.h> -#include <mach/hardware.h> #include <mach/am35xx.h> +#include "soc.h" #include "omap_hwmod_common_data.h" #include "prm-regbits-34xx.h" #include "cm-regbits-34xx.h"
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -1
@@ -25,7 +25,6 @@#include <linux/power/smartreflex.h> #include <plat/omap_hwmod.h> -#include <plat/cpu.h> #include <plat/i2c.h> #include <plat/dma.h> #include <plat/mmc.h>
arch/arm/mach-omap2/omap_l3_noc.c +1 -2
@@ -28,8 +28,7 @@#include <linux/kernel.h> #include <linux/slab.h> -#include <plat/hardware.h> - +#include "soc.h" #include "omap_l3_noc.h" /*
arch/arm/mach-omap2/omap_phy_internal.c +1 -1
@@ -28,9 +28,9 @@#include <linux/err.h> #include <linux/usb.h> -#include <plat/hardware.h> #include <plat/usb.h> +#include "soc.h" #include "control.h" /* OMAP control module register for UTMI PHY */
arch/arm/mach-omap2/opp2420_data.c +1 -1
@@ -28,7 +28,7 @@* http://repository.maemo.org/pool/diablo/free/k/kernel-source-diablo/ */ -#include <plat/hardware.h> +#include <linux/kernel.h> #include "opp2xxx.h" #include "sdrc.h"
arch/arm/mach-omap2/opp2430_data.c +1 -1
@@ -26,7 +26,7 @@* This is technically part of the OMAP2xxx clock code. */ -#include <plat/hardware.h> +#include <linux/kernel.h> #include "opp2xxx.h" #include "sdrc.h"
arch/arm/mach-omap2/opp3xxx_data.c +0 -2
@@ -19,8 +19,6 @@*/ #include <linux/module.h> -#include <plat/cpu.h> -#include "control.h" #include "omap_opp_data.h" #include "pm.h"
arch/arm/mach-omap2/opp4xxx_data.c +1 -2
@@ -20,8 +20,7 @@*/ #include <linux/module.h> -#include <plat/cpu.h> - +#include "soc.h" #include "control.h" #include "omap_opp_data.h" #include "pm.h"
arch/arm/mach-omap2/powerdomain.c +4 -2
@@ -28,11 +28,13 @@#include "prm44xx.h" #include <asm/cpu.h> -#include <plat/cpu.h> + +#include <plat/prcm.h> +#include "powerdomain.h" #include "clockdomain.h" -#include <plat/prcm.h> +#include "soc.h" #include "pm.h" #define PWRDM_TRACE_STATES_FLAG (1<<31)
arch/arm/mach-omap2/powerdomains3xxx_data.c +1 -3
@@ -15,11 +15,9 @@#include <linux/init.h> #include <linux/bug.h> -#include <plat/cpu.h> - +#include "soc.h" #include "powerdomain.h" #include "powerdomains2xxx_3xxx_data.h" -#include "prcm-common.h" #include "prm2xxx_3xxx.h" #include "prm-regbits-34xx.h"
arch/arm/mach-omap2/prm2xxx_3xxx.c +2 -2
@@ -17,10 +17,10 @@#include <linux/io.h> #include <linux/irq.h> -#include "common.h" -#include <plat/cpu.h> #include <plat/prcm.h> +#include "soc.h" +#include "common.h" #include "vp.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/prm44xx.c +1 -2
@@ -17,10 +17,9 @@#include <linux/err.h> #include <linux/io.h> -#include <plat/cpu.h> #include <plat/prcm.h> -#include <plat/hardware.h> +#include "soc.h" #include "iomap.h" #include "common.h" #include "vp.h"
arch/arm/mach-omap2/sdrc2xxx.c +1 -1
@@ -24,11 +24,11 @@#include <linux/clk.h> #include <linux/io.h> -#include <plat/hardware.h> #include <plat/clock.h> #include <plat/sram.h> #include <plat/sdrc.h> +#include "soc.h" #include "iomap.h" #include "common.h" #include "prm2xxx_3xxx.h"
arch/arm/mach-omap2/sleep34xx.S +1 -1
@@ -26,7 +26,7 @@ #include <asm/assembler.h> -#include <plat/hardware.h> +#include <plat/omap34xx.h> #include <plat/sram.h> #include "iomap.h"
arch/arm/mach-omap2/soc.h new file +7 -0
@@ -0,0 +1,7 @@ +#include <plat/cpu.h> +#include <plat/omap24xx.h> +#include <plat/omap34xx.h> +#include <plat/omap44xx.h> +#include <plat/ti81xx.h> +#include <plat/am33xx.h> +#include <plat/omap54xx.h>
arch/arm/mach-omap2/sram242x.S +1 -2
@@ -32,8 +32,7 @@ #include <asm/assembler.h> -#include <mach/hardware.h> - +#include "soc.h" #include "iomap.h" #include "prm2xxx_3xxx.h" #include "cm2xxx_3xxx.h"
arch/arm/mach-omap2/sram243x.S +1 -2
@@ -32,8 +32,7 @@ #include <asm/assembler.h> -#include <mach/hardware.h> - +#include "soc.h" #include "iomap.h" #include "prm2xxx_3xxx.h" #include "cm2xxx_3xxx.h"
arch/arm/mach-omap2/sram34xx.S +1 -2
@@ -29,8 +29,7 @@ #include <asm/assembler.h> -#include <mach/hardware.h> - +#include "soc.h" #include "iomap.h" #include "sdrc.h" #include "cm2xxx_3xxx.h"
arch/arm/mach-omap2/timer.c +1 -2
@@ -46,8 +46,7 @@#include <plat/dmtimer.h> #include <plat/omap-pm.h> -#include <mach/hardware.h> - +#include "soc.h" #include "common.h" #include "powerdomain.h"
arch/arm/mach-omap2/twl-common.c +1 -1
@@ -26,10 +26,10 @@#include <linux/regulator/machine.h> #include <linux/regulator/fixed.h> -#include <plat/hardware.h> #include <plat/i2c.h> #include <plat/usb.h> +#include "soc.h" #include "twl-common.h" #include "pm.h" #include "voltage.h"
arch/arm/mach-omap2/usb-host.c +0 -1
@@ -25,7 +25,6 @@#include <asm/io.h> -#include <mach/hardware.h> #include <plat/usb.h> #include <plat/omap_device.h>
arch/arm/mach-omap2/usb-musb.c +3 -3
@@ -23,13 +23,13 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> -#include <linux/usb/musb.h> -#include <mach/hardware.h> -#include <mach/am35xx.h> #include <plat/usb.h> #include <plat/omap_device.h> + +#include <mach/am35xx.h> +#include "mux.h" static struct musb_hdrc_config musb_config = {
arch/arm/mach-omap2/vc.c +1 -2
@@ -12,8 +12,7 @@#include <linux/init.h> #include <linux/bug.h> -#include <plat/cpu.h> - +#include "soc.h" #include "voltage.h" #include "vc.h" #include "prm-regbits-34xx.h"
arch/arm/mach-omap2/voltagedomains3xxx_data.c +1 -2
@@ -18,9 +18,8 @@#include <linux/err.h> #include <linux/init.h> +#include "soc.h" #include "common.h" -#include <plat/cpu.h> -#include "prm-regbits-34xx.h" #include "omap_opp_data.h" #include "voltage.h"
arch/arm/plat-omap/counter_32k.c +0 -2
@@ -22,9 +22,7 @@#include <asm/mach/time.h> #include <asm/sched_clock.h> -#include <plat/hardware.h> #include <plat/common.h> -#include <plat/clock.h> /* OMAP2_32KSYNCNT_CR_OFF: offset of 32ksync counter register */
arch/arm/plat-omap/dma.c +1 -2
@@ -36,9 +36,8 @@#include <linux/slab.h> #include <linux/delay.h> -#include <mach/hardware.h> +#include <plat/cpu.h> #include <plat/dma.h> -#include <plat/tc.h> /*
arch/arm/plat-omap/include/plat/cpu.h +3 -0
@@ -30,6 +30,8 @@#ifndef __ASM_ARCH_OMAP_CPU_H#define __ASM_ARCH_OMAP_CPU_H +#ifndef __ASSEMBLY__ +#include <linux/bitops.h> #include <plat/multi.h>
@@ -493,4 +495,5 @@ OMAP4_HAS_FEATURE(mpu_1ghz, MPU_1GHZ) OMAP4_HAS_FEATURE(mpu_1_2ghz, MPU_1_2GHZ) OMAP4_HAS_FEATURE(mpu_1_5ghz, MPU_1_5GHZ) +#endif /* __ASSEMBLY__ */ #endif
arch/arm/plat-omap/include/plat/hardware.h deleted +0 -293
293 lines not on this page · raw message
arch/arm/plat-omap/include/plat/omap4-keypad.h +2 -0
@@ -1,6 +1,8 @@#ifndef ARCH_ARM_PLAT_OMAP4_KEYPAD_H #define ARCH_ARM_PLAT_OMAP4_KEYPAD_H +struct omap_board_data ; +extern int omap4_keyboard_init (struct omap4_keypad_platform_data *,struct omap_board_data *);#endif
arch/arm/plat-omap/include/plat/omap44xx.h +0 -1
@@ -45,7 +45,6 @@#define OMAP44XX_L2CACHE_BASE 0x48242000#define OMAP44XX_WKUPGEN_BASE 0x48281000#define OMAP44XX_MCPDM_BASE 0x40132000 -#define OMAP44XX_MCPDM_L3_BASE 0x49032000#define OMAP44XX_SAR_RAM_BASE 0x4a326000#define OMAP44XX_MAILBOX_BASE (L4_44XX_BASE + 0xF4000)
drivers/watchdog/omap_wdt.c +5 -0
@@ -46,6 +46,7 @@#include <linux/slab.h> #include <linux/pm_runtime.h> #include <mach/hardware.h> +#include <plat/cpu.h> #include <plat/prcm.h> #include "omap_wdt.h"
@@ -218,12 +219,16 @@ static long omap_wdt_ioctl(struct file *file, unsigned int cmd,case WDIOC_GETSTATUS :return put_user (0 , (int __user *)arg);case WDIOC_GETBOOTSTATUS : +#ifdef CONFIG_ARCH_OMAP1 if (cpu_is_omap16xx ())return put_user (__raw_readw (ARM_SYSST ), (int __user *)arg); +#endif +#ifdef CONFIG_ARCH_OMAP2PLUS if (cpu_is_omap24xx ())return put_user (omap_prcm_get_reset_sources (), (int __user *)arg); +#endif return put_user (0 , (int __user *)arg);case WDIOC_KEEPALIVE :spin_lock (&wdt_lock);
sound/soc/omap/omap-abe-twl6040.c +0 -4
@@ -31,10 +31,6 @@#include <sound/soc.h> #include <sound/jack.h> -#include <asm/mach-types.h> -#include <plat/hardware.h> -#include <plat/mux.h> -#include "omap-dmic.h" #include "omap-mcpdm.h" #include "omap-pcm.h"
sound/soc/omap/omap-mcpdm.c +2 -0
@@ -45,6 +45,8 @@#include "omap-mcpdm.h" #include "omap-pcm.h" +#define OMAP44XX_MCPDM_L3_BASE 0x49032000 +struct omap_mcpdm {struct device *dev;unsigned long phys_base;
Re: [PATCH 2/4] ARM: OMAP: Split plat/hardware.h, introduce local hardware.h and soc.h for omap2+
In reply to Tony LindgrenQuoted 7 lines · Tony Lindgren
Quoted 2 lines · Mark Brown
There's a topic/omap branch in ASoC which you can pull in to help reduce conflicts, or I could merge this there if that's sensible.
Thanks. Did not see it yet at
git://opensource.wolfsonmicro.com/linux-2.6-asoc,
maybe it's not yet pushed out?
Nobody said to apply it in ASoC and it was part of a series. If people want me to apply it directly to the OMAP branch please let me know (a resend would help...).