ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-sa1100 / huw_webpanel.h
1 /*
2  * linux/include/asm-arm/arch-sa1100/huw_webpanel.h
3  *
4  * based of assabet.h
5  *
6  * This file contains the hardware specific definitions for HUW_Webpanel
7  *
8  * 2000/11/13 Roman Jordan <jor@hoeft-wessel.de>
9  */
10
11 #ifndef __ASM_ARCH_HARDWARE_H
12 #error "include <asm/hardware.h> instead"
13 #endif
14
15 /* System Configuration Register flags */
16
17 #define SCR_SDRAM_LOW   (1<<2)  /* SDRAM size (low bit) */
18 #define SCR_SDRAM_HIGH  (1<<3)  /* SDRAM size (high bit) */
19 #define SCR_FLASH_LOW   (1<<4)  /* Flash size (low bit) */
20 #define SCR_FLASH_HIGH  (1<<5)  /* Flash size (high bit) */
21 #define SCR_GFX         (1<<8)  /* Graphics Accelerator (0 = present) */
22 #define SCR_SA1111      (1<<9)  /* Neponset (0 = present) */
23
24 #define SCR_INIT        -1
25
26
27 /* Board Control Register */
28
29 #define BCR_BASE  0xf1000000
30 #define BCR (*(volatile unsigned int *)(BCR_BASE))
31
32 #define BCR_PSIO_DTR1      (1<<29)
33 #define BCR_TFT_NPWR       (1<<28)
34 #define BCR_PSIO_DTR3      (1<<27)
35 #define BCR_TFT_ENA        (1<<26)
36 #define BCR_CCFL_POW       (1<<25)
37 #define BCR_PSIO_RTS1      (1<<24)
38 #define BCR_PWM_BACKLIGHT  (1<<23)
39
40
41 #ifndef __ASSEMBLY__
42 extern unsigned long SCR_value;
43 extern unsigned long BCR_value;
44 #define BCR_set( x )    BCR = (BCR_value |= (x))
45 #define BCR_clear( x )  BCR = (BCR_value &= ~(x))
46 #endif
47
48
49