arm: lpc32xx: add tsc-device
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 21 Mar 2011 15:14:43 +0000 (16:14 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Tue, 12 Jul 2011 08:57:13 +0000 (10:57 +0200)
Fix the clock name, too.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Kevin Wells <Kevin.wells@nxp.com>
arch/arm/mach-lpc32xx/clock.c
arch/arm/mach-lpc32xx/common.c
arch/arm/mach-lpc32xx/common.h

index da0e6498110a4f6400274b74015e964ab81566f5..1e027514096d0d9e15f87152a0e92761f1e959e8 100644 (file)
@@ -1077,7 +1077,7 @@ static struct clk_lookup lookups[] = {
        _REGISTER_CLOCK("lpc32xx-nand.0", "nand_ck", clk_nand)
        _REGISTER_CLOCK("tbd", "i2s0_ck", clk_i2s0)
        _REGISTER_CLOCK("tbd", "i2s1_ck", clk_i2s1)
-       _REGISTER_CLOCK("lpc32xx-ts", NULL, clk_tsc)
+       _REGISTER_CLOCK("ts-lpc32xx", NULL, clk_tsc)
        _REGISTER_CLOCK("dev:mmc0", "MCLK", clk_mmc)
        _REGISTER_CLOCK("lpc-net.0", NULL, clk_net)
        _REGISTER_CLOCK("dev:clcd", NULL, clk_lcd)
index ee24dc28e93ec7d4741825487ab8ddf37ba197cf..6880b47a9ae5ee64af8fd6c9b56345f72bb509e3 100644 (file)
@@ -95,6 +95,27 @@ struct platform_device lpc32xx_i2c2_device = {
        },
 };
 
+/* TSC (Touch Screen Controller) */
+
+static struct resource lpc32xx_tsc_resources[] = {
+       {
+               .start = LPC32XX_ADC_BASE,
+               .end = LPC32XX_ADC_BASE + SZ_4K - 1,
+               .flags = IORESOURCE_MEM,
+       }, {
+               .start = IRQ_LPC32XX_TS_IRQ,
+               .end = IRQ_LPC32XX_TS_IRQ,
+               .flags = IORESOURCE_IRQ,
+       },
+};
+
+struct platform_device lpc32xx_tsc_device = {
+       .name =  "ts-lpc32xx",
+       .id = -1,
+       .num_resources = ARRAY_SIZE(lpc32xx_tsc_resources),
+       .resource = lpc32xx_tsc_resources,
+};
+
 /*
  * Returns the unique ID for the device
  */
index f82211fd80c1fab17d37c74d9ce1cc01353082ee..e81243c79f77adfb01b6c040a8446d3122a886af 100644 (file)
@@ -28,6 +28,7 @@ extern struct platform_device lpc32xx_watchdog_device;
 extern struct platform_device lpc32xx_i2c0_device;
 extern struct platform_device lpc32xx_i2c1_device;
 extern struct platform_device lpc32xx_i2c2_device;
+extern struct platform_device lpc32xx_tsc_device;
 
 /*
  * Other arch specific structures and functions