Commit 9463728f authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Add clock framework for omap2

Add clock framework for omap2.

Based on omap2 clock framework code by Richard Woodruff.
parent 6089d42c
...@@ -194,7 +194,7 @@ SUBARCH := arm ...@@ -194,7 +194,7 @@ SUBARCH := arm
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
ARCH ?= $(SUBARCH) ARCH ?= $(SUBARCH)
CROSS_COMPILE ?= arm-linux- CROSS_COMPILE ?= arm-xscale-linux-gnu-
# Architecture as present in compile.h # Architecture as present in compile.h
UTS_MACHINE := $(ARCH) UTS_MACHINE := $(ARCH)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
# Common support # Common support
obj-y := irq.o io.o mux.o serial.o obj-y := irq.o io.o sram-fn.o clock.o mux.o serial.o
obj-$(CONFIG_OMAP_MPU_TIMER) += timer-gp.o obj-$(CONFIG_OMAP_MPU_TIMER) += timer-gp.o
......
This diff is collapsed.
This diff is collapsed.
...@@ -21,14 +21,15 @@ ...@@ -21,14 +21,15 @@
#include <asm/arch/mux.h> #include <asm/arch/mux.h>
extern void omap_sram_init(void); extern void omap_sram_init(void);
extern int omap2_clk_init(void);
/* /*
* The machine specific code may provide the extra mapping besides the * The machine specific code may provide the extra mapping besides the
* default mapping provided here. * default mapping provided here.
*/ */
static struct map_desc omap2_io_desc[] __initdata = { static struct map_desc omap2_io_desc[] __initdata = {
{ L3_VIRT, L3_PHYS, L3_SIZE, MT_DEVICE }, { L3_24XX_VIRT, L3_24XX_PHYS, L3_24XX_SIZE, MT_DEVICE },
{ L4_VIRT, L4_PHYS, L4_SIZE, MT_DEVICE }, { L4_24XX_VIRT, L4_24XX_PHYS, L4_24XX_SIZE, MT_DEVICE },
}; };
void __init omap_map_common_io(void) void __init omap_map_common_io(void)
...@@ -36,4 +37,5 @@ void __init omap_map_common_io(void) ...@@ -36,4 +37,5 @@ void __init omap_map_common_io(void)
iotable_init(omap2_io_desc, ARRAY_SIZE(omap2_io_desc)); iotable_init(omap2_io_desc, ARRAY_SIZE(omap2_io_desc));
omap_sram_init(); omap_sram_init();
omap2_mux_init(); omap2_mux_init();
omap2_clk_init();
} }
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment