[PATCH 2/3] imx3: Add rtc platform device support

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 25 03:35:37 EDT 2010


Hi Vladimir,

On Wed, Mar 24, 2010 at 02:32:17PM +0300, Vladimir Zapolskiy wrote:
> This patch adds support for build-in RTC device found on
> Freescale imx31 and imx35 SoCs.
> 
> Signed-off-by: Vladimir Zapolskiy <vzapolskiy at gmail.com>
> Cc: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/mach-mx3/devices.c |   19 +++++++++++++++++++
>  arch/arm/mach-mx3/devices.h |    1 +
>  2 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
> index f891115..1ffed28 100644
> --- a/arch/arm/mach-mx3/devices.c
> +++ b/arch/arm/mach-mx3/devices.c
> @@ -588,6 +588,25 @@ struct platform_device imx_wdt_device0 = {
>  	.resource       = imx_wdt_resources,

This patch does not apply. We do not have the watchdog in devices.c atm.

>  };
>  
> +static struct resource imx_rtc_resources[] = {
> +	{
> +		.start  = MX31_RTC_BASE_ADDR,
> +		.end    = MX31_RTC_BASE_ADDR + 0x3fff,
> +		.flags  = IORESOURCE_MEM,
> +	},
> +	{
> +		.start  = MX31_INT_RTC,
> +		.flags  = IORESOURCE_IRQ,
> +	},

Can you provide a fixup for i.MX35, please? See mx3_devices_init().

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list