--- zzzz-none-000/linux-2.4.17/include/asm-arm/arch-sa1100/assabet.h 2001-10-25 20:53:54.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/asm-arm/arch-sa1100/assabet.h 2004-11-24 13:21:35.000000000 +0000 @@ -68,10 +68,18 @@ #define ASSABET_BCR_RAD_ON (1<<22) /* Radio Power On */ #define ASSABET_BCR_SPK_OFF (1<<23) /* 1 = Speaker amplifier power off */ +#ifndef __ASSEMBLY__ extern unsigned long SCR_value; extern unsigned long BCR_value; -#define ASSABET_BCR_set(x) ASSABET_BCR = (BCR_value |= (x)) -#define ASSABET_BCR_clear(x) ASSABET_BCR = (BCR_value &= ~(x)) + +#ifdef CONFIG_SA1100_ASSABET +extern void ASSABET_BCR_set(int bit); +extern void ASSABET_BCR_clear(int bit); +#else +#define ASSABET_BCR_set(x) do { } while (0) +#define ASSABET_BCR_clear(x) do { } while (0) +#endif +#endif /*__ASSEMBLY__ */ #define ASSABET_BSR_BASE 0xf1000000 #define ASSABET_BSR (*(volatile unsigned int*)(ASSABET_BSR_BASE)) @@ -88,27 +96,20 @@ /* GPIOs for which the generic definition doesn't say much */ #define ASSABET_GPIO_RADIO_IRQ GPIO_GPIO (14) /* Radio interrupt request */ -#define ASSABET_GPIO_L3_I2C_SDA GPIO_GPIO (15) /* L3 and SMB control ports */ #define ASSABET_GPIO_PS_MODE_SYNC GPIO_GPIO (16) /* Power supply mode/sync */ -#define ASSABET_GPIO_L3_MODE GPIO_GPIO (17) /* L3 mode signal with LED */ -#define ASSABET_GPIO_L3_I2C_SCL GPIO_GPIO (18) /* L3 and I2C control ports */ #define ASSABET_GPIO_STEREO_64FS_CLK GPIO_GPIO (19) /* SSP UDA1341 clock input */ #define ASSABET_GPIO_CF_IRQ GPIO_GPIO (21) /* CF IRQ */ #define ASSABET_GPIO_CF_CD GPIO_GPIO (22) /* CF CD */ -#define ASSABET_GPIO_UCB1300_IRQ GPIO_GPIO (23) /* UCB GPIO and touchscreen */ #define ASSABET_GPIO_CF_BVD2 GPIO_GPIO (24) /* CF BVD */ #define ASSABET_GPIO_GFX_IRQ GPIO_GPIO (24) /* Graphics IRQ */ #define ASSABET_GPIO_CF_BVD1 GPIO_GPIO (25) /* CF BVD */ -#define ASSABET_GPIO_NEP_IRQ GPIO_GPIO (25) /* Neponset IRQ */ #define ASSABET_GPIO_BATT_LOW GPIO_GPIO (26) /* Low battery */ #define ASSABET_GPIO_RCLK GPIO_GPIO (26) /* CCLK/2 */ #define ASSABET_IRQ_GPIO_CF_IRQ IRQ_GPIO21 #define ASSABET_IRQ_GPIO_CF_CD IRQ_GPIO22 -#define ASSABET_IRQ_GPIO_UCB1300_IRQ IRQ_GPIO23 #define ASSABET_IRQ_GPIO_CF_BVD2 IRQ_GPIO24 #define ASSABET_IRQ_GPIO_CF_BVD1 IRQ_GPIO25 -#define ASSABET_IRQ_GPIO_NEP_IRQ IRQ_GPIO25 /* @@ -117,9 +118,6 @@ #define SA1111_BASE (0x40000000) -#define NEPONSET_ETHERNET_IRQ MISC_IRQ0 -#define NEPONSET_USAR_IRQ MISC_IRQ1 - #define NEPONSET_CPLD_BASE (0x10000000) #define Nep_p2v( x ) ((x) - NEPONSET_CPLD_BASE + 0xf3000000) #define Nep_v2p( x ) ((x) - 0xf3000000 + NEPONSET_CPLD_BASE)