diff options
Diffstat (limited to 'drivers/char/lcd.h')
-rw-r--r-- | drivers/char/lcd.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/char/lcd.h b/drivers/char/lcd.h index a8d4ae737158..290b3ff23b03 100644 --- a/drivers/char/lcd.h +++ b/drivers/char/lcd.h | |||
@@ -14,11 +14,7 @@ | |||
14 | 14 | ||
15 | // function headers | 15 | // function headers |
16 | 16 | ||
17 | static int dqpoll(volatile unsigned long, volatile unsigned char ); | ||
18 | static int timeout(volatile unsigned long); | ||
19 | |||
20 | #define LCD_CHARS_PER_LINE 40 | 17 | #define LCD_CHARS_PER_LINE 40 |
21 | #define FLASH_SIZE 524288 | ||
22 | #define MAX_IDLE_TIME 120 | 18 | #define MAX_IDLE_TIME 120 |
23 | 19 | ||
24 | struct lcd_display { | 20 | struct lcd_display { |
@@ -54,26 +50,6 @@ struct lcd_display { | |||
54 | #define LCDTimeoutValue 0xfff | 50 | #define LCDTimeoutValue 0xfff |
55 | 51 | ||
56 | 52 | ||
57 | // Flash definitions AMD 29F040 | ||
58 | #define kFlashBase 0x0FC00000 | ||
59 | |||
60 | #define kFlash_Addr1 0x5555 | ||
61 | #define kFlash_Addr2 0x2AAA | ||
62 | #define kFlash_Data1 0xAA | ||
63 | #define kFlash_Data2 0x55 | ||
64 | #define kFlash_Prog 0xA0 | ||
65 | #define kFlash_Erase3 0x80 | ||
66 | #define kFlash_Erase6 0x10 | ||
67 | #define kFlash_Read 0xF0 | ||
68 | |||
69 | #define kFlash_ID 0x90 | ||
70 | #define kFlash_VenAddr 0x00 | ||
71 | #define kFlash_DevAddr 0x01 | ||
72 | #define kFlash_VenID 0x01 | ||
73 | #define kFlash_DevID 0xA4 // 29F040 | ||
74 | //#define kFlash_DevID 0xAD // 29F016 | ||
75 | |||
76 | |||
77 | // Macros | 53 | // Macros |
78 | 54 | ||
79 | #define LCDWriteData(x) outl((x << 24), kLCD_DR) | 55 | #define LCDWriteData(x) outl((x << 24), kLCD_DR) |
@@ -89,9 +65,6 @@ struct lcd_display { | |||
89 | #define WRITE_GAL(x,y) outl(y, 0x04000000 | (x)) | 65 | #define WRITE_GAL(x,y) outl(y, 0x04000000 | (x)) |
90 | #define BusyCheck() while ((LCDReadInst & 0x80) == 0x80) | 66 | #define BusyCheck() while ((LCDReadInst & 0x80) == 0x80) |
91 | 67 | ||
92 | #define WRITE_FLASH(x,y) outb((char)y, kFlashBase | (x)) | ||
93 | #define READ_FLASH(x) (inb(kFlashBase | (x))) | ||
94 | |||
95 | 68 | ||
96 | 69 | ||
97 | /* | 70 | /* |
@@ -124,11 +97,6 @@ struct lcd_display { | |||
124 | // Button defs | 97 | // Button defs |
125 | #define BUTTON_Read 50 | 98 | #define BUTTON_Read 50 |
126 | 99 | ||
127 | // Flash command codes | ||
128 | #define FLASH_Erase 60 | ||
129 | #define FLASH_Burn 61 | ||
130 | #define FLASH_Read 62 | ||
131 | |||
132 | 100 | ||
133 | // Ethernet LINK check hackaroo | 101 | // Ethernet LINK check hackaroo |
134 | #define LINK_Check 90 | 102 | #define LINK_Check 90 |