Skip to content

Commit

Permalink
ARM: OMAP: Make omap_device local to mach-omap2
Browse files Browse the repository at this point in the history
Let's make omap_device local to mach-omap2 for
ARM common zImage support.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Oct 17, 2012
1 parent 622297f commit 25c7d49
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 29 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-omap1/pm_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/clk.h>
#include <linux/err.h>

#include <plat/omap_device.h>
#include <plat/omap-pm.h>

#ifdef CONFIG_PM_RUNTIME
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-omap2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

# Common support
obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \
common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o
common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o \
omap_device.o

# INTCPS IP block support - XXX should be moved to drivers/
obj-$(CONFIG_ARCH_OMAP2) += irq.o
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/am35xx-emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/err.h>
#include <linux/davinci_emac.h>
#include <asm/system.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include "am35xx.h"
#include "control.h"
#include "am35xx-emac.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-omap3beagle.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "gpmc.h"
#include <linux/platform_data/mtd-nand-omap2.h>
#include <plat/usb.h>
#include <plat/omap_device.h>
#include "omap_device.h"

#include "mux.h"
#include "hsmmc.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "iomap.h"
#include <plat-omap/dma-omap.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include "omap4-keypad.h"

#include "soc.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <video/omapdss.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include <plat/omap-pm.h>
#include "common.h"

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-omap2/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
#include <linux/device.h>

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include <plat-omap/dma-omap.h>

#include "omap_device.h"

#define OMAP2_DMA_STRIDE 0x60

static u32 errata;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>

#include <plat/omap_device.h>
#include "omap_device.h"
#include <plat/omap_hwmod.h>

#if defined(CONFIG_DRM_OMAP) || (CONFIG_DRM_OMAP_MODULE)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/platform_data/gpio-omap.h>

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include <plat/omap-pm.h>

#include "powerdomain.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
#include <asm/mach-types.h>

#include <plat/cpu.h>
#include <plat/omap_device.h>

#include "soc.h"
#include "common.h"
#include "omap_device.h"
#include "gpmc.h"

#define DEVICE_NAME "omap-gpmc"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/hdq1w.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/platform_device.h>

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include "hdq1w.h"

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/platform_data/gpio-omap.h>

#include <plat/omap-pm.h>
#include <plat/omap_device.h>
#include "omap_device.h"

#include "mux.h"
#include "mmc.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/hwspinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/hwspinlock.h>

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"

static struct hwspinlock_pdata omap_hwspinlock_pdata __initdata = {
.base_id = 0,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "common.h"
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"

#include "mux.h"
#include "i2c.h"
Expand Down
5 changes: 3 additions & 2 deletions arch/arm/mach-omap2/mcbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
#include <linux/pm_runtime.h>

#include <plat-omap/dma-omap.h>
#include <plat/omap_device.h>
#include <linux/pm_runtime.h>

#include "omap_device.h"

/*
* FIXME: Find a mechanism to enable/disable runtime the McBSP ICLK autoidle.
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-omap2/msdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
#include <linux/platform_data/gpio-omap.h>

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>

#include "common.h"
#include "control.h"
#include "omap_device.h"
#include "mux.h"
#include "mmc.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#include <linux/of.h>
#include <linux/notifier.h>

#include <plat/omap_device.h>
#include "omap_device.h"
#include <plat/omap_hwmod.h>
#include <plat/clock.h>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/opp.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/opp.h>
#include <linux/cpu.h>

#include <plat/omap_device.h>
#include "omap_device.h"

#include "omap_opp_data.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <asm/system_misc.h>

#include <plat/omap-pm.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include "common.h"

#include "prcm-common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <asm/pmu.h>

#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"

static char *omap2_pmu_oh_names[] = {"mpu"};
static char *omap3_pmu_oh_names[] = {"mpu", "debugss"};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "common.h"
#include <plat-omap/dma-omap.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include <plat/omap-pm.h>
#include <plat/serial.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/sr_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/slab.h>
#include <linux/io.h>

#include <plat/omap_device.h>
#include "omap_device.h"

#include "voltage.h"
#include "control.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#include <asm/arch_timer.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "omap_device.h"
#include <plat/dmtimer.h>
#include <plat/omap-pm.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <asm/io.h>

#include <plat/usb.h>
#include <plat/omap_device.h>
#include "omap_device.h"

#include "mux.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/usb-musb.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/usb/musb.h>

#include <plat/usb.h>
#include <plat/omap_device.h>
#include "omap_device.h"

#include "am35xx.h"

Expand Down
1 change: 0 additions & 1 deletion arch/arm/plat-omap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ obj-n :=
obj- :=

# omap_device support (OMAP2+ only at the moment)
obj-$(CONFIG_ARCH_OMAP2PLUS) += omap_device.o

obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o
obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/plat-omap/omap-pm-noop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

/* Interface documentation is in mach/omap-pm.h */
#include <plat/omap-pm.h>
#include <plat/omap_device.h>

#include "../mach-omap2/omap_device.h"

static bool off_mode_enabled;
static int dummy_context_loss_counter;
Expand Down

0 comments on commit 25c7d49

Please sign in to comment.