Changeset 4744
- Timestamp:
- 11/03/08 02:48:41 (5 years ago)
- Location:
- developers/werner/wlan-spi/patches-tracking
- Files:
-
- 3 edited
- 3 moved
-
attic/gta02-mmc-spi-bitbang.patch (moved) (moved from developers/werner/wlan-spi/patches-tracking/gta02-mmc-spi-bitbang.patch)
-
attic/hack-dont-poll-irq.patch (moved) (moved from developers/werner/wlan-spi/patches-tracking/hack-dont-poll-irq.patch)
-
attic/hif-direct-interrupt.patch (moved) (moved from developers/werner/wlan-spi/patches-tracking/hif-direct-interrupt.patch)
-
gta02-mmc-mci.patch (modified) (1 diff)
-
hif-linux-sdio.patch (modified) (4 diffs)
-
series (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
developers/werner/wlan-spi/patches-tracking/gta02-mmc-mci.patch
r4741 r4744 1 1 Use S3C SDI on GTA02. 2 2 3 Index: ktrack/arch/arm/mach-s3c2440/Kconfig4 ===================================================================5 --- ktrack.orig/arch/arm/mach-s3c2440/Kconfig 2008-11-02 11:04:06.000000000 -02006 +++ ktrack/arch/arm/mach-s3c2440/Kconfig 2008-11-02 11:04:06.000000000 -02007 @@ -113,6 +113,11 @@8 bool "GPIO bit-banging SPI"9 select MMC_SPI10 select SPI_S3C24XX_GPIO11 +12 + config AR6K_S3CMCI13 + bool "S3C MMC/SD/SDIO driver"14 + select MMC_S3C15 +16 endchoice17 18 endmenu19 3 Index: ktrack/arch/arm/mach-s3c2440/mach-gta02.c 20 4 =================================================================== 21 --- ktrack.orig/arch/arm/mach-s3c2440/mach-gta02.c 2008-11-02 11:04:06.000000000 -020022 +++ ktrack/arch/arm/mach-s3c2440/mach-gta02.c 2008-11-02 11:04:06.000000000 -020023 @@ - 1720,6 +1720,11@@24 platform_device_register(>a02_spi_wlan);25 #endif /* CONFIG_AR6K_SPI_S3C24XX_GPIO */5 --- ktrack.orig/arch/arm/mach-s3c2440/mach-gta02.c 2008-11-02 22:49:21.000000000 -0200 6 +++ ktrack/arch/arm/mach-s3c2440/mach-gta02.c 2008-11-02 22:53:59.000000000 -0200 7 @@ -902,12 +902,6 @@ 8 .software_ecc = 1, 9 }; 26 10 27 +#ifdef CONFIG_AR6K_S3CMCI 28 + s3c_device_sdi.dev.platform_data = NULL; 29 + platform_device_register(&s3c_device_sdi); /* @@@ just for testing */ 30 +#endif /* CONFIG_AR6K_S3CMCI */ 31 + 32 platform_add_devices(gta02_devices, ARRAY_SIZE(gta02_devices)); 11 -static struct s3c24xx_mci_pdata gta02_mmc_cfg = { 12 - .gpio_detect = GTA02v1_GPIO_nSD_DETECT, 13 - .set_power = NULL, 14 - .ocr_avail = MMC_VDD_32_33, 15 -}; 16 - 17 static void gta02_udc_command(enum s3c2410_udc_cmd_e cmd) 18 { 19 printk(KERN_DEBUG "%s(%d)\n", __func__, cmd); 20 @@ -1529,7 +1523,7 @@ 21 &s3c_device_usb, 22 &s3c_device_wdt, 23 >a02_memconfig_device, 24 - // &s3c_device_sdi, /* FIXME: temporary disable to avoid s3cmci bind */ 25 + &s3c_device_sdi, 26 &s3c_device_usbgadget, 27 &s3c_device_nand, 28 >a02_nor_flash, 29 @@ -1607,17 +1601,6 @@ 33 30 34 s3c2410_pm_init(); 31 s3c_device_usb.dev.platform_data = >a02_usb_info; 32 s3c_device_nand.dev.platform_data = >a02_nand_info; 33 - s3c_device_sdi.dev.platform_data = >a02_mmc_cfg; 34 - 35 - /* Only GTA02v1 has a SD_DETECT GPIO. Since the slot is not 36 - * hot-pluggable, this is not required anyway */ 37 - switch (system_rev) { 38 - case GTA02v1_SYSTEM_REV: 39 - break; 40 - default: 41 - gta02_mmc_cfg.gpio_detect = 0; 42 - break; 43 - } 44 45 /* acc sensor chip selects */ 46 s3c2410_gpio_setpin(S3C2410_GPD12, 1); -
developers/werner/wlan-spi/patches-tracking/hif-linux-sdio.patch
r4741 r4744 12 12 Index: ktrack/drivers/ar6000/Makefile 13 13 =================================================================== 14 --- ktrack.orig/drivers/ar6000/Makefile 2008-11-02 08:01:22.000000000 -020015 +++ ktrack/drivers/ar6000/Makefile 2008-11-02 08:04:17.000000000 -020014 --- ktrack.orig/drivers/ar6000/Makefile 2008-11-02 23:09:13.000000000 -0200 15 +++ ktrack/drivers/ar6000/Makefile 2008-11-02 23:09:15.000000000 -0200 16 16 @@ -21,7 +21,7 @@ 17 17 htc/htc_recv.o \ … … 26 26 =================================================================== 27 27 --- /dev/null 1970-01-01 00:00:00.000000000 +0000 28 +++ ktrack/drivers/ar6000/hif/hif2.c 2008-11-02 12:01:30.000000000 -020029 @@ -0,0 +1,59 3@@28 +++ ktrack/drivers/ar6000/hif/hif2.c 2008-11-02 23:46:53.000000000 -0200 29 @@ -0,0 +1,598 @@ 30 30 +/* 31 31 + * hif2.c - HIF layer re-implementation for the Linux SDIO stack … … 51 51 +#include <linux/wait.h> 52 52 +#include <linux/spinlock.h> 53 +#include <linux/sched.h> 53 54 +#include <linux/mmc/sdio_func.h> 54 55 +#include <linux/mmc/sdio.h> … … 214 215 +{ 215 216 + struct hif_device *hif = data; 217 + struct sched_param param = { .sched_priority = 2 }; 218 + /* one priority level slower than ksdioirqd (which is at 1) */ 216 219 + DEFINE_WAIT(wait); 217 220 + struct hif_request *req; 221 + 222 + sched_setscheduler(current, SCHED_FIFO, ¶m); 218 223 + 219 224 + while (1) { -
developers/werner/wlan-spi/patches-tracking/series
r4741 r4744 20 20 sdio-add-atheros-ar6k.patch 21 21 hif-linux-sdio.patch 22 gta02-mmc-spi-bitbang.patch23 22 24 23 gta02-mmc-mci.patch … … 26 25 # dirty experimental stuff follows 27 26 28 # didn't survive the move to 2.6.27 :-(29 #hack-dont-poll-irq.patch30 #hif-direct-interrupt.patch31 27 #hif-can-do-async.patch 32 28
Note: See TracChangeset
for help on using the changeset viewer.
