From 3ba2f6e5c7383c5d7a6f8a1c38b6b5403a8a5dcb Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 23 Apr 2021 11:09:49 -0400 Subject: Nuke all TCC77x targets: iAudio 7, Sansa C100, M200(v1-3), Logik DAX They were never finished, never saw any release ever, and haven't compiled for the better part of a decade. Given their HW capabilities [1], they are not worth trying to fix. [1] 1-2MB RAM, ~256MB onboard flash, no expandability Change-Id: I7b2a5806d687114c22156bb0458d4a10a9734190 --- firmware/target/arm/lcd-ssd1815.c | 75 --------------------------------------- 1 file changed, 75 deletions(-) (limited to 'firmware/target/arm/lcd-ssd1815.c') diff --git a/firmware/target/arm/lcd-ssd1815.c b/firmware/target/arm/lcd-ssd1815.c index 891d4ef64d..028362f91c 100644 --- a/firmware/target/arm/lcd-ssd1815.c +++ b/firmware/target/arm/lcd-ssd1815.c @@ -144,81 +144,6 @@ void lcd_init_device(void) lcd_write_command(LCD_SET_NORMAL_DISPLAY); } - -#elif defined(CPU_TCC77X) - -/* TCC77x specific defines */ -#define LCD_BASE 0x50000000 -#define LCD_CMD *(volatile unsigned char*)(LCD_BASE) -#define LCD_DATA *(volatile unsigned char*)(LCD_BASE+1) - -void lcd_write_command(int byte) -{ - LCD_CMD = byte; - - asm volatile ( - "nop \n\t" - "nop \n\t" - "nop \n\t" - ); -} - -void lcd_write_data(const fb_data* p_bytes, int count) -{ - while (count--) - { - LCD_DATA = *(p_bytes++); - - asm volatile ( - "nop \n\t" - "nop \n\t" - "nop \n\t" - ); - } -} - -/* LCD init */ -void lcd_init_device(void) -{ - uint32_t bus_width; - - /* Telechips init the same as the original firmware */ - CSCFG1 &= 0xc3ffc000; - CSCFG1 |= 0x3400101a; - CSCFG1 |= (1 << 21); - CSCFG1 &= ~(1 << 21); - - bus_width = ((MCFG >> 11) & 0x3) ^ 3; - - CSCFG1 = (bus_width << 28) | - (3 << 26) | /* MTYPE = 3 */ - ((LCD_BASE >> 28) << 22) | /* CSBASE = 0x5 */ - (1 << 20) | /* Unknown */ - (3 << 11) | /* Setup time = 3 cycles */ - (3 << 3) | /* Pulse width = 3+1 cycles */ - (1 << 0); /* Hold time = 1 cycle */ - - /* SSD1815 inits like the original firmware */ - lcd_write_command(LCD_SET_DISPLAY_OFF); - lcd_set_flip(false); - lcd_write_command(LCD_SET_INTERNAL_REGULATOR_RESISTOR_RATIO | 5); - lcd_set_contrast(lcd_default_contrast()); - lcd_write_command(LCD_SET_POWER_CONTROL_REGISTER | 7); - /* power control register: op-amp=1, regulator=1, booster=1 */ - lcd_write_command(LCD_SET_BIAS_TC_OSC); - - /* 0xc2 = 110 000 10: Osc. Freq 110 - ??? - TC value 000 - "-0.01%/C (TC0, POR)" - Bias ratio 10 - "1/9, 1/7 (POR)" - */ - lcd_write_command(0xc2); - lcd_write_command(LCD_SET_DISPLAY_ON); - - lcd_clear_display(); - lcd_update(); -} - -/* End of TCC77x specific defines */ #endif -- cgit v1.2.3