# 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
+ 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
- obj-$(CONFIG_ARCH_OMAP3) += irq.o
- obj-$(CONFIG_SOC_AM33XX) += irq.o
-
- # Secure monitor API support
- obj-$(CONFIG_ARCH_OMAP3) += omap-smc.o omap-secure.o
- obj-$(CONFIG_ARCH_OMAP4) += omap-smc.o omap-secure.o
- obj-$(CONFIG_SOC_OMAP5) += omap-smc.o omap-secure.o
+ omap-2-3-common = irq.o
+ hwmod-common = omap_hwmod.o \
+ omap_hwmod_common_data.o
+ clock-common = clock.o clock_common_data.o \
+ clkt_dpll.o clkt_clksel.o
+ secure-common = omap-smc.o omap-secure.o
+
+ obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(hwmod-common)
+ obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(hwmod-common) $(secure-common)
+ obj-$(CONFIG_ARCH_OMAP4) += prm44xx.o $(hwmod-common) $(secure-common)
+ obj-$(CONFIG_SOC_AM33XX) += irq.o $(hwmod-common)
+ obj-$(CONFIG_SOC_OMAP5) += prm44xx.o $(hwmod-common) $(secure-common)
ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),)
obj-y += mcbsp.o
#include <asm/mach-types.h>
#include <asm/system_misc.h>
-#include <plat/clock.h>
-#include <plat/sram.h>
-#include <plat/dma.h>
+#include <plat-omap/dma-omap.h>
+#include "../plat-omap/sram.h"
+
+#include "soc.h"
#include "common.h"
- #include "prm2xxx_3xxx.h"
+#include "clock.h"
+ #include "prm2xxx.h"
#include "prm-regbits-24xx.h"
- #include "cm2xxx_3xxx.h"
+ #include "cm2xxx.h"
#include "cm-regbits-24xx.h"
#include "sdrc.h"
#include "pm.h"
#include <asm/suspend.h>
#include <asm/system_misc.h>
-#include <plat/sram.h>
#include "clockdomain.h"
#include "powerdomain.h"
-#include <plat/sdrc.h>
#include <plat/prcm.h>
-#include <plat/gpmc.h>
-#include <plat/dma.h>
+#include <plat-omap/dma-omap.h>
+#include "../plat-omap/sram.h"
+
+#include "soc.h"
#include "common.h"
- #include "cm2xxx_3xxx.h"
+ #include "cm3xxx.h"
#include "cm-regbits-34xx.h"
+#include "gpmc.h"
#include "prm-regbits-34xx.h"
-
- #include "prm2xxx_3xxx.h"
+ #include "prm3xxx.h"
#include "pm.h"
#include "sdrc.h"
#include "control.h"