Skip to contentSkip to conversation

Update kernel for rx1950 machine

PATCH New Vasily Khoruzhick 1 participant 3 messages Sep 10, 2010

lore
Share & tools
lore
#0 lore raw

cover Update kernel for rx1950 machine

This patch series adds rx1950-specific patches to linux-2.6.35 and makes it default for this machine.

#1 lore raw

PATCH 1/2 linux-2.6.35: add rx1950 support

---
 .../0001-s3c2410_ts-add-fake-pressure-events.patch |   41 +
 ...2-s3c2410_udc-2440-dual-packet-workaround.patch |   71 +
 .../rx1950/0003-rx1950-add-battery-device.patch    |  356 +++++
 .../rx1950/0004-rx1950-add-LEDs-support.patch      |   71 +
 ...-s3c24xx-DMA-don-t-use-autoreload-feature.patch |  701 +++++++++
 .../rx1950/0006-s3cmci-minor-fixups.patch          |   40 +
 .../rx1950/0007-Add-s3c-adc-battery-driver.patch   |  530 +++++++
 recipes/linux/linux-2.6.35/rx1950/defconfig        | 1615 ++++++++++++++++++++
 recipes/linux/linux_2.6.35.bb                      |    7 +
 9 files changed, 3432 insertions(+), 0 deletions(-)
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0001-s3c2410_ts-add-fake-pressure-events.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0002-s3c2410_udc-2440-dual-packet-workaround.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0003-rx1950-add-battery-device.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0004-rx1950-add-LEDs-support.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0005-s3c24xx-DMA-don-t-use-autoreload-feature.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0006-s3cmci-minor-fixups.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/0007-Add-s3c-adc-battery-driver.patch
 create mode 100644 recipes/linux/linux-2.6.35/rx1950/defconfig
recipes/linux/linux-2.6.35/rx1950/0001-s3c2410_ts-add-fake-pressure-events.patch new file +41 -0
new file mode 100644
index 0000000..fa43e2d
@@ -0,0 +1,41 @@
+From d9b482fc3e5bef43a7845989189cf9b71915a1cb Mon Sep 17 00:00:00 2001
+From: Vasily Khoruzhick <[email protected]>
+Date: Wed, 12 May 2010 09:59:32 +0300
+Subject: [PATCH 01/20] s3c2410_ts: add fake pressure events
+
+Signed-off-by: Vasily Khoruzhick <[email protected]>
+---
+ drivers/input/touchscreen/s3c2410_ts.c |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
+index 6085d12..381c295 100644
+--- a/drivers/input/touchscreen/s3c2410_ts.c
++++ b/drivers/input/touchscreen/s3c2410_ts.c
+@@ -126,6 +126,7 @@ static void touch_timer_fire(unsigned long data)
+ 			input_report_abs(ts.input, ABS_Y, ts.yp);
+ 
+ 			input_report_key(ts.input, BTN_TOUCH, 1);
++			input_report_abs(ts.input, ABS_PRESSURE, 1);
+ 			input_sync(ts.input);
+ 
+ 			ts.xp = 0;
+@@ -140,6 +141,7 @@ static void touch_timer_fire(unsigned long data)
+ 		ts.count = 0;
+ 
+ 		input_report_key(ts.input, BTN_TOUCH, 0);
++		input_report_abs(ts.input, ABS_PRESSURE, 0);
+ 		input_sync(ts.input);
+ 
+ 		writel(WAIT4INT | INT_DOWN, ts.io + S3C2410_ADCTSC);
+@@ -318,6 +320,7 @@ static int __devinit s3c2410ts_probe(struct platform_device *pdev)
+ 	ts.input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
+ 	input_set_abs_params(ts.input, ABS_X, 0, 0x3FF, 0, 0);
+ 	input_set_abs_params(ts.input, ABS_Y, 0, 0x3FF, 0, 0);
++	input_set_abs_params(ts.input, ABS_PRESSURE, 0, 1, 0, 0);
+ 
+ 	ts.input->name = "S3C24XX TouchScreen";
+ 	ts.input->id.bustype = BUS_HOST;
+-- 
+1.7.2.2
+
recipes/linux/linux-2.6.35/rx1950/0002-s3c2410_udc-2440-dual-packet-workaround.patch new file +71 -0

