Sansa Clip+: use 8 bits transfers, like DMA transfers

The code assumed LCD pixels were packed on 16 bits values but for the
Clip we use 8 bits values.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24563 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-02-08 08:20:42 +00:00
parent ec39555290
commit 3f43765925

View file

@ -181,7 +181,6 @@ void lcd_write_data(const fb_data* p_bytes, int count)
{
GPIOB_PIN(2) = (1<<2);
SSP_CR0 = 0 | 15; /* Motorola SPI frame format, 16 bits */
while (count--)
{
while(SSP_SR & (1<<1)) /* Transmit FIFO is not full */
@ -190,7 +189,6 @@ void lcd_write_data(const fb_data* p_bytes, int count)
while(!(SSP_SR & (1<<0))) /* Transmit FIFO is not empty */
;
}
SSP_CR0 = 0 | 7; /* Motorola SPI frame format, 8 bits */
}
#endif