]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mx53: Add keypad support
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 27 Jun 2011 20:12:11 +0000 (17:12 -0300)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 28 Jun 2011 06:23:18 +0000 (08:23 +0200)
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/clock-mx51-mx53.c
arch/arm/mach-mx5/devices-imx53.h
arch/arm/plat-mxc/devices/platform-imx-keypad.c

index 6826863306b95e657c9ba17a8c1e331e0eb0e1f0..699b0d29e364fbe59ef34b63ef00f6bc2ed53c0f 100644 (file)
@@ -1493,6 +1493,7 @@ static struct clk_lookup mx53_lookups[] = {
        _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk)
        _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk)
        _REGISTER_CLOCK("imx-ssi.2", NULL, ssi3_clk)
+       _REGISTER_CLOCK("imx-keypad", NULL, dummy_clk)
 };
 
 static void clk_tree_init(void)
index b8a492fe22000725dfcf74668f172808aca825cf..c27fe8bb4762ecce77a9caf5e5699d0b93d1eb14 100644 (file)
@@ -36,3 +36,7 @@ extern const struct imx_imx2_wdt_data imx53_imx2_wdt_data[];
 extern const struct imx_imx_ssi_data imx53_imx_ssi_data[];
 #define imx53_add_imx_ssi(id, pdata)   \
        imx_add_imx_ssi(&imx53_imx_ssi_data[id], pdata)
+
+extern const struct imx_imx_keypad_data imx53_imx_keypad_data;
+#define imx53_add_imx_keypad(pdata)    \
+       imx_add_imx_keypad(&imx53_imx_keypad_data, pdata)
index 26366114b021aadc9cb49173de6c70c0d4e6227c..479c3e9f771f04be7105551e0286cda2a8dd21c3 100644 (file)
@@ -46,6 +46,11 @@ const struct imx_imx_keypad_data imx51_imx_keypad_data __initconst =
        imx_imx_keypad_data_entry_single(MX51, SZ_16);
 #endif /* ifdef CONFIG_SOC_IMX51 */
 
+#ifdef CONFIG_SOC_IMX53
+const struct imx_imx_keypad_data imx53_imx_keypad_data __initconst =
+       imx_imx_keypad_data_entry_single(MX53, SZ_16);
+#endif /* ifdef CONFIG_SOC_IMX53 */
+
 struct platform_device *__init imx_add_imx_keypad(
                const struct imx_imx_keypad_data *data,
                const struct matrix_keymap_data *pdata)