summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-h100.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-h100.c')
-rw-r--r--firmware/drivers/lcd-h100.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c
index 7b67ad023c..1d80458679 100644
--- a/firmware/drivers/lcd-h100.c
+++ b/firmware/drivers/lcd-h100.c
@@ -136,19 +136,6 @@ void lcd_set_flip(bool yesno)
136 } 136 }
137} 137}
138 138
139/* Rolls up the lcd display by the specified amount of lines.
140 * Lines that are rolled out over the top of the screen are
141 * rolled in from the bottom again. This is a hardware
142 * remapping only and all operations on the lcd are affected.
143 * ->
144 * @param int lines - The number of lines that are rolled.
145 * The value must be 0 <= pixels < LCD_HEIGHT. */
146void lcd_roll(int lines)
147{
148 lines &= LCD_HEIGHT-1;
149 lcd_write_command_ex(LCD_CNTL_DISPLAY_START_LINE, lines, -1);
150}
151
152#endif /* !SIMULATOR */ 139#endif /* !SIMULATOR */
153 140
154/* LCD init */ 141/* LCD init */
@@ -163,8 +150,6 @@ void lcd_init(void)
163 150
164void lcd_init(void) 151void lcd_init(void)
165{ 152{
166 static unsigned char area_data[4] = { 0x01, 0x00, 0x7f, 0x80 };
167
168 /* GPO35 is the LCD A0 pin 153 /* GPO35 is the LCD A0 pin
169 GPO46 is LCD RESET */ 154 GPO46 is LCD RESET */
170 or_l(0x00004008, &GPIO1_OUT); 155 or_l(0x00004008, &GPIO1_OUT);
@@ -198,9 +183,6 @@ void lcd_init(void)
198 sleep(HZ/10); /* 100 ms pause */ 183 sleep(HZ/10); /* 100 ms pause */
199 lcd_write_command_ex(LCD_CNTL_POWER_CONTROL, 0x17, -1); 184 lcd_write_command_ex(LCD_CNTL_POWER_CONTROL, 0x17, -1);
200 185
201 lcd_write_command(LCD_CNTL_AREA_SCROLL);
202 lcd_write_data(area_data, sizeof(area_data));
203
204 lcd_write_command_ex(LCD_CNTL_DISPLAY_START_LINE, 0, -1); 186 lcd_write_command_ex(LCD_CNTL_DISPLAY_START_LINE, 0, -1);
205 lcd_write_command_ex(LCD_CNTL_GRAY_SCALE_PATTERN, 0x42, -1); 187 lcd_write_command_ex(LCD_CNTL_GRAY_SCALE_PATTERN, 0x42, -1);
206 lcd_write_command_ex(LCD_CNTL_DISPLAY_MODE, 0, -1); /* Greyscale mode */ 188 lcd_write_command_ex(LCD_CNTL_DISPLAY_MODE, 0, -1); /* Greyscale mode */