Changeset 4674
- Timestamp:
- 09/27/08 16:37:38 (5 years ago)
- Location:
- developers/werner/wlan-spi/patches
- Files:
-
- 2 edited
-
hack-silence-battery.patch (modified) (1 diff)
-
tweak-spi.patch (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
developers/werner/wlan-spi/patches/hack-silence-battery.patch
r4672 r4674 15 15 } 16 16 17 Index: korig/arch/arm/mach-s3c2440/mach-gta02.c18 ===================================================================19 --- korig.orig/arch/arm/mach-s3c2440/mach-gta02.c 2008-09-26 21:19:03.000000000 -030020 +++ korig/arch/arm/mach-s3c2440/mach-gta02.c 2008-09-26 21:19:07.000000000 -030021 @@ -1239,7 +1239,7 @@22 static struct spi_board_info gta02_spi_mmc_bdinfo = {23 .modalias = "mmc_spi",24 .irq = IRQ_EINT3, /* unused ? */25 - .max_speed_hz = 25 * 1000 * 1000,26 + .max_speed_hz = 10 * 1000 * 1000,27 .bus_num = 0,28 .chip_select = 0,29 .mode = SPI_MODE_0, -
developers/werner/wlan-spi/patches/tweak-spi.patch
r4672 r4674 1 Work in progress. Makes spi_s3c24xx.c work for 1 and 10MHz. 2 Something breaks at 20 or 25MHz. 1 Work in progress. Makes spi_s3c24xx.c work for up to 12MHz. 2 3 At speeds of 13MHz or higher, we have setup time issues. I.e., the 4 SPI host sees the data coming from the device delayed by one bit, 5 even though things look fine on the scope. 6 7 This 12MHz/13MHz "barrier" exists with or without probes attached, 8 suggesting capacitative loading plays only a minor role in this. 3 9 4 10 Index: korig/drivers/spi/spi_s3c24xx.c 5 11 =================================================================== 6 --- korig.orig/drivers/spi/spi_s3c24xx.c 2008-09-2 6 20:47:30.000000000 -03007 +++ korig/drivers/spi/spi_s3c24xx.c 2008-09-2 6 21:06:23.000000000 -03008 @@ -198,6 +198,2 9@@12 --- korig.orig/drivers/spi/spi_s3c24xx.c 2008-09-27 11:28:42.000000000 -0300 13 +++ korig/drivers/spi/spi_s3c24xx.c 2008-09-27 11:29:40.000000000 -0300 14 @@ -198,6 +198,27 @@ 9 15 writeb(hw_txbyte(hw, 0), hw->regs + S3C2410_SPTDAT); 10 16 wait_for_completion(&hw->done); … … 12 18 + /* 13 19 + * Get the last byte. Since we don't have more data we can send in 14 + * order to clock the byte out of the SPI system, we need to wait and 15 + * to provide a clock by a dummy read. 20 + * order to clock the byte out of the SPI system, we need to wait. 16 21 + * 17 22 + * Duh, I'm just handwaving here about possible explanations of what's … … 21 26 + if (hw->rx && hw->count) { 22 27 + udelay(1+10*1000000/spi->max_speed_hz); 23 + //readb(hw->regs + S3C2410_SPRDAT);24 28 + hw->rx[hw->count-1] = readb(hw->regs + S3C2410_SPRDAT); 25 29 + } … … 36 40 } 37 41 38 @@ -233,8 +25 6,23 @@42 @@ -233,8 +254,23 @@ 39 43 40 44 hw->count++; … … 62 66 count++; 63 67 68 Index: korig/arch/arm/mach-s3c2440/mach-gta02.c 69 =================================================================== 70 --- korig.orig/arch/arm/mach-s3c2440/mach-gta02.c 2008-09-27 11:29:48.000000000 -0300 71 +++ korig/arch/arm/mach-s3c2440/mach-gta02.c 2008-09-27 11:30:13.000000000 -0300 72 @@ -1239,7 +1239,7 @@ 73 static struct spi_board_info gta02_spi_mmc_bdinfo = { 74 .modalias = "mmc_spi", 75 .irq = IRQ_EINT3, /* unused ? */ 76 - .max_speed_hz = 25 * 1000 * 1000, 77 + .max_speed_hz = 12 * 1000 * 1000, /* SPI doesn't want to go faster */ 78 .bus_num = 0, 79 .chip_select = 0, 80 .mode = SPI_MODE_0,
Note: See TracChangeset
for help on using the changeset viewer.
