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
This commit is contained in:
Solomon Peachy 2021-04-23 11:09:49 -04:00
parent 77188e41f5
commit 3ba2f6e5c7
103 changed files with 48 additions and 5873 deletions

View file

@ -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