71 lines not on this page · raw message

recipes/linux/linux-2.6.35/rx1950/0003-rx1950-add-battery-device.patch new file +356 -0

356 lines not on this page · raw message

recipes/linux/linux-2.6.35/rx1950/0004-rx1950-add-LEDs-support.patch new file +71 -0

71 lines not on this page · raw message

recipes/linux/linux-2.6.35/rx1950/0005-s3c24xx-DMA-don-t-use-autoreload-feature.patch new file +701 -0

701 lines not on this page · raw message

recipes/linux/linux-2.6.35/rx1950/0006-s3cmci-minor-fixups.patch new file +40 -0
new file mode 100644
index 0000000..dde1d77
@@ -0,0 +1,40 @@
+From 6c2fec9c2f1888fc177c29a37a3032f8144d2003 Mon Sep 17 00:00:00 2001
+From: Vasily Khoruzhick <[email protected]>
+Date: Fri, 13 Aug 2010 20:01:53 +0300
+Subject: [PATCH 06/20] s3cmci: minor fixups
+
+- It's not necessary to start DMA op manually, as we have
+autostart feature enabled
+- Restore prescaler before DMA operation, otherwise it
+takes ages to complete DMA op.
+
+Signed-off-by: Vasily Khoruzhick <[email protected]>
+---
+ drivers/mmc/host/s3cmci.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
+index 2e16e0a..5d1a8ed 100644
+--- a/drivers/mmc/host/s3cmci.c
++++ b/drivers/mmc/host/s3cmci.c
+@@ -1106,6 +1106,8 @@ static int s3cmci_prepare_dma(struct s3cmci_host *host, struct mmc_data *data)
+ 		    sg_dma_address(&data->sg[i]),
+ 		    sg_dma_len(&data->sg[i]));
+ 
++		/* Restore prescaler value */
++		writel(host->prescaler, host->base + S3C2410_SDIPRE);
+ 		res = s3c2410_dma_enqueue(host->dma, host,
+ 					  sg_dma_address(&data->sg[i]),
+ 					  sg_dma_len(&data->sg[i]));
+@@ -1116,8 +1118,6 @@ static int s3cmci_prepare_dma(struct s3cmci_host *host, struct mmc_data *data)
+ 		}
+ 	}
+ 
+-	s3c2410_dma_ctrl(host->dma, S3C2410_DMAOP_START);
+-
+ 	return 0;
+ }
+ 
+-- 
+1.7.2.2
+
recipes/linux/linux-2.6.35/rx1950/0007-Add-s3c-adc-battery-driver.patch new file +530 -0

530 lines not on this page · raw message

recipes/linux/linux-2.6.35/rx1950/defconfig new file +1615 -0

1,190 lines not on this page · raw message

recipes/linux/linux_2.6.35.bb +7 -0
index 5089521..8765846 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.2.2

Part of the diff is not shown here. View the raw message.

#2 lore raw

PATCH 2/2 rx1950: change default kernel to linux-2.6.35

In reply to Vasily Khoruzhick
---
 conf/machine/rx1950.conf |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
conf/machine/rx1950.conf +2 -10
index fb70437..d43a2dc 100644
@@ -20,17 +20,9 @@ MACHINE_FEATURES = "kernel26 touchscreen apm alsa irda wifi usbgadget screen vfa
 #
 # Software/packages selection
 #
-PREFERRED_PROVIDER_virtual/kernel = "linux-handhelds-2.6"
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+PREFERRED_VERSION_linux = "2.6.35"
 PCMCIA_MANAGER = "pcmciautils"
-PREFERRED_PROVIDER_xserver = "xserver-kdrive"
-
-#
-# Modules autoload and other boot properties
-#
-module_autoload_snd-pcm-oss = "snd-pcm-oss"
-module_autoload_g_ether = "g_ether"
 
 SERIAL_CONSOLE = "115200 ttyS0 vt100"
 USE_VT = "0"
-
-require conf/machine/include/LAB-settings.inc
Signature · 1 line
1.7.2.2