Skip to contentSkip to conversation

cpuimx27: fix compile when ULPI is selected

PATCH Superseded Eric Bénard 2 participants 6 messages Oct 6, 2010

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cpuimx27: fix compile when ULPI is selected

without this patch we get :
arch/arm/mach-imx/built-in.o: In function `eukrea_cpuimx27_init':
eukrea_mbimx27-baseboard.c:(.init.text+0x44c): undefined reference to `mxc_ulpi_access_ops'

---
 arch/arm/mach-imx/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-imx/Kconfig +2 -0
index c5c0369..6348017 100644
@@ -122,6 +122,8 @@ config MACH_CPUIMX27
 	select IMX_HAVE_PLATFORM_IMX_I2C
 	select IMX_HAVE_PLATFORM_IMX_UART
 	select IMX_HAVE_PLATFORM_MXC_NAND
+	select IMX_HAVE_PLATFORM_SPI_IMX
+	select MXC_ULPI if USB_ULPI
 	help
 	  Include support for Eukrea CPUIMX27 platform. This includes
 	  specific configurations for the module and its peripherals.
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 cpuimx27: fix i2c bus selection

Recent clean of i.MX devices registration changed the i2C bus number selected for our platform (Freescale start peripheral ID at 1, kernel now start it at 0 so i.MX27's i2c 1 is kernel's i2c 0). Without this fix, i2c is unusable on this platform.

---
 arch/arm/mach-imx/mach-cpuimx27.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-cpuimx27.c +1 -1
index 339150a..6830afd 100644
@@ -259,7 +259,7 @@ static void __init eukrea_cpuimx27_init(void)
 	i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices,
 				ARRAY_SIZE(eukrea_cpuimx27_i2c_devices));
 
-	imx27_add_i2c_imx1(&cpuimx27_i2c1_data);
+	imx27_add_i2c_imx0(&cpuimx27_i2c1_data);
 
 	platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
 
Signature · 1 line
1.7.0.4
#5 lore raw

PATCH 1/2 cpuimx27: fix compile when ULPI is selected

In reply to Eric Bénard
Quoted 14 lines · Eric B?nard

without this patch we get :
arch/arm/mach-imx/built-in.o: In function `eukrea_cpuimx27_init':
eukrea_mbimx27-baseboard.c:(.init.text+0x44c): undefined reference to `mxc_ulpi_access_ops'

---
 arch/arm/mach-imx/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-imx/Kconfig +0 -0
index c5c0369..6348017 100644

arch/arm/mach-imx/Kconfig config MACH_CPUIMX27 · line 126

Quoted 5 lines
arch/arm/mach-imx/Kconfig +2 -0
@@ -122,6 +122,8 @@ config MACH_CPUIMX27
 	select IMX_HAVE_PLATFORM_IMX_I2C
 	select IMX_HAVE_PLATFORM_IMX_UART
 	select IMX_HAVE_PLATFORM_MXC_NAND
+	select IMX_HAVE_PLATFORM_SPI_IMX
+	select MXC_ULPI if USB_ULPI

the spi part is not related to the commit log?

Best regards
Uwe

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

PATCH 2/2 cpuimx27: fix i2c bus selection

In reply to Eric Bénard
Quoted 15 lines · Eric B?nard

Recent clean of i.MX devices registration changed the i2C bus number selected for our platform (Freescale start peripheral ID at 1, kernel now start it at 0 so i.MX27's i2c 1 is kernel's i2c 0). Without this fix, i2c is unusable on this platform.

---
 arch/arm/mach-imx/mach-cpuimx27.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-cpuimx27.c +0 -0
index 339150a..6830afd 100644

arch/arm/mach-imx/mach-cpuimx27.c static void __init eukrea_cpuimx27_init(void) · line 262

Quoted 5 lines
arch/arm/mach-imx/mach-cpuimx27.c +1 -1
@@ -259,7 +259,7 @@ static void __init eukrea_cpuimx27_init(void)
 	i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices,
 				ARRAY_SIZE(eukrea_cpuimx27_i2c_devices));
 
-	imx27_add_i2c_imx1(&cpuimx27_i2c1_data);
+	imx27_add_i2c_imx0(&cpuimx27_i2c1_data);

This doesn't fit on Sascha's current tree. Can you please rebase it?

Best regards
Uwe

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

PATCH 2/2 cpuimx27: fix i2c bus selection

Hi Uwe,

Le 06/10/2010 15:07, Uwe Kleine-K?nig a ?crit :

Quoted 19 lines · Eric B?nard
Quoted 18 lines

Recent clean of i.MX devices registration changed the i2C bus number selected for our platform (Freescale start peripheral ID at 1, kernel now start it at 0 so i.MX27's i2c 1 is kernel's i2c 0). Without this fix, i2c is unusable on this platform.

---
  arch/arm/mach-imx/mach-cpuimx27.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-cpuimx27.c +0 -0
index 339150a..6830afd 100644
@@ -259,7 +259,7 @@ static void __init eukrea_cpuimx27_init(void)
  	i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices,
  				ARRAY_SIZE(eukrea_cpuimx27_i2c_devices));
 
Quoted 4 lines

arch/arm/mach-imx/mach-cpuimx27.c static void __init eukrea_cpuimx27_init(void) · line 262

Quoted 2 lines
arch/arm/mach-imx/mach-cpuimx27.c +1 -1
-	imx27_add_i2c_imx1(&cpuimx27_i2c1_data);
+	imx27_add_i2c_imx0(&cpuimx27_i2c1_data);

This doesn't fit on Sascha's current tree. Can you please rebase it?

against which branch ?

Eric

#4 lore raw

PATCH 2/2 cpuimx27: fix i2c bus selection

In reply to Uwe Kleine-König
Quoted 19 lines · Uwe Kleine-K?nig
Quoted 18 lines · Eric B?nard

Recent clean of i.MX devices registration changed the i2C bus number selected for our platform (Freescale start peripheral ID at 1, kernel now start it at 0 so i.MX27's i2c 1 is kernel's i2c 0). Without this fix, i2c is unusable on this platform.

---
 arch/arm/mach-imx/mach-cpuimx27.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-cpuimx27.c +0 -0
index 339150a..6830afd 100644
@@ -259,7 +259,7 @@ static void __init eukrea_cpuimx27_init(void)
 	i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices,
 				ARRAY_SIZE(eukrea_cpuimx27_i2c_devices));
 
Quoted 3 lines

arch/arm/mach-imx/mach-cpuimx27.c static void __init eukrea_cpuimx27_init(void) · line 262

Quoted 2 lines
arch/arm/mach-imx/mach-cpuimx27.c +1 -1
-	imx27_add_i2c_imx1(&cpuimx27_i2c1_data);
+	imx27_add_i2c_imx0(&cpuimx27_i2c1_data);

This doesn't fit on Sascha's current tree. Can you please rebase it?

I need to be more precise here: It doesn't fit Sascha's for-2.6.37 branch. If you want it to go in before .36, then it's obviously OK.

Maybe you want to add the offending commit to the log (it's c69871597dd173af2d7615429c0ee6aa10fae42b). And you can add my

Acked-and-blame-taken-by Uwe Kleine-K?nig <[email protected]>

Best regards and sorry for that,
Uwe

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