patch-2.4.14 linux/include/asm-arm/arch-sa1100/simpad.h

Next file: linux/include/asm-arm/arch-sa1100/system.h
Previous file: linux/include/asm-arm/arch-sa1100/keyboard.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/include/asm-arm/arch-sa1100/simpad.h linux/include/asm-arm/arch-sa1100/simpad.h
@@ -1,11 +1,11 @@
 /*
- * linux/include/asm-arm/arch-sa1100/trizeps.h
+ * linux/include/asm-arm/arch-sa1100/simpad.h
  *
  * based of assabet.h same as HUW_Webpanel
  *
- * This file contains the hardware specific definitions for Trizeps
+ * This file contains the hardware specific definitions for SIMpad
  *
- * 2001/03/14 Peter Lueg <peter.lueg@dsa-ac.de>
+ * 2001/05/14 Juergen Messerer <juergen.messerer@siemens.ch>
  */
 
 #ifndef SIMPAD_H
@@ -16,17 +16,6 @@
 #error "include <asm/hardware.h> instead"
 #endif
 
-/* System Configuration Register flags */
-
-#define SCR_SDRAM_LOW	(1<<2)	/* SDRAM size (low bit) */
-#define SCR_SDRAM_HIGH	(1<<3)	/* SDRAM size (high bit) */
-#define SCR_FLASH_LOW	(1<<4)	/* Flash size (low bit) */
-#define SCR_FLASH_HIGH	(1<<5)	/* Flash size (high bit) */
-#define SCR_GFX		(1<<8)	/* Graphics Accelerator (0 = present) */
-#define SCR_SA1111	(1<<9)	/* Neponset (0 = present) */
-
-#define SCR_INIT	-1
-
 #define GPIO_UART1_RTS	GPIO_GPIO14
 #define GPIO_UART1_DTR	GPIO_GPIO7
 #define GPIO_UART1_CTS	GPIO_GPIO8
@@ -39,6 +28,8 @@
 #define GPIO_UART3_DCD	GPIO_GPIO18
 #define GPIO_UART3_DSR	GPIO_GPIO17
 
+#define GPIO_UCB1300_IRQ	GPIO_GPIO (22)	/* UCB GPIO and touchscreen */
+
 #define IRQ_UART1_CTS	IRQ_GPIO15
 #define IRQ_UART1_DCD	GPIO_GPIO23
 #define IRQ_UART1_DSR	GPIO_GPIO6
@@ -46,56 +37,39 @@
 #define IRQ_UART3_DCD	GPIO_GPIO18
 #define IRQ_UART3_DSR	GPIO_GPIO17
 
-#define GPIO_UCB1300_IRQ	GPIO_GPIO (22)	/* UCB GPIO and touchscreen */
-#define IRQ_GPIO_UCB1300_IRQ IRQ_GPIO22
-
-#define SA1100_UART1_EXT \
-  (struct huw_irq_desc){GPIO_UART1_CTS, IRQ_UART1_CTS, \
-                        GPIO_UART1_DCD, IRQ_UART1_DCD, \
-                        GPIO_UART1_DSR, IRQ_UART1_DSR}
-#define SA1100_UART3_EXT \
-  (struct huw_irq_desc){GPIO_UART3_CTS, IRQ_UART3_CTS, \
-                        GPIO_UART3_DCD, IRQ_UART3_DCD, \
-                        GPIO_UART3_DSR, IRQ_UART3_DSR}
+#define IRQ_GPIO_UCB1300_IRQ IRQ_GPIO22 
 
 
 /*---  PCMCIA  ---*/
 #define GPIO_CF_CD              GPIO_GPIO24
-#define GPIO_CF_IRQ             GPIO_GPIO1
+#define GPIO_CF_IRQ             GPIO_GPIO1          
 #define IRQ_GPIO_CF_IRQ         IRQ_GPIO1
-#define IRQ_GPIO_CF_CD          IRQ_GPIO24
+#define IRQ_GPIO_CF_CD          IRQ_GPIO24      
 
-// CS3 Latch is write only, a shadow is neccessary
+// CS3 Latch is write only, a shadow is neccessary 
 
-#define CS3BUSTYPE unsigned volatile long
+#define CS3BUSTYPE unsigned volatile long           
 #define CS3_BASE        0xf1000000
 
-#define VCC_5V_EN       0x0001
-#define VCC_3V_EN       0x0002
-#define EN1             0x0004
-#define EN0             0x0008
+#define VCC_5V_EN       0x0001 // For 5V PCMCIA 
+#define VCC_3V_EN       0x0002 // FOR 3.3V PCMCIA
+#define EN1             0x0004 // This is only for EPROM's
+#define EN0             0x0008 // Both should be enable for 3.3V or 5V
 #define DISPLAY_ON      0x0010
 #define PCMCIA_BUFF_DIS 0x0020
 #define MQ_RESET        0x0040
 #define PCMCIA_RESET    0x0080
 #define DECT_POWER_ON   0x0100
-#define IRDA_SD         0x0200
+#define IRDA_SD         0x0200 // Shutdown for powersave
 #define RS232_ON        0x0400
-#define SD_MEDIAQ       0x0800
-#define LED2_ON         0x1000
-#define IRDA_MODE       0x2000
-#define ENABLE_5V       0x4000
+#define SD_MEDIAQ       0x0800 // Shutdown for powersave
+#define LED2_ON         0x1000 
+#define IRDA_MODE       0x2000 // Fast/Slow IrDA mode
+#define ENABLE_5V       0x4000 // Enable 5V circuit
 #define RESET_SIMCARD   0x8000
 
 #define RS232_ENABLE    0x0440
-#define PCMCIAMASK      0x402f
-
-#ifndef __ASSEMBLY__
-static long cs3_shadow;
-void init_simpad_cs3();
-void PCMCIA_setbit(int value);
-void PCMCIA_clearbit(int value);
-#endif
+#define PCMCIAMASK      0x402f   
 
 #endif // SIMPAD_H
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)