--- linux-2.6.15.4/include/asm-arm/arch-s3c2410/regs-rtc.h 2006-02-10 08:22:48.000000000 +0100 +++ golinux/include/asm-arm/arch-s3c2410/regs-rtc.h 2006-02-28 12:21:46.000000000 +0100 @@ -13,6 +13,7 @@ * 19-06-2003 BJD Created file * 12-03-2004 BJD Updated include protection * 15-01-2005 LCVR Changed S3C2410_VA to S3C24XX_VA (s3c2400 support) + * 17-02-2006 KM Added S3C2412 / S3C2413 registers */ #ifndef __ASM_ARCH_REGS_RTC_H @@ -25,11 +26,22 @@ #define S3C2410_RTCCON_CLKSEL (1<<1) #define S3C2410_RTCCON_CNTSEL (1<<2) #define S3C2410_RTCCON_CLKRST (1<<3) +#define S3C2410_RTCCON_TICSEL (1<<4) #define S3C2410_TICNT S3C2410_RTCREG(0x44) #define S3C2410_TICNT_ENABLE (1<<7) +#define S3C2410_TICNT0 S3C2410_TICNT +#define S3C2410_TICNT0_ENABLE (1<<7) + +#ifdef CONFIG_CPU_S3C2412 + +#define S3C2410_TICNT1 S3C2410_RTCREG(0x4C) // S3C2412 & S3C2413 + +#endif /* CONFIG_CPU_S3C2412 */ + #define S3C2410_RTCALM S3C2410_RTCREG(0x50) +#define S3C2410_RTCALM_XTBSEL (1<<7) #define S3C2410_RTCALM_ALMEN (1<<6) #define S3C2410_RTCALM_YEAREN (1<<5) #define S3C2410_RTCALM_MONEN (1<<4)