r3189 - branches/src/target/kernel/2.6.23.x/patches

shoragan at sita.openmoko.org shoragan at sita.openmoko.org
Tue Oct 16 16:59:53 CEST 2007


Author: shoragan
Date: 2007-10-16 16:59:51 +0200 (Tue, 16 Oct 2007)
New Revision: 3189

Modified:
   branches/src/target/kernel/2.6.23.x/patches/gta02-core.patch
   branches/src/target/kernel/2.6.23.x/patches/lis302dl.patch
Log:
Follow changes in 2.6.22:
(orig r3144):  laforge | 2007-10-10 18:23:20 +0200

make lis302dl apply again (fallout from last commit, sorry)

(orig r3143):  laforge | 2007-10-10 18:17:35 +0200

fix non-fatal kernel oops during gta02 boot (spi bus number 0 was used twice)


Modified: branches/src/target/kernel/2.6.23.x/patches/gta02-core.patch
===================================================================
--- branches/src/target/kernel/2.6.23.x/patches/gta02-core.patch	2007-10-16 14:44:30 UTC (rev 3188)
+++ branches/src/target/kernel/2.6.23.x/patches/gta02-core.patch	2007-10-16 14:59:51 UTC (rev 3189)
@@ -2,7 +2,7 @@
 ===================================================================
 --- /dev/null
 +++ linux-2.6.22/arch/arm/mach-s3c2440/mach-gta02.c
-@@ -0,0 +1,658 @@
+@@ -0,0 +1,600 @@
 +/*
 + * linux/arch/arm/mach-s3c2440/mach-gta02.c
 + *
@@ -315,6 +315,8 @@
 +	&s3c_device_usbgadget,
 +	&s3c_device_nand,
 +	&s3c_device_ts,
++	&s3c_device_spi0,
++	&s3c_device_spi1,
 +};
 +
 +static struct s3c2410_nand_set gta02_nand_sets[] = {
@@ -415,7 +417,7 @@
 +		/* controller_data */
 +		/* irq */
 +		.max_speed_hz	= 10 * 1000 * 1000,
-+		.bus_num	= 1,
++		.bus_num	= 2,
 +		/* chip_select */
 +	},
 +};
@@ -434,66 +436,6 @@
 +	.board_info	= gta02_spi_board_info,
 +};
 +
-+#if 0
-+#ifdef SPI_HARD
-+static struct s3c2410_spi_info spi_cfg = {
-+	.pin_cs		= S3C2410_GPG3,
-+	.board_size	= ARRAY_SIZE(gta01_spi_board_info),
-+	.board_info	= gta01_spi_board_info,
-+};
-+#else
-+static void spi_gpio_cs(struct s3c2410_spigpio_info *spi, int cs)
-+{
-+	switch (cs) {
-+	case BITBANG_CS_ACTIVE:
-+		s3c2410_gpio_setpin(S3C2410_GPG3, 0);
-+		break;
-+	case BITBANG_CS_INACTIVE:
-+		s3c2410_gpio_setpin(S3C2410_GPG3, 1);
-+		break;
-+	}
-+}
-+
-+static struct s3c2410_spigpio_info spi_gpio_cfg = {
-+	.pin_clk	= S3C2410_GPG7,
-+	.pin_mosi	= S3C2410_GPG6,
-+	.pin_miso	= S3C2410_GPG5,
-+	.board_size	= ARRAY_SIZE(gta01_spi_board_info),
-+	.board_info	= gta01_spi_board_info,
-+	.chip_select	= &spi_gpio_cs,
-+};
-+
-+static struct resource s3c_spi_lcm_resource[] = {
-+	[0] = {
-+		.start = S3C2410_GPG3,
-+		.end   = S3C2410_GPG3,
-+	},
-+	[1] = {
-+		.start = S3C2410_GPG5,
-+		.end   = S3C2410_GPG5,
-+	},
-+	[2] = {
-+		.start = S3C2410_GPG6,
-+		.end   = S3C2410_GPG6,
-+	},
-+	[3] = {
-+		.start = S3C2410_GPG7,
-+		.end   = S3C2410_GPG7,
-+	},
-+};
-+
-+struct platform_device s3c_device_spi_lcm = {
-+	.name		  = "s3c24xx-spi-gpio",
-+	.id		  = 1,
-+	.num_resources	  = ARRAY_SIZE(s3c_spi_lcm_resource),
-+	.resource	  = s3c_spi_lcm_resource,
-+	.dev = {
-+		.platform_data = &spi_gpio_cfg,
-+	},
-+};
-+#endif
-+#endif
-+
 +static struct resource gta02_led_resources[] = {
 +	[0] = {
 +		.start	= GTA02_GPIO_VIBRATOR_ON,

Modified: branches/src/target/kernel/2.6.23.x/patches/lis302dl.patch
===================================================================
--- branches/src/target/kernel/2.6.23.x/patches/lis302dl.patch	2007-10-16 14:44:30 UTC (rev 3188)
+++ branches/src/target/kernel/2.6.23.x/patches/lis302dl.patch	2007-10-16 14:59:51 UTC (rev 3189)
@@ -14,18 +14,21 @@
  
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
-@@ -310,6 +311,7 @@
- 	&s3c_device_usbgadget,
- 	&s3c_device_nand,
- 	&s3c_device_ts,
-+	&s3c_device_spi1,
+@@ -403,7 +404,7 @@
+ 	.oversampling_shift = 5,
  };
  
- static struct s3c2410_nand_set gta02_nand_sets[] = {
-@@ -437,6 +439,47 @@
+-/* SPI */
++/* SPI: LCM control interface attached to Glamo3362 */
+ 
+ static struct spi_board_info gta02_spi_board_info[] __initdata = {
+ 	{
+@@ -431,6 +432,48 @@
  	.board_info	= gta02_spi_board_info,
  };
  
++/* SPI: Accelerometers attached to SPI of s3c244x */
++
 +static void gta02_spi_acc_set_cs(struct s3c2410_spi_info *spi, int cs, int pol)
 +{
 +	s3c2410_gpio_setpin(cs, pol);
@@ -66,11 +69,10 @@
 +	.board_info	= &gta02_spi_acc_bdinfo,
 +};
 +
-+
- #if 0
- #ifdef SPI_HARD
- static struct s3c2410_spi_info spi_cfg = {
-@@ -626,6 +669,7 @@
+ static struct resource gta02_led_resources[] = {
+ 	[0] = {
+ 		.start	= GTA02_GPIO_VIBRATOR_ON,
+@@ -560,6 +603,7 @@
  	s3c_device_usb.dev.platform_data = &gta02_usb_info;
  	s3c_device_nand.dev.platform_data = &gta02_nand_info;
  	s3c_device_sdi.dev.platform_data = &gta02_mmc_cfg;





More information about the commitlog mailing list