From 6b6d00283b6cc5635457ac7b43da1397f125c591 Mon Sep 17 00:00:00 2001 From: funman Date: Mon, 8 Feb 2010 08:20:42 +0000 Subject: [PATCH] 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 --- firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c index ce8df9e52..465c18e8a 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c +++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c @@ -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 -- 2.11.4.GIT