Loading arch/arm/mach-mxs/devices-mx23.h +2 −0 Original line number Diff line number Diff line Loading @@ -29,3 +29,5 @@ extern const struct mxs_mxs_mmc_data mx23_mxs_mmc_data[] __initconst; struct platform_device *__init mx23_add_mxsfb( const struct mxsfb_platform_data *pdata); struct platform_device *__init mx23_add_rtc_stmp3xxx(void); arch/arm/mach-mxs/devices-mx28.h +2 −0 Original line number Diff line number Diff line Loading @@ -48,3 +48,5 @@ struct platform_device *__init mx28_add_mxsfb( extern const struct mxs_saif_data mx28_saif_data[] __initconst; #define mx28_add_saif(id) mxs_add_saif(&mx28_saif_data[id]) struct platform_device *__init mx28_add_rtc_stmp3xxx(void); arch/arm/mach-mxs/devices/Kconfig +3 −0 Original line number Diff line number Diff line Loading @@ -26,3 +26,6 @@ config MXS_HAVE_PLATFORM_MXSFB config MXS_HAVE_PLATFORM_MXS_SAIF bool config MXS_HAVE_PLATFORM_RTC_STMP3XXX bool arch/arm/mach-mxs/devices/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -9,3 +9,4 @@ obj-$(CONFIG_MXS_HAVE_PLATFORM_MXS_PWM) += platform-mxs-pwm.o obj-y += platform-gpio-mxs.o obj-$(CONFIG_MXS_HAVE_PLATFORM_MXSFB) += platform-mxsfb.o obj-$(CONFIG_MXS_HAVE_PLATFORM_MXS_SAIF) += platform-mxs-saif.o obj-$(CONFIG_MXS_HAVE_PLATFORM_RTC_STMP3XXX) += platform-rtc-stmp3xxx.o arch/arm/mach-mxs/devices/platform-rtc-stmp3xxx.c 0 → 100644 +51 −0 Original line number Diff line number Diff line /* * Copyright (C) 2011 Pengutronix, Wolfram Sang <w.sang@pengutronix.de> * * 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. */ #include <asm/sizes.h> #include <mach/mx23.h> #include <mach/mx28.h> #include <mach/devices-common.h> #ifdef CONFIG_SOC_IMX23 struct platform_device *__init mx23_add_rtc_stmp3xxx(void) { struct resource res[] = { { .start = MX23_RTC_BASE_ADDR, .end = MX23_RTC_BASE_ADDR + SZ_8K - 1, .flags = IORESOURCE_MEM, }, { .start = MX23_INT_RTC_ALARM, .end = MX23_INT_RTC_ALARM, .flags = IORESOURCE_IRQ, }, }; return mxs_add_platform_device("stmp3xxx-rtc", 0, res, ARRAY_SIZE(res), NULL, 0); } #endif /* CONFIG_SOC_IMX23 */ #ifdef CONFIG_SOC_IMX28 struct platform_device *__init mx28_add_rtc_stmp3xxx(void) { struct resource res[] = { { .start = MX28_RTC_BASE_ADDR, .end = MX28_RTC_BASE_ADDR + SZ_8K - 1, .flags = IORESOURCE_MEM, }, { .start = MX28_INT_RTC_ALARM, .end = MX28_INT_RTC_ALARM, .flags = IORESOURCE_IRQ, }, }; return mxs_add_platform_device("stmp3xxx-rtc", 0, res, ARRAY_SIZE(res), NULL, 0); } #endif /* CONFIG_SOC_IMX28 */ Loading
arch/arm/mach-mxs/devices-mx23.h +2 −0 Original line number Diff line number Diff line Loading @@ -29,3 +29,5 @@ extern const struct mxs_mxs_mmc_data mx23_mxs_mmc_data[] __initconst; struct platform_device *__init mx23_add_mxsfb( const struct mxsfb_platform_data *pdata); struct platform_device *__init mx23_add_rtc_stmp3xxx(void);
arch/arm/mach-mxs/devices-mx28.h +2 −0 Original line number Diff line number Diff line Loading @@ -48,3 +48,5 @@ struct platform_device *__init mx28_add_mxsfb( extern const struct mxs_saif_data mx28_saif_data[] __initconst; #define mx28_add_saif(id) mxs_add_saif(&mx28_saif_data[id]) struct platform_device *__init mx28_add_rtc_stmp3xxx(void);
arch/arm/mach-mxs/devices/Kconfig +3 −0 Original line number Diff line number Diff line Loading @@ -26,3 +26,6 @@ config MXS_HAVE_PLATFORM_MXSFB config MXS_HAVE_PLATFORM_MXS_SAIF bool config MXS_HAVE_PLATFORM_RTC_STMP3XXX bool
arch/arm/mach-mxs/devices/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -9,3 +9,4 @@ obj-$(CONFIG_MXS_HAVE_PLATFORM_MXS_PWM) += platform-mxs-pwm.o obj-y += platform-gpio-mxs.o obj-$(CONFIG_MXS_HAVE_PLATFORM_MXSFB) += platform-mxsfb.o obj-$(CONFIG_MXS_HAVE_PLATFORM_MXS_SAIF) += platform-mxs-saif.o obj-$(CONFIG_MXS_HAVE_PLATFORM_RTC_STMP3XXX) += platform-rtc-stmp3xxx.o
arch/arm/mach-mxs/devices/platform-rtc-stmp3xxx.c 0 → 100644 +51 −0 Original line number Diff line number Diff line /* * Copyright (C) 2011 Pengutronix, Wolfram Sang <w.sang@pengutronix.de> * * 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. */ #include <asm/sizes.h> #include <mach/mx23.h> #include <mach/mx28.h> #include <mach/devices-common.h> #ifdef CONFIG_SOC_IMX23 struct platform_device *__init mx23_add_rtc_stmp3xxx(void) { struct resource res[] = { { .start = MX23_RTC_BASE_ADDR, .end = MX23_RTC_BASE_ADDR + SZ_8K - 1, .flags = IORESOURCE_MEM, }, { .start = MX23_INT_RTC_ALARM, .end = MX23_INT_RTC_ALARM, .flags = IORESOURCE_IRQ, }, }; return mxs_add_platform_device("stmp3xxx-rtc", 0, res, ARRAY_SIZE(res), NULL, 0); } #endif /* CONFIG_SOC_IMX23 */ #ifdef CONFIG_SOC_IMX28 struct platform_device *__init mx28_add_rtc_stmp3xxx(void) { struct resource res[] = { { .start = MX28_RTC_BASE_ADDR, .end = MX28_RTC_BASE_ADDR + SZ_8K - 1, .flags = IORESOURCE_MEM, }, { .start = MX28_INT_RTC_ALARM, .end = MX28_INT_RTC_ALARM, .flags = IORESOURCE_IRQ, }, }; return mxs_add_platform_device("stmp3xxx-rtc", 0, res, ARRAY_SIZE(res), NULL, 0); } #endif /* CONFIG_SOC_IMX28 */