* [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices
@ 2010-11-30 12:02 Fabio Estevam
2010-11-30 12:02 ` [PATCH v2 2/2] ARM: mx5: dynamically allocate imx-keypad devices Fabio Estevam
2010-11-30 14:38 ` [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Uwe Kleine-König
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2010-11-30 12:02 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
arch/arm/plat-mxc/devices/platform-mxc_pwm.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-mxc/devices/platform-mxc_pwm.c b/arch/arm/plat-mxc/devices/platform-mxc_pwm.c
index 3d8ebdb..a5e1581 100644
--- a/arch/arm/plat-mxc/devices/platform-mxc_pwm.c
+++ b/arch/arm/plat-mxc/devices/platform-mxc_pwm.c
@@ -40,6 +40,15 @@ const struct imx_mxc_pwm_data imx27_mxc_pwm_data __initconst =
imx_mxc_pwm_data_entry_single(MX27, 0, , SZ_4K);
#endif /* ifdef CONFIG_SOC_IMX27 */
+#ifdef CONFIG_SOC_IMX51
+const struct imx_mxc_pwm_data imx51_mxc_pwm_data[] __initconst = {
+#define imx51_mxc_pwm_data_entry(_id, _hwid) \
+ imx_mxc_pwm_data_entry(MX51, _id, _hwid, SZ_16K)
+ imx51_mxc_pwm_data_entry(0, 1),
+ imx51_mxc_pwm_data_entry(1, 2),
+};
+#endif /* ifdef CONFIG_SOC_IMX51 */
+
struct platform_device *__init imx_add_mxc_pwm(
const struct imx_mxc_pwm_data *data)
{
--
1.6.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] ARM: mx5: dynamically allocate imx-keypad devices
2010-11-30 12:02 [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Fabio Estevam
@ 2010-11-30 12:02 ` Fabio Estevam
2010-11-30 14:38 ` [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Uwe Kleine-König
1 sibling, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2010-11-30 12:02 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
arch/arm/plat-mxc/devices/platform-imx-keypad.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-mxc/devices/platform-imx-keypad.c b/arch/arm/plat-mxc/devices/platform-imx-keypad.c
index 40238f0..2636611 100644
--- a/arch/arm/plat-mxc/devices/platform-imx-keypad.c
+++ b/arch/arm/plat-mxc/devices/platform-imx-keypad.c
@@ -41,6 +41,11 @@ const struct imx_imx_keypad_data imx35_imx_keypad_data __initconst =
imx_imx_keypad_data_entry_single(MX35, SZ_16);
#endif /* ifdef CONFIG_SOC_IMX35 */
+#ifdef CONFIG_SOC_IMX51
+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 */
+
struct platform_device *__init imx_add_imx_keypad(
const struct imx_imx_keypad_data *data,
const struct matrix_keymap_data *pdata)
--
1.6.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices
2010-11-30 12:02 [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Fabio Estevam
2010-11-30 12:02 ` [PATCH v2 2/2] ARM: mx5: dynamically allocate imx-keypad devices Fabio Estevam
@ 2010-11-30 14:38 ` Uwe Kleine-König
2010-11-30 14:44 ` Fabio Estevam
1 sibling, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2010-11-30 14:38 UTC (permalink / raw)
To: linux-arm-kernel
Hello Fabio,
both patches look ok. (Yes, that's an Acked-by: me for both)
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices
2010-11-30 14:38 ` [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Uwe Kleine-König
@ 2010-11-30 14:44 ` Fabio Estevam
0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2010-11-30 14:44 UTC (permalink / raw)
To: linux-arm-kernel
Hi Uwe,
On 11/30/2010 12:38 PM, Uwe Kleine-K?nig wrote:
> Hello Fabio,
>
> both patches look ok. (Yes, that's an Acked-by: me for both)
>
> Uwe
I am working on v3 as I realized I forgot to remove the keypad entries
from devices.c and devices.h and also to use register keypad dynamically
for 2 boards (eukrea_mbimx51-baseboard and board-mx51_3ds.c).
Will submit it soon.
Thanks,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-30 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30 12:02 [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Fabio Estevam
2010-11-30 12:02 ` [PATCH v2 2/2] ARM: mx5: dynamically allocate imx-keypad devices Fabio Estevam
2010-11-30 14:38 ` [PATCH v2 1/2] ARM: mx5: dynamically allocate pwm devices Uwe Kleine-König
2010-11-30 14:44 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).