Re: [Resending PATCH 2/2] ARM: OMAP2: rtc board specific code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

* Girish <girishsg@xxxxxx> [071217 23:30]:
> This patch adds rtc-twl4030 board specific code for 3430.
> 
> Signed-off-by: Girish S G <girishsg@xxxxxx>
> ---
>  arch/arm/configs/omap_3430sdp_defconfig |    4 +-
>  arch/arm/mach-omap2/board-3430sdp.c     |   62 ++++++++++++++++++++++++++++++++
>  2 files changed, 65 insertions(+), 1 deletion(-)
> 
> Index: linux-omap-dec10/arch/arm/configs/omap_3430sdp_defconfig
> ===================================================================
> --- linux-omap-dec10.orig/arch/arm/configs/omap_3430sdp_defconfig	2007-12-13 16:23:27.000000000 +0530
> +++ linux-omap-dec10/arch/arm/configs/omap_3430sdp_defconfig	2007-12-13 16:51:52.000000000 +0530
> @@ -698,7 +698,9 @@
>  #
>  CONFIG_MMC_OMAP=y
>  CONFIG_RTC_LIB=y
> -# CONFIG_RTC_CLASS is not set
> +CONFIG_RTC_CLASS=y
> +CONFIG_RTC_DRV_TWL4030=y
> +CONFIG_RTC_INTF_DEV=y
>  
>  #
>  # DMA Engine support
> Index: linux-omap-dec10/arch/arm/mach-omap2/board-3430sdp.c
> ===================================================================
> --- linux-omap-dec10.orig/arch/arm/mach-omap2/board-3430sdp.c	2007-12-13 16:23:27.000000000 +0530
> +++ linux-omap-dec10/arch/arm/mach-omap2/board-3430sdp.c	2007-12-18 12:04:35.651866121 +0530
> @@ -40,9 +40,11 @@
>  #include <asm/arch/keypad.h>
>  #include <asm/arch/dma.h>
>  #include <asm/arch/gpmc.h>
> +#include <asm/arch/twl4030-rtc.h>
>  
>  #include <asm/io.h>
>  #include <asm/delay.h>
> +#include "control.h"
>  
>  #define	SDP3430_FLASH_CS	0
>  #define	SDP3430_SMC91X_CS	3
> @@ -104,6 +106,8 @@
>  	.resource	= &sdp3430_flash_resource,
>  };
>  
> +#define TWL4030_MSECURE_GPIO	22
> +
>  static struct resource sdp3430_smc91x_resources[] = {
>  	[0] = {
>  		.start	= OMAP34XX_ETHR_START,
> @@ -174,6 +178,60 @@
>  	},
>  };
>  
> +#ifdef CONFIG_RTC_DRV_TWL4030
> +static int twl4030_rtc_init(void)
> +{
> +	int ret = 0;
> +
> +	/* 3430ES2.0 doesn't have msecure/gpio-22 line connected to T2 */
> +	if (is_device_type_gp() && is_sil_rev_less_than(OMAP3430_REV_ES2_0)) {
> +		u32 msecure_pad_config_reg = omap2_ctrl_base + 0xA3C;
> +		int mux_mask = 0x04;
> +		u16 tmp;

Let's wait a bit on this one until we have the omap_ctrl_read/write
stuff merged, then update this patch for it.

Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux