* [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34
@ 2010-02-25 23:02 Tony Lindgren
2010-02-25 23:03 ` [PATCH 1/6] omap: i2c: Fix muxing for command line enabled bus Tony Lindgren
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:02 UTC (permalink / raw)
To: linux-arm-kernel
Hi all,
Getting into fixes mode here. Still found few more trivial board
related patches that should go into this merge window.
Regards,
Tony
---
Ajay Kumar Gupta (2):
AM35x: Add missing GPIO mux config for EHCI port
AM35x: Enable OMAP_MUX in defconfig
Jarkko Nikula (1):
omap: i2c: Fix muxing for command line enabled bus
Sriram (2):
AM3517 EVM: Enable I2C support
AM3517EVM : correct typo - tca6416 mispelt as tca6516
manjugk manjugk (1):
Zoom3: Defconfig update
arch/arm/configs/am3517_evm_defconfig | 43 +++++++++++++++++++++++++++++++--
arch/arm/configs/omap_zoom3_defconfig | 6 ++---
arch/arm/mach-omap1/i2c.c | 6 +----
arch/arm/mach-omap2/board-am3517evm.c | 15 +++++++-----
arch/arm/mach-omap2/i2c.c | 6 +----
arch/arm/plat-omap/i2c.c | 10 ++++++--
arch/arm/plat-omap/include/plat/i2c.h | 5 ++--
7 files changed, 65 insertions(+), 26 deletions(-)
--
Signature
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/6] omap: i2c: Fix muxing for command line enabled bus
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
@ 2010-02-25 23:03 ` Tony Lindgren
2010-02-25 23:03 ` [PATCH 2/6] Zoom3: Defconfig update Tony Lindgren
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:03 UTC (permalink / raw)
To: linux-arm-kernel
From: Jarkko Nikula <jhnikula@gmail.com>
The commit b63128e81214cc2db2995d690438055c26d213a5 broke the pin muxing
for I2C busses that are enabled from the kernel command line.
Fix this by defining the board registration function omap_register_i2c_bus
in common platform code as it was before but keep the muxing in architecture
dependent files.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/mach-omap1/i2c.c | 6 +-----
arch/arm/mach-omap2/i2c.c | 6 +-----
arch/arm/plat-omap/i2c.c | 10 ++++++++--
arch/arm/plat-omap/include/plat/i2c.h | 5 ++---
4 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c
index 1bf4735..5446c99 100644
--- a/arch/arm/mach-omap1/i2c.c
+++ b/arch/arm/mach-omap1/i2c.c
@@ -23,9 +23,7 @@
#include <plat/mux.h>
#include <plat/cpu.h>
-int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
- struct i2c_board_info const *info,
- unsigned len)
+void __init omap1_i2c_mux_pins(int bus_id)
{
if (cpu_is_omap7xx()) {
omap_cfg_reg(I2C_7XX_SDA);
@@ -34,6 +32,4 @@ int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
omap_cfg_reg(I2C_SDA);
omap_cfg_reg(I2C_SCL);
}
-
- return omap_plat_register_i2c_bus(bus_id, clkrate, info, len);
}
diff --git a/arch/arm/mach-omap2/i2c.c b/arch/arm/mach-omap2/i2c.c
index 789ca8c..7951ae1 100644
--- a/arch/arm/mach-omap2/i2c.c
+++ b/arch/arm/mach-omap2/i2c.c
@@ -25,9 +25,7 @@
#include "mux.h"
-int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
- struct i2c_board_info const *info,
- unsigned len)
+void __init omap2_i2c_mux_pins(int bus_id)
{
if (cpu_is_omap24xx()) {
const int omap24xx_pins[][2] = {
@@ -51,6 +49,4 @@ int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
sprintf(mux_name, "i2c%i_sda.i2c%i_sda", bus_id, bus_id);
omap_mux_init_signal(mux_name, OMAP_PIN_INPUT);
}
-
- return omap_plat_register_i2c_bus(bus_id, clkrate, info, len);
}
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c
index 96d2781..624e262 100644
--- a/arch/arm/plat-omap/i2c.c
+++ b/arch/arm/plat-omap/i2c.c
@@ -28,6 +28,7 @@
#include <linux/i2c.h>
#include <mach/irqs.h>
#include <plat/mux.h>
+#include <plat/i2c.h>
#define OMAP_I2C_SIZE 0x3f
#define OMAP1_I2C_BASE 0xfffb3800
@@ -117,6 +118,11 @@ static int __init omap_i2c_add_bus(int bus_id)
res[1].start = irq;
}
+ if (cpu_class_is_omap1())
+ omap1_i2c_mux_pins(bus_id);
+ if (cpu_class_is_omap2())
+ omap2_i2c_mux_pins(bus_id);
+
return platform_device_register(pdev);
}
@@ -169,7 +175,7 @@ out:
subsys_initcall(omap_register_i2c_bus_cmdline);
/**
- * omap_plat_register_i2c_bus - register I2C bus with device descriptors
+ * omap_register_i2c_bus - register I2C bus with device descriptors
* @bus_id: bus id counting from number 1
* @clkrate: clock rate of the bus in kHz
* @info: pointer into I2C device descriptor table or NULL
@@ -177,7 +183,7 @@ subsys_initcall(omap_register_i2c_bus_cmdline);
*
* Returns 0 on success or an error code.
*/
-int __init omap_plat_register_i2c_bus(int bus_id, u32 clkrate,
+int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
struct i2c_board_info const *info,
unsigned len)
{
diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h
index 585d9ca..87f6bf2 100644
--- a/arch/arm/plat-omap/include/plat/i2c.h
+++ b/arch/arm/plat-omap/include/plat/i2c.h
@@ -34,6 +34,5 @@ static inline int omap_register_i2c_bus(int bus_id, u32 clkrate,
}
#endif
-int omap_plat_register_i2c_bus(int bus_id, u32 clkrate,
- struct i2c_board_info const *info,
- unsigned len);
+void __init omap1_i2c_mux_pins(int bus_id);
+void __init omap2_i2c_mux_pins(int bus_id);
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/6] Zoom3: Defconfig update
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
2010-02-25 23:03 ` [PATCH 1/6] omap: i2c: Fix muxing for command line enabled bus Tony Lindgren
@ 2010-02-25 23:03 ` Tony Lindgren
2010-02-25 23:03 ` [PATCH 3/6] AM35x: Add missing GPIO mux config for EHCI port Tony Lindgren
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:03 UTC (permalink / raw)
To: linux-arm-kernel
From: manjugk manjugk <manjugk@ti.com>
Some of the features are not enabled by default in zoom3 defconfig.
This patch enables:
- MMC Resume
- TWL4030 RTC driver
- Debug File system
Build and boot tested on Zoom3 board.
Signed-off-by: Manjunatha GK <manjugk@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/configs/omap_zoom3_defconfig | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/configs/omap_zoom3_defconfig b/arch/arm/configs/omap_zoom3_defconfig
index a3e3c82..ff8ac3d 100644
--- a/arch/arm/configs/omap_zoom3_defconfig
+++ b/arch/arm/configs/omap_zoom3_defconfig
@@ -1136,7 +1136,7 @@ CONFIG_TWL4030_USB=y
# CONFIG_NOP_USB_XCEIV is not set
CONFIG_MMC=y
# CONFIG_MMC_DEBUG is not set
-# CONFIG_MMC_UNSAFE_RESUME is not set
+CONFIG_MMC_UNSAFE_RESUME=y
#
# MMC/SD/SDIO Card Drivers
@@ -1186,7 +1186,7 @@ CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
-# CONFIG_RTC_DRV_TWL4030 is not set
+CONFIG_RTC_DRV_TWL4030=y
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
@@ -1416,7 +1416,7 @@ CONFIG_FRAME_WARN=1024
CONFIG_MAGIC_SYSRQ=y
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_UNUSED_SYMBOLS is not set
-# CONFIG_DEBUG_FS is not set
+CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/6] AM35x: Add missing GPIO mux config for EHCI port
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
2010-02-25 23:03 ` [PATCH 1/6] omap: i2c: Fix muxing for command line enabled bus Tony Lindgren
2010-02-25 23:03 ` [PATCH 2/6] Zoom3: Defconfig update Tony Lindgren
@ 2010-02-25 23:03 ` Tony Lindgren
2010-02-25 23:03 ` [PATCH 4/6] AM35x: Enable OMAP_MUX in defconfig Tony Lindgren
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:03 UTC (permalink / raw)
To: linux-arm-kernel
From: Ajay Kumar Gupta <ajay.gupta@ti.com>
Adding GPIO mux config used for PHY reset of EHCI port on base board.
We get below failure message without this patch,
"hub 1-0:1.0: unable to enumerate USB device on port 1"
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/mach-omap2/board-am3517evm.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index e6b8967..aee0a02 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -301,6 +301,9 @@ static void __init am3517_evm_init(void)
ARRAY_SIZE(am3517_evm_devices));
omap_serial_init();
+
+ /* Configure GPIO for EHCI port */
+ omap_mux_init_gpio(57, OMAP_PIN_OUTPUT);
usb_ehci_init(&ehci_pdata);
/* DSS */
am3517_evm_display_init();
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/6] AM35x: Enable OMAP_MUX in defconfig
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
` (2 preceding siblings ...)
2010-02-25 23:03 ` [PATCH 3/6] AM35x: Add missing GPIO mux config for EHCI port Tony Lindgren
@ 2010-02-25 23:03 ` Tony Lindgren
2010-02-25 23:03 ` [PATCH 5/6] AM3517 EVM: Enable I2C support Tony Lindgren
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:03 UTC (permalink / raw)
To: linux-arm-kernel
From: Ajay Kumar Gupta <ajay.gupta@ti.com>
Enabling OMAP_MUX in defconfig as it is required for EHCI to work.
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/configs/am3517_evm_defconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/configs/am3517_evm_defconfig b/arch/arm/configs/am3517_evm_defconfig
index abe9966..edae1c2 100644
--- a/arch/arm/configs/am3517_evm_defconfig
+++ b/arch/arm/configs/am3517_evm_defconfig
@@ -201,7 +201,7 @@ CONFIG_ARCH_OMAP3=y
# CONFIG_OMAP_DEBUG_POWERDOMAIN is not set
# CONFIG_OMAP_DEBUG_CLOCKDOMAIN is not set
CONFIG_OMAP_RESET_CLOCKS=y
-# CONFIG_OMAP_MUX is not set
+CONFIG_OMAP_MUX=y
# CONFIG_OMAP_MCBSP is not set
# CONFIG_OMAP_MBOX_FWK is not set
# CONFIG_OMAP_MPU_TIMER is not set
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 5/6] AM3517 EVM: Enable I2C support
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
` (3 preceding siblings ...)
2010-02-25 23:03 ` [PATCH 4/6] AM35x: Enable OMAP_MUX in defconfig Tony Lindgren
@ 2010-02-25 23:03 ` Tony Lindgren
2010-02-25 23:03 ` [PATCH 6/6] AM3517EVM : correct typo - tca6416 mispelt as tca6516 Tony Lindgren
2010-02-26 23:36 ` [PATCH 7/6] omap2: Initialize Menelaus and MMC for N8X0 Tony Lindgren
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:03 UTC (permalink / raw)
To: linux-arm-kernel
From: Sriram <srk@ti.com>
There are multiple devices connected to I2C bus on AM3517EVM
(for instance audio codec, IO expander etc). Enable I2C support
in the default kernel configuration for AM3517 EVM.
Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/configs/am3517_evm_defconfig | 41 ++++++++++++++++++++++++++++++++-
1 files changed, 40 insertions(+), 1 deletions(-)
diff --git a/arch/arm/configs/am3517_evm_defconfig b/arch/arm/configs/am3517_evm_defconfig
index edae1c2..66a10b5 100644
--- a/arch/arm/configs/am3517_evm_defconfig
+++ b/arch/arm/configs/am3517_evm_defconfig
@@ -590,7 +590,46 @@ CONFIG_HW_RANDOM=y
# CONFIG_R3964 is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
-# CONFIG_I2C is not set
+CONFIG_I2C=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_COMPAT=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_HELPER_AUTO=y
+
+#
+# I2C Hardware Bus support
+#
+
+#
+# I2C system bus drivers (mostly embedded / system-on-chip)
+#
+# CONFIG_I2C_DESIGNWARE is not set
+# CONFIG_I2C_GPIO is not set
+# CONFIG_I2C_OCORES is not set
+CONFIG_I2C_OMAP=y
+# CONFIG_I2C_SIMTEC is not set
+
+#
+# External I2C/SMBus adapter drivers
+#
+# CONFIG_I2C_PARPORT_LIGHT is not set
+# CONFIG_I2C_TAOS_EVM is not set
+# CONFIG_I2C_TINY_USB is not set
+
+#
+# Other I2C/SMBus bus drivers
+#
+# CONFIG_I2C_PCA_PLATFORM is not set
+# CONFIG_I2C_STUB is not set
+
+#
+# Miscellaneous I2C Chip support
+#
+# CONFIG_SENSORS_TSL2550 is not set
+# CONFIG_I2C_DEBUG_CORE is not set
+# CONFIG_I2C_DEBUG_ALGO is not set
+# CONFIG_I2C_DEBUG_BUS is not set
+# CONFIG_I2C_DEBUG_CHIP is not set
# CONFIG_SPI is not set
#
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 6/6] AM3517EVM : correct typo - tca6416 mispelt as tca6516
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
` (4 preceding siblings ...)
2010-02-25 23:03 ` [PATCH 5/6] AM3517 EVM: Enable I2C support Tony Lindgren
@ 2010-02-25 23:03 ` Tony Lindgren
2010-02-26 23:36 ` [PATCH 7/6] omap2: Initialize Menelaus and MMC for N8X0 Tony Lindgren
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-25 23:03 UTC (permalink / raw)
To: linux-arm-kernel
From: Sriram <srk@ti.com>
Correct instances where tca6416 is misspelt as tca6516 in
the board-am3517evm file.
Signed-off-by: Sriramakrishnan <srk@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/mach-omap2/board-am3517evm.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index aee0a02..70c1861 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -80,7 +80,7 @@ static void __init am3517_evm_rtc_init(void)
static struct pca953x_platform_data am3517evm_gpio_expander_info_0 = {
.gpio_base = OMAP_MAX_GPIO_LINES,
};
-static struct i2c_board_info __initdata am3517evm_tca6516_info_0[] = {
+static struct i2c_board_info __initdata am3517evm_tca6416_info_0[] = {
{
I2C_BOARD_INFO("tca6416", 0x21),
.platform_data = &am3517evm_gpio_expander_info_0,
@@ -94,7 +94,7 @@ static struct pca953x_platform_data am3517evm_ui_gpio_expander_info_1 = {
static struct pca953x_platform_data am3517evm_ui_gpio_expander_info_2 = {
.gpio_base = OMAP_MAX_GPIO_LINES + 32,
};
-static struct i2c_board_info __initdata am3517evm_ui_tca6516_info[] = {
+static struct i2c_board_info __initdata am3517evm_ui_tca6416_info[] = {
{
I2C_BOARD_INFO("tca6416", 0x20),
.platform_data = &am3517evm_ui_gpio_expander_info_1,
@@ -108,10 +108,10 @@ static struct i2c_board_info __initdata am3517evm_ui_tca6516_info[] = {
static int __init am3517_evm_i2c_init(void)
{
omap_register_i2c_bus(1, 400, NULL, 0);
- omap_register_i2c_bus(2, 400, am3517evm_tca6516_info_0,
- ARRAY_SIZE(am3517evm_tca6516_info_0));
- omap_register_i2c_bus(3, 400, am3517evm_ui_tca6516_info,
- ARRAY_SIZE(am3517evm_ui_tca6516_info));
+ omap_register_i2c_bus(2, 400, am3517evm_tca6416_info_0,
+ ARRAY_SIZE(am3517evm_tca6416_info_0));
+ omap_register_i2c_bus(3, 400, am3517evm_ui_tca6416_info,
+ ARRAY_SIZE(am3517evm_ui_tca6416_info));
return 0;
}
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 7/6] omap2: Initialize Menelaus and MMC for N8X0
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
` (5 preceding siblings ...)
2010-02-25 23:03 ` [PATCH 6/6] AM3517EVM : correct typo - tca6416 mispelt as tca6516 Tony Lindgren
@ 2010-02-26 23:36 ` Tony Lindgren
6 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-02-26 23:36 UTC (permalink / raw)
To: linux-arm-kernel
Here's one more to initialize the MMC on N8X0. That's handy
for boot testing the multi-omap kernels on 24xx.
For some reason only one of the MMC slots seems to work
on both N800 and N810 for some reason. No idea why, the
Menelaus slot switching seems to be all there.
Regards,
Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: n8x0-mmc.patch
Type: text/x-diff
Size: 11133 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100226/6756f391/attachment.bin>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-02-26 23:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25 23:02 [PATCH 0/6] omap i2c init fix and trivial board changes for 2.6.34 Tony Lindgren
2010-02-25 23:03 ` [PATCH 1/6] omap: i2c: Fix muxing for command line enabled bus Tony Lindgren
2010-02-25 23:03 ` [PATCH 2/6] Zoom3: Defconfig update Tony Lindgren
2010-02-25 23:03 ` [PATCH 3/6] AM35x: Add missing GPIO mux config for EHCI port Tony Lindgren
2010-02-25 23:03 ` [PATCH 4/6] AM35x: Enable OMAP_MUX in defconfig Tony Lindgren
2010-02-25 23:03 ` [PATCH 5/6] AM3517 EVM: Enable I2C support Tony Lindgren
2010-02-25 23:03 ` [PATCH 6/6] AM3517EVM : correct typo - tca6416 mispelt as tca6516 Tony Lindgren
2010-02-26 23:36 ` [PATCH 7/6] omap2: Initialize Menelaus and MMC for N8X0 Tony Lindgren
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).