diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx2/clock_imx27.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-mx2/mx27lite.c | 31 |
2 files changed, 26 insertions, 6 deletions
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c index 4089951acb47..2825568f2fa5 100644 --- a/arch/arm/mach-mx2/clock_imx27.c +++ b/arch/arm/mach-mx2/clock_imx27.c @@ -622,6 +622,7 @@ DEFINE_CLOCK1(csi_clk, 0, 0, 0, parent, &csi_clk1, &per4_clk); }, static struct clk_lookup lookups[] = { + _REGISTER_CLOCK(NULL, "ckil", ckil_clk) _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) diff --git a/arch/arm/mach-mx2/mx27lite.c b/arch/arm/mach-mx2/mx27lite.c index ddd412d2b16e..26cc4a81ac03 100644 --- a/arch/arm/mach-mx2/mx27lite.c +++ b/arch/arm/mach-mx2/mx27lite.c @@ -278,12 +278,6 @@ static struct platform_device mxc_keypad_device = { }, }; -static struct platform_device *platform_devices[] __initdata = { - &mx27lite_nor_mtd_device, - &mxc_fec_device, - &mxc_keypad_device, -}; - static int mx27ads_sdhc2_init(struct device *dev, irq_handler_t detect_irq, void *data) { @@ -315,6 +309,31 @@ static struct imxi2c_platform_data mx27lite_i2c_data_1 = { static struct i2c_board_info mx27lite_i2c_devices_1[] = { }; +static struct resource rtc_resources[] = { + { + .start = RTC_BASE_ADDR, + .end = RTC_BASE_ADDR + 0x30, + .flags = IORESOURCE_MEM, + }, + { + .start = MXC_INT_RTC, + .flags = IORESOURCE_IRQ, + }, + }; +static struct platform_device mxc_rtc_device = { + .name = "mxc_rtc", + .id = 0, + .num_resources = ARRAY_SIZE(rtc_resources), + .resource = rtc_resources, +}; + +static struct platform_device *platform_devices[] __initdata = { + &mx27lite_nor_mtd_device, + &mxc_fec_device, + &mxc_keypad_device, + &mxc_rtc_device, +}; + static void __init mx27lite_init(void) { mxc_gpio_setup_multiple_pins(mx27lite_pins, ARRAY_SIZE(mx27lite_pins), |