Skip to contentSkip to conversation

imx: Efika: Add pata device

PATCH New Arnaud Patard (Rtp) 2 participants 5 messages Jul 26, 2011 – Jul 28, 2011

lore
Share & tools
lore
#0 lore raw

cover imx: Efika: Add pata device

This patchset is adding ressources, clock and device declarations for the pata device available on imx51. Last patch enables pata on efika platforms. To be complete, this patchset needs a driver, which is about to be sent for merge to ata developers.

v2: Created a imx51_add_mxc_pata() as suggested
v3: Fix naming
v4: Change clock name to pata_imx

Arnaud

#2 lore raw

PATCH 1/3 imx51: add pata device

In reply to Arnaud Patard (Rtp)
Quoted 20 lines · Arnaud Patard

Declare the pata device found on mx51

Index: linux-2.6-submit/arch/arm/mach-mx5/devices-imx51.h
===================================================================

arch/arm/mach-mx5/devices-imx51.h +4 -0
@@ -52,3 +52,7 @@ extern const struct imx_mxc_pwm_data imx
 extern const struct imx_imx_keypad_data imx51_imx_keypad_data;
 #define imx51_add_imx_keypad(pdata)	\
 	imx_add_imx_keypad(&imx51_imx_keypad_data, pdata)
+
+extern const struct imx_pata_imx_data imx51_pata_imx_data;
+#define imx51_add_pata_imx() \
+	imx_add_pata_imx(&imx51_pata_imx_data)

Index: linux-2.6-submit/arch/arm/plat-mxc/devices/Kconfig
===================================================================

arch/arm/plat-mxc/devices/Kconfig config IMX_HAVE_PLATFORM_IMX_I2C · line 36

Quoted 6 lines
arch/arm/plat-mxc/devices/Kconfig +3 -0
@@ -31,6 +31,9 @@ config IMX_HAVE_PLATFORM_IMX_I2C
 config IMX_HAVE_PLATFORM_IMX_KEYPAD
 	bool
 
+config IMX_HAVE_PLATFORM_PATA_IMX
+	bool
+

this breaks the alphabetic ordering in this file. arch/arm/plat-mxc/devices/Makefile is affected, too.

Other than that I don't see any issues any more. Sascha, maybe you can fix that up while committing (assuming nobody has more objections)? Arnaud told me on irc that he is occupied and cannot follow up soon.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |