diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-27 15:01:35 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-27 15:01:35 +0000 |
commit | 1ee6958324f44923ed309d2fa911fc432f514694 (patch) | |
tree | ec5ccc0121d0adc7430a0f6bd4a111dd5ab6e331 /target/linux/xburst/patches-2.6.37/060-adc-touchscreen.patch | |
parent | 287550be2067ed412d4ce7148585c113fab125b8 (diff) |
xburst: remove support for old kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31904 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/xburst/patches-2.6.37/060-adc-touchscreen.patch')
-rw-r--r-- | target/linux/xburst/patches-2.6.37/060-adc-touchscreen.patch | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/target/linux/xburst/patches-2.6.37/060-adc-touchscreen.patch b/target/linux/xburst/patches-2.6.37/060-adc-touchscreen.patch deleted file mode 100644 index 85697aa99..000000000 --- a/target/linux/xburst/patches-2.6.37/060-adc-touchscreen.patch +++ /dev/null @@ -1,90 +0,0 @@ -From 424b737e5a1858dafc8138fd59d154f0493b21d0 Mon Sep 17 00:00:00 2001 -From: Lars-Peter Clausen <lars@metafoo.de> -Date: Sun, 5 Sep 2010 20:36:59 +0200 -Subject: [PATCH 13/23] MFD: jz4740-adc: Add support for the touchscreen part of the adc unit - ---- - drivers/mfd/jz4740-adc.c | 39 ++++++++++++++++++++++++++++++++++++--- - include/linux/jz4740-adc.h | 2 +- - 2 files changed, 37 insertions(+), 4 deletions(-) - ---- a/drivers/mfd/jz4740-adc.c -+++ b/drivers/mfd/jz4740-adc.c -@@ -46,9 +46,9 @@ - enum { - JZ_ADC_IRQ_ADCIN = 0, - JZ_ADC_IRQ_BATTERY, -- JZ_ADC_IRQ_TOUCH, -- JZ_ADC_IRQ_PENUP, -- JZ_ADC_IRQ_PENDOWN, -+ JZ_ADC_IRQ_TS_DATA_READY, -+ JZ_ADC_IRQ_TS_PENUP, -+ JZ_ADC_IRQ_TS_PENDOWN, - }; - - struct jz4740_adc { -@@ -101,6 +101,7 @@ static void jz4740_adc_irq_ack(unsigned - struct jz4740_adc *adc = get_irq_chip_data(irq); - - irq -= adc->irq_base; -+ - writeb(BIT(irq), adc->base + JZ_REG_ADC_STATUS); - } - -@@ -227,6 +228,27 @@ static struct resource jz4740_battery_re - }, - }; - -+static struct resource jz4740_ts_resources[] = { -+ { -+ .start = JZ_ADC_IRQ_TS_DATA_READY, -+ .flags = IORESOURCE_IRQ, -+ }, -+ { -+ .start = JZ_ADC_IRQ_TS_PENUP, -+ .flags = IORESOURCE_IRQ, -+ }, -+ { -+ .start = JZ_ADC_IRQ_TS_PENDOWN, -+ .flags = IORESOURCE_IRQ, -+ }, -+ { -+ .start = JZ_REG_ADC_TOUCHSCREEN_BASE, -+ .end = JZ_REG_ADC_TOUCHSCREEN_BASE + 0xb, -+ .flags = IORESOURCE_MEM, -+ }, -+}; -+ -+ - const struct mfd_cell jz4740_adc_cells[] = { - { - .id = 0, -@@ -248,6 +270,17 @@ const struct mfd_cell jz4740_adc_cells[] - .data_size = sizeof(struct mfd_cell), - - .enable = jz4740_adc_cell_enable, -+ .disable = jz4740_adc_cell_disable, -+ }, -+ { -+ .id = 2, -+ .name = "jz4740-ts", -+ .num_resources = ARRAY_SIZE(jz4740_ts_resources), -+ .resources = jz4740_ts_resources, -+ .platform_data = (void *)&jz4740_adc_cells[2], -+ .data_size = sizeof(struct mfd_cell), -+ -+ .enable = jz4740_adc_cell_enable, - .disable = jz4740_adc_cell_disable, - }, - }; ---- a/include/linux/jz4740-adc.h -+++ b/include/linux/jz4740-adc.h -@@ -25,7 +25,7 @@ int jz4740_adc_set_config(struct device - #define JZ_ADC_CONFIG_BAT_MB BIT(4) - - #define JZ_ADC_CONFIG_DNUM(dnum) ((dnum) << 16) --#define JZ_ADC_CONFIG_XYZ_OFFSET(dnum) ((xyz) << 13) -+#define JZ_ADC_CONFIG_XYZ_OFFSET(xyz) ((xyz) << 13) - #define JZ_ADC_CONFIG_SAMPLE_NUM(x) ((x) << 10) - #define JZ_ADC_CONFIG_CLKDIV(div) ((div) << 5) - |