1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef __ASM_ARCH_ASSABET_H
14 #define __ASM_ARCH_ASSABET_H
15
16
17
18
19 #define ASSABET_SCR_SDRAM_LOW (1<<2)
20 #define ASSABET_SCR_SDRAM_HIGH (1<<3)
21 #define ASSABET_SCR_FLASH_LOW (1<<4)
22 #define ASSABET_SCR_FLASH_HIGH (1<<5)
23 #define ASSABET_SCR_GFX (1<<8)
24 #define ASSABET_SCR_SA1111 (1<<9)
25
26 #define ASSABET_SCR_INIT -1
27
28 extern unsigned long SCR_value;
29
30 #ifdef CONFIG_ASSABET_NEPONSET
31 #define machine_has_neponset() ((SCR_value & ASSABET_SCR_SA1111) == 0)
32 #else
33 #define machine_has_neponset() (0)
34 #endif
35
36
37
38 #define ASSABET_BCR_BASE 0xf1000000
39 #define ASSABET_BCR (*(volatile unsigned int *)(ASSABET_BCR_BASE))
40
41 #define ASSABET_BCR_CF_PWR (1<<0)
42 #define ASSABET_BCR_CF_RST (1<<1)
43 #define ASSABET_BCR_NGFX_RST (1<<1)
44 #define ASSABET_BCR_NCODEC_RST (1<<2)
45 #define ASSABET_BCR_IRDA_FSEL (1<<3)
46 #define ASSABET_BCR_IRDA_MD0 (1<<4)
47 #define ASSABET_BCR_IRDA_MD1 (1<<5)
48 #define ASSABET_BCR_STEREO_LB (1<<6)
49 #define ASSABET_BCR_CF_BUS_OFF (1<<7)
50 #define ASSABET_BCR_AUDIO_ON (1<<8)
51 #define ASSABET_BCR_LIGHT_ON (1<<9)
52 #define ASSABET_BCR_LCD_12RGB (1<<10)
53 #define ASSABET_BCR_LCD_ON (1<<11)
54 #define ASSABET_BCR_RS232EN (1<<12)
55 #define ASSABET_BCR_LED_RED (1<<13)
56 #define ASSABET_BCR_LED_GREEN (1<<14)
57 #define ASSABET_BCR_VIB_ON (1<<15)
58 #define ASSABET_BCR_COM_DTR (1<<16)
59 #define ASSABET_BCR_COM_RTS (1<<17)
60 #define ASSABET_BCR_RAD_WU (1<<18)
61 #define ASSABET_BCR_SMB_EN (1<<19)
62 #define ASSABET_BCR_TV_IR_DEC (1<<20)
63 #define ASSABET_BCR_QMUTE (1<<21)
64 #define ASSABET_BCR_RAD_ON (1<<22)
65 #define ASSABET_BCR_SPK_OFF (1<<23)
66
67 #ifdef CONFIG_SA1100_ASSABET
68 extern void ASSABET_BCR_frob(unsigned int mask, unsigned int set);
69 #else
70 #define ASSABET_BCR_frob(x,y) do { } while (0)
71 #endif
72
73 extern void assabet_uda1341_reset(int set);
74
75 #define ASSABET_BCR_set(x) ASSABET_BCR_frob((x), (x))
76 #define ASSABET_BCR_clear(x) ASSABET_BCR_frob((x), 0)
77
78 #define ASSABET_BSR_BASE 0xf1000000
79 #define ASSABET_BSR (*(volatile unsigned int*)(ASSABET_BSR_BASE))
80
81 #define ASSABET_BSR_RS232_VALID (1 << 24)
82 #define ASSABET_BSR_COM_DCD (1 << 25)
83 #define ASSABET_BSR_COM_CTS (1 << 26)
84 #define ASSABET_BSR_COM_DSR (1 << 27)
85 #define ASSABET_BSR_RAD_CTS (1 << 28)
86 #define ASSABET_BSR_RAD_DSR (1 << 29)
87 #define ASSABET_BSR_RAD_DCD (1 << 30)
88 #define ASSABET_BSR_RAD_RI (1 << 31)
89
90
91
92 #define ASSABET_GPIO_RADIO_IRQ GPIO_GPIO (14)
93 #define ASSABET_GPIO_PS_MODE_SYNC GPIO_GPIO (16)
94 #define ASSABET_GPIO_STEREO_64FS_CLK GPIO_GPIO (19)
95 #define ASSABET_GPIO_GFX_IRQ GPIO_GPIO (24)
96 #define ASSABET_GPIO_BATT_LOW GPIO_GPIO (26)
97 #define ASSABET_GPIO_RCLK GPIO_GPIO (26)
98
99 #endif