OMAP4: mux: Add the OMAP4430 ES1 support
Subsystems (3)
cover OMAP4: mux: Add the OMAP4430 ES1 support
Hi,
Upon popular request, here is the series that apparently some people were expected for some time :-)
Only ES1 is supported for the moment, ES2 will come soon (if not today, probably on Monday). 95% of the mux is similar but due to the replacement of some IP (unipro),
we do have a couple of differences.
I have added the complete mux dump in sdp4430 board file, just as a starting point, in order to start getting rid of the X-loader mux settings.
For the moment I2C device init is the only user of the omap_mux_init_signal, at least on OMAP4.
That removed the warning we have at the moment:
mux: Could not set signal i2c2_scl
mux: Could not set signal i2c2_sda
mux: Could not set signal i2c3_scl
mux: Could not set signal i2c3_sda
mux: Could not set signal i2c4_scl
mux: Could not set signal i2c4_sda
I hope that for long term, driver guys will move that to the proper device init file.
I removed as well the access to low level functions, because even if this is needed by some driver (TBC), I don't think it is safe to expose such low level accessor. We should probably add something for driver that need to dynamically modify the mux settings at runtime. For example, we can keep the mux data for pins that might be modified later, like you did for GPIOs.
I tested it on OMAP4430 PAB & SDP and Santosh did some test with omap3_defconfig on OMAP3430 and OMAP4430 SDP.
patches are based on mainline 2.6.36-rc5 and located here:git://gitorious.org/omap-pm/linux.git ctrl-wip/mux-omap4
Regards,
Benoit
Benoit Cousson (5):
OMAP: mux: Add support for control module split in several partitions
OMAP: mux: Make low level function private
OMAP4: mux: Add data for OMAP4430 ES1
OMAP4: mux: Select CBL package for SDP4430 with ES1
OMAP4: mux: Temporary initial SDP4430 mux settings
arch/arm/mach-omap2/Kconfig | 4 + arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/board-4430sdp.c | 389 ++++++++++++++ arch/arm/mach-omap2/mux.c | 133 ++++-- arch/arm/mach-omap2/mux.h | 67 ++- arch/arm/mach-omap2/mux2420.c | 22 +- arch/arm/mach-omap2/mux2430.c | 22 +- arch/arm/mach-omap2/mux34xx.c | 18 +- arch/arm/mach-omap2/mux44xx.c | 944 +++++++++++++++++++++++++++++++++++ arch/arm/mach-omap2/mux44xx.h | 278 ++++++++++ 10 files changed, 1791 insertions(+), 87 deletions(-) create mode 100644 arch/arm/mach-omap2/mux44xx.c create mode 100644 arch/arm/mach-omap2/mux44xx.h
RFC 1/5 OMAP: mux: Add support for control module split in several partitions
Starting on OMAP4, the pin mux configuration is located in two different partitions of the control module (CODE_PAD and WKUP_PAD). The first one is inside the core power domain whereas the second one is inside the wakeup.
Since each partition has a different physical base address, an ID is added for each mux entry in order to identify the proper partition and thus the correct base address.
--- arch/arm/mach-omap2/mux.c | 131 ++++++++++++++++++++++++++-------------- arch/arm/mach-omap2/mux.h | 44 +++++++++++--- arch/arm/mach-omap2/mux2420.c | 22 +++++-- arch/arm/mach-omap2/mux2430.c | 22 +++++-- arch/arm/mach-omap2/mux34xx.c | 18 +++++- 5 files changed, 165 insertions(+), 72 deletions(-)
arch/arm/mach-omap2/mux.c +85 -46
@@ -1,10 +1,10 @@/* * linux/arch/arm/mach-omap2/mux.c * -* OMAP2 and OMAP3 pin multiplexing configurations +* OMAP2, OMAP3 and OMAP4 pin multiplexing configurations * -* Copyright (C) 2004 - 2008 Texas Instruments Inc. -* Copyright (C) 2003 - 2008 Nokia Corporation +* Copyright (C) 2004 - 2010 Texas Instruments Inc. +* Copyright (C) 2003 - 2010 Nokia Corporation * * Written by Tony Lindgren *
@@ -43,26 +43,32 @@#define OMAP_MUX_BASE_OFFSET 0x30/* Offset from CTRL_BASE */ #define OMAP_MUX_BASE_SZ 0x5ca#define MUXABLE_GPIO_MODE3 BIT(0) +#define MAX_PARTITIONS_NR 2struct omap_mux_entry {struct omap_mux mux;struct list_head node; }; -static unsigned long mux_phys; -static void __iomem *mux_base;static u8 omap_mux_flags; -u16 omap_mux_read (u16 reg) +static struct mux_partition mux_partitions[MAX_PARTITIONS_NR ]; +static u32 mux_partitions_cnt; + +u16 omap_mux_read (u16 reg,u8 id) { +void __iomem *mux_base = mux_partitions[id].base; +if (cpu_is_omap24xx ())return __raw_readb (mux_base + reg);else return __raw_readw (mux_base + reg); } -void omap_mux_write (u16 val,u16 reg) +void omap_mux_write (u16 val,u16 reg,u8 id) { +void __iomem *mux_base = mux_partitions[id].base; +if (cpu_is_omap24xx ())__raw_writeb (val, mux_base + reg);else
@@ -71,8 +77,9 @@ void omap_mux_write(u16 val, u16 reg)void omap_mux_write_array (struct omap_board_mux *board_mux) { -while (board_mux->reg_offset !=OMAP_MUX_TERMINATOR ) { -omap_mux_write (board_mux->value, board_mux->reg_offset); +while (board_mux->reg_offset !=OMAP_MUX_TERMINATOR ) { +omap_mux_write (board_mux->value, board_mux->reg_offset, + board_mux->id); board_mux++; } }
@@ -114,7 +121,7 @@ int __init omap_mux_init_gpio(int gpio, int val)return -EINVAL ; } - old_mode =omap_mux_read (gpio_mux->reg_offset); + old_mode =omap_mux_read (gpio_mux->reg_offset, gpio_mux->id); mux_mode = val & ~(OMAP_MUX_NR_MODES -1 );if (omap_mux_flags &MUXABLE_GPIO_MODE3 ) mux_mode |=OMAP_MUX_MODE3 ;
@@ -122,7 +129,7 @@ int __init omap_mux_init_gpio(int gpio, int val) mux_mode |=OMAP_MUX_MODE4 ;pr_debug ("mux: Setting signal %s.gpio%i 0x%04x -> 0x%04x\n" , gpio_mux->muxnames[0 ], gpio, old_mode, mux_mode); -omap_mux_write (mux_mode, gpio_mux->reg_offset); +omap_mux_write (mux_mode, gpio_mux->reg_offset, gpio_mux->id);return 0 ; }
@@ -160,12 +167,12 @@ int __init omap_mux_init_signal(char *muxname, int val)u16 old_mode;u16 mux_mode; - old_mode =omap_mux_read (m->reg_offset); + old_mode =omap_mux_read (m->reg_offset, m->id); mux_mode = val | i;pr_debug ("mux: Setting signal " "%s.%s 0x%04x -> 0x%04x\n" , m0_entry, muxname, old_mode, mux_mode); -omap_mux_write (mux_mode, m->reg_offset); +omap_mux_write (mux_mode, m->reg_offset, m->id); found++; } }
@@ -194,6 +201,17 @@ int __init omap_mux_init_signal(char *muxname, int val) flags[i] = #mask; \ } +static void omap_mux_decode_id (struct seq_file *s,u8 id) +{ +if (id ==PAD_CORE_ID ) +seq_printf (s,"PAD_CORE_ID" ); +else if (id ==PAD_WKUP_ID ) +seq_printf (s,"PAD_WKUP_ID" ); +else +seq_printf (s,"INVALID" ); + +} +/* REVISIT: Add checking for non-optimal mux settings */ static inline void omap_mux_decode (struct seq_file *s,u16 val) {
@@ -249,7 +267,7 @@ static inline void omap_mux_decode(struct seq_file *s, u16 val) }while (i-- >0 ); } -#define OMAP_MUX_DEFNAME_LEN 16 +#define OMAP_MUX_DEFNAME_LEN 32static int omap_mux_dbg_board_show (struct seq_file *s,void *unused) {
@@ -273,13 +291,18 @@ static int omap_mux_dbg_board_show(struct seq_file *s, void *unused) } m0_def[i] =toupper (m0_name[i]); } - val =omap_mux_read (m->reg_offset); + val =omap_mux_read (m->reg_offset, m->id); mode = val &OMAP_MUX_MODE7 ; - -seq_printf (s,"OMAP%i_MUX(%s, " , -cpu_is_omap34xx () ?3 :0 , m0_def); +if (cpu_is_omap44xx ()) { +seq_printf (s,"OMAP4_MUX(%s, " , m0_def); +omap_mux_decode_id (s, m->id); +seq_printf (s,", " ); + }else { +seq_printf (s,"OMAP%i_MUX(%s, " , +cpu_is_omap34xx () ?3 :0 , m0_def); + }omap_mux_decode (s, val); -seq_printf (s,"),\n" ); +seq_printf (s,"),\t/* %s */\n" , m->muxnames[mode]); }return 0 ;
@@ -303,8 +326,9 @@ static int omap_mux_dbg_signal_show(struct seq_file *s, void *unused)const char *none ="NA" ;u16 val;int mode; +unsigned long mux_phys = mux_partitions[m->id].phys; - val =omap_mux_read (m->reg_offset); + val =omap_mux_read (m->reg_offset, m->id); mode = val &OMAP_MUX_MODE7 ; seq_printf(s, "name: %s.%s (0x%08lx/0x%03x = 0x%04x), b %s, t %s\n",
@@ -359,7 +383,7 @@ static ssize_t omap_mux_dbg_signal_write(struct file *file, seqf = file->private_data; m = seqf->private; -omap_mux_write ((u16 )val, m->reg_offset); +omap_mux_write ((u16 )val, m->reg_offset, m->id); *ppos += count;return count;
@@ -426,7 +450,7 @@ static int __init omap_mux_late_init(void)list_for_each_entry_safe (e, tmp, &muxmodes, node) {struct omap_mux *m = &e->mux; -u16 mode =omap_mux_read (m->reg_offset); +u16 mode =omap_mux_read (m->reg_offset, m->id);if (OMAP_MODE_GPIO (mode))continue ;
@@ -593,48 +617,48 @@ free:#endif /* CONFIG_OMAP_MUX */ -static u16 omap_mux_get_by_gpio (int gpio) +static struct omap_mux *omap_mux_get_by_gpio (int gpio) {struct omap_mux_entry *e; -u16 offset =OMAP_MUX_TERMINATOR ; +struct omap_mux *ret =NULL ;list_for_each_entry (e, &muxmodes, node) {struct omap_mux *m = &e->mux;if (m->gpio == gpio) { - offset = m->reg_offset; + ret = m;break ; } } -return offset; +return ret; }/* Needed for dynamic muxing of GPIO pins for off-idle */ u16 omap_mux_get_gpio (int gpio) { -u16 offset; +struct omap_mux *m; - offset =omap_mux_get_by_gpio (gpio); -if (offset ==OMAP_MUX_TERMINATOR ) { + m =omap_mux_get_by_gpio (gpio); +if (!m || m->reg_offset ==OMAP_MUX_TERMINATOR ) {pr_err ("mux: Could not get gpio%i\n" , gpio); -return offset; +return OMAP_MUX_TERMINATOR ; } -return omap_mux_read (offset); +return omap_mux_read (m->reg_offset, m->id); }/* Needed for dynamic muxing of GPIO pins for off-idle */ void omap_mux_set_gpio (u16 val,int gpio) { -u16 offset; +struct omap_mux *m; - offset =omap_mux_get_by_gpio (gpio); -if (offset ==OMAP_MUX_TERMINATOR ) { + m =omap_mux_get_by_gpio (gpio); +if (!m || m->reg_offset ==OMAP_MUX_TERMINATOR ) {pr_err ("mux: Could not set gpio%i\n" , gpio);return ; } -omap_mux_write (val, offset); +omap_mux_write (val, m->reg_offset, m->id); }static struct omap_mux *__init omap_mux_list_add (struct omap_mux *src)
@@ -727,22 +751,31 @@ static void omap_mux_init_signals(struct omap_board_mux *board_mux)#endif -int __init omap_mux_init (u32 mux_pbase,u32 mux_size, -struct omap_mux *superset, -struct omap_mux *package_subset, -struct omap_board_mux *board_mux, -struct omap_ball *package_balls) +int __init omap_mux_init (struct mux_partition *partitions,u32 partitions_cnt, +struct omap_mux *superset, +struct omap_mux *package_subset, +struct omap_board_mux *board_mux, +struct omap_ball *package_balls) { -if (mux_base) +int i; + +if (partitions_cnt ==0 || partitions_cnt >MAX_PARTITIONS_NR )return -EBUSY ; - mux_phys = mux_pbase; - mux_base =ioremap (mux_pbase, mux_size); -if (!mux_base) { -pr_err ("mux: Could not ioremap\n" ); -return -ENODEV ; +for (i =0 ; i < partitions_cnt; i++) { + mux_partitions[i].size = partitions[i].size; + mux_partitions[i].phys = partitions[i].phys; + mux_partitions[i].base =ioremap (partitions[i].phys, + partitions[i].size); +if (!mux_partitions[i].base) { +pr_err ("mux: Could not ioremap on partition: " +"%d at 0x%08x\n" , i, partitions[i].phys); + goto unmap; + } } + mux_partitions_cnt = partitions_cnt; +if (cpu_is_omap24xx ()) omap_mux_flags =MUXABLE_GPIO_MODE3 ;
@@ -751,5 +784,11 @@ int __init omap_mux_init(u32 mux_pbase, u32 mux_size,omap_mux_init_signals (board_mux);return 0 ; + +unmap: +for (i--; i >=0 ; i--) +iounmap (mux_partitions[i].base); + +return -ENODEV ; }
arch/arm/mach-omap2/mux.h +34 -10
104 lines not on this page · raw message
arch/arm/mach-omap2/mux2420.c +16 -6
@@ -14,19 +14,21 @@#ifdef CONFIG_OMAP_MUX -#define _OMAP2420_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ +#define _OMAP2420_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ { \ .reg_offset = (OMAP2420_CONTROL_PADCONF_##M0##_OFFSET), \ .gpio = (g), \ .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \ + .id = (PAD_CORE_ID), \ }#else -#define _OMAP2420_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ +#define _OMAP2420_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ { \ .reg_offset = (OMAP2420_CONTROL_PADCONF_##M0##_OFFSET), \ .gpio = (g), \ + .id = (PAD_CORE_ID), \ }#endif
@@ -35,6 +37,7 @@ { \ .reg_offset = (OMAP2420_CONTROL_PADCONF_##M0##_OFFSET), \ .balls = { bb, bt }, \ + .id = (PAD_CORE_ID), \ }/*
@@ -667,6 +670,13 @@ struct omap_ball __initdata omap2420_pop_ball[] = {#define omap2420_pop_ball NULL#endif +static __initdata struct mux_partition omap2420_mux_partitions[] = { + [PAD_CORE_ID ] = { + .phys =OMAP2420_CONTROL_PADCONF_MUX_PBASE , + .size =OMAP2420_CONTROL_PADCONF_MUX_SIZE , + }, +}; +int __init omap2420_mux_init (struct omap_board_mux *board_subset,int flags) {struct omap_ball *package_balls =NULL ;
@@ -681,8 +691,8 @@ int __init omap2420_mux_init(struct omap_board_mux *board_subset, int flags)pr_warning ("mux: No ball data available for omap2420 package\n" ); } -return omap_mux_init (OMAP2420_CONTROL_PADCONF_MUX_PBASE , -OMAP2420_CONTROL_PADCONF_MUX_SIZE , - omap2420_muxmodes,NULL , board_subset, - package_balls); +return omap_mux_init (omap2420_mux_partitions, +ARRAY_SIZE (omap2420_mux_partitions), + omap2420_muxmodes,NULL , board_subset, + package_balls); }
arch/arm/mach-omap2/mux2430.c +16 -6
@@ -14,19 +14,21 @@#ifdef CONFIG_OMAP_MUX -#define _OMAP2430_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ +#define _OMAP2430_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ { \ .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \ .gpio = (g), \ .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \ + .id = (PAD_CORE_ID), \ }#else -#define _OMAP2430_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ +#define _OMAP2430_MUXENTRY (M0 , g, m0, m1, m2, m3, m4, m5, m6, m7) \ { \ .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \ .gpio = (g), \ + .id = (PAD_CORE_ID), \ }#endif
@@ -35,6 +37,7 @@ { \ .reg_offset = (OMAP2430_CONTROL_PADCONF_##M0##_OFFSET), \ .balls = { bb, bt }, \ + .id = (PAD_CORE_ID), \ }/*
@@ -772,6 +775,13 @@ struct omap_ball __initdata omap2430_pop_ball[] = {#define omap2430_pop_ball NULL#endif +static __initdata struct mux_partition omap2430_mux_partitions[] = { + [PAD_CORE_ID ] = { + .phys =OMAP2430_CONTROL_PADCONF_MUX_PBASE , + .size =OMAP2430_CONTROL_PADCONF_MUX_SIZE , + }, +}; +int __init omap2430_mux_init (struct omap_board_mux *board_subset,int flags) {struct omap_ball *package_balls =NULL ;
@@ -784,8 +794,8 @@ int __init omap2430_mux_init(struct omap_board_mux *board_subset, int flags)pr_warning ("mux: No ball data available for omap2420 package\n" ); } -return omap_mux_init (OMAP2430_CONTROL_PADCONF_MUX_PBASE , -OMAP2430_CONTROL_PADCONF_MUX_SIZE , - omap2430_muxmodes,NULL , board_subset, - package_balls); +return omap_mux_init (omap2430_mux_partitions, +ARRAY_SIZE (omap2430_mux_partitions), + omap2430_muxmodes,NULL , board_subset, + package_balls); }
arch/arm/mach-omap2/mux34xx.c +14 -4
@@ -19,6 +19,7 @@ .reg_offset = (OMAP3_CONTROL_PADCONF_##M0##_OFFSET), \ .gpio = (g), \ .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \ + .id = (PAD_CORE_ID), \ }#else
@@ -27,6 +28,7 @@ { \ .reg_offset = (OMAP3_CONTROL_PADCONF_##M0##_OFFSET), \ .gpio = (g), \ + .id = (PAD_CORE_ID), \ } #endif
@@ -35,6 +37,7 @@ { \ .reg_offset = (OMAP3_CONTROL_PADCONF_##M0##_OFFSET), \ .balls = { bb, bt }, \ + .id = (PAD_CORE_ID), \ }/*
@@ -2026,6 +2029,13 @@ struct omap_ball __initdata omap36xx_cbp_ball[] = {#define omap36xx_cbp_ball NULL#endif +static __initdata struct mux_partition omap3_mux_partitions[] = { + [PAD_CORE_ID ] = { + .phys =OMAP3_CONTROL_PADCONF_MUX_PBASE , + .size =OMAP3_CONTROL_PADCONF_MUX_SIZE , + }, +}; +int __init omap3_mux_init (struct omap_board_mux *board_subset,int flags) {struct omap_mux *package_subset;
@@ -2053,8 +2063,8 @@ int __init omap3_mux_init(struct omap_board_mux *board_subset, int flags)return -EINVAL ; } -return omap_mux_init (OMAP3_CONTROL_PADCONF_MUX_PBASE , -OMAP3_CONTROL_PADCONF_MUX_SIZE , - omap3_muxmodes, package_subset, board_subset, - package_balls); +return omap_mux_init (omap3_mux_partitions, +ARRAY_SIZE (omap3_mux_partitions), + omap3_muxmodes, package_subset, board_subset, + package_balls); }
Signature · 1 line
1.6.0.4
RFC 2/5 OMAP: mux: Make low level function private
In reply to Benoit Coussonomap_mux_read / omap_mux_write should not be accessed directly outside the mux framework.
Do we really have use case that require dynamic mux change beside GPIO?
--- arch/arm/mach-omap2/mux.c | 4 ++-- arch/arm/mach-omap2/mux.h | 18 ------------------ 2 files changed, 2 insertions(+), 20 deletions(-)
arch/arm/mach-omap2/mux.c +2 -2
@@ -55,7 +55,7 @@ static u8 omap_mux_flags;static struct mux_partition mux_partitions[MAX_PARTITIONS_NR ];static u32 mux_partitions_cnt; -u16 omap_mux_read (u16 reg,u8 id) +static u16 omap_mux_read (u16 reg,u8 id) {void __iomem *mux_base = mux_partitions[id].base;
@@ -65,7 +65,7 @@ u16 omap_mux_read(u16 reg, u8 id)return __raw_readw (mux_base + reg); } -void omap_mux_write (u16 val,u16 reg,u8 id) +static void omap_mux_write (u16 val,u16 reg,u8 id) {void __iomem *mux_base = mux_partitions[id].base;
arch/arm/mach-omap2/mux.h +0 -18
@@ -173,24 +173,6 @@ u16 omap_mux_get_gpio(int gpio);void omap_mux_set_gpio (u16 val,int gpio);/** -* omap_mux_read() - read mux register -* @mux_offset: Offset of the mux register -* @id: identifier of the control module partition -* -*/ -u16 omap_mux_read (u16 mux_offset,u8 id); - -/** -* omap_mux_write() - write mux register -* @val: New mux register value -* @mux_offset: Offset of the mux register -* @id: identifier of the control module partition -* -* This should be only needed for dynamic remuxing of non-gpio signals. -*/ -void omap_mux_write (u16 val,u16 mux_offset,u8 id); - -/** * omap_mux_write_array() - write an array of mux registers * @board_mux: Array of mux registers terminated by MAP_MUX_TERMINATOR *
Signature · 1 line
1.6.0.4
RFC 3/5 OMAP4: mux: Add data for OMAP4430 ES1
In reply to Benoit CoussonAdd data for OMAP4430 generated from HW pinout & register database.
--- arch/arm/mach-omap2/Kconfig | 3 + arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/mux.c | 2 +- arch/arm/mach-omap2/mux.h | 13 + arch/arm/mach-omap2/mux44xx.c | 944 +++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-omap2/mux44xx.h | 278 ++++++++++++ 6 files changed, 1240 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-omap2/mux44xx.c create mode 100644 arch/arm/mach-omap2/mux44xx.h
arch/arm/mach-omap2/Kconfig +3 -0
@@ -84,6 +84,9 @@ config OMAP_PACKAGE_CUS config OMAP_PACKAGE_CBP bool +config OMAP_PACKAGE_CBL + bool + comment "OMAP Board Type" depends on ARCH_OMAP2PLUS
arch/arm/mach-omap2/Makefile +1 -0
@@ -41,6 +41,7 @@ AFLAGS_sram34xx.o :=-Wa,-march=armv7-a obj-$(CONFIG_ARCH_OMAP2420) += mux2420.o obj-$(CONFIG_ARCH_OMAP2430) += mux2430.o obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o +obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o # SMS/SDRC obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o
arch/arm/mach-omap2/mux.c +1 -1
@@ -776,7 +776,7 @@ int __init omap_mux_init(struct mux_partition *partitions, u32 partitions_cnt, mux_partitions_cnt = partitions_cnt; -if (cpu_is_omap24xx ()) +if (cpu_is_omap24xx () ||cpu_is_omap44xx ()) omap_mux_flags =MUXABLE_GPIO_MODE3 ;omap_mux_init_package (superset, package_subset, package_balls);
arch/arm/mach-omap2/mux.h +13 -0
@@ -10,6 +10,7 @@#include "mux2420.h" #include "mux2430.h" #include "mux34xx.h" +#include "mux44xx.h" #define OMAP_MUX_TERMINATOR 0xffff
@@ -37,6 +38,9 @@#define OMAP_OFF_PULL_UP (1 << 13)#define OMAP_WAKEUP_EN (1 << 14) +/* 44xx specific mux bit defines */ +#define OMAP_WAKEUP_EVENT (1 << 15) +/* Active pin states */ #define OMAP_PIN_OUTPUT 0#define OMAP_PIN_INPUT OMAP_INPUT_EN
@@ -58,6 +62,8 @@/* Flags for omap_mux_init */ #define OMAP_PACKAGE_MASK 0xffff +#define OMAP_PACKAGE_CBS 8/* 547-pin 0.40 0.40 */ +#define OMAP_PACKAGE_CBL 7/* 547-pin 0.40 0.40 */ #define OMAP_PACKAGE_CBP 6/* 515-pin 0.40 0.50 */ #define OMAP_PACKAGE_CUS 5/* 423-pin 0.65 */ #define OMAP_PACKAGE_CBB 4/* 515-pin 0.40 0.50 */
@@ -202,6 +208,13 @@ int omap2430_mux_init(struct omap_board_mux *board_mux, int flags);int omap3_mux_init (struct omap_board_mux *board_mux,int flags);/** +* omap4_mux_init() - initialize mux system with board specific set +* @board_mux: Board specific mux table +* @flags: OMAP package type used for the board +*/ +int omap4_mux_init (struct omap_board_mux *board_mux,int flags); + +/** * omap_mux_init - private mux init function, do not call */ int omap_mux_init(struct mux_partition *partitions, u32 partitions_cnt,
arch/arm/mach-omap2/mux44xx.c new file +944 -0
944 lines not on this page · raw message
arch/arm/mach-omap2/mux44xx.h new file +278 -0
278 lines not on this page · raw message
Signature · 1 line
1.6.0.4
RFC 4/5 OMAP4: mux: Select CBL package for SDP4430 with ES1
In reply to Benoit Cousson--- arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/board-4430sdp.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/Kconfig +1 -0
@@ -240,6 +240,7 @@ config MACH_OMAP_4430SDP bool "OMAP 4430 SDP board" default y depends on ARCH_OMAP4 + select OMAP_PACKAGE_CBL config MACH_OMAP4_PANDA bool "OMAP4 Panda Board"
arch/arm/mach-omap2/board-4430sdp.c +12 -0
@@ -35,6 +35,8 @@#include <plat/timer-gp.h> #include <plat/usb.h> #include <plat/mmc.h> + +#include "mux.h" #include "hsmmc.h" #define ETH_KS8851_IRQ 34
@@ -426,10 +428,20 @@ static int __init omap4_i2c_init(void)omap_register_i2c_bus (4 ,400 ,NULL ,0 );return 0 ; } + +#ifdef CONFIG_OMAP_MUX +static struct omap_board_mux board_mux[]__initdata = { + { .reg_offset =OMAP_MUX_TERMINATOR }, +}; +#else +#define board_mux NULL +#endif +static void __init omap_4430sdp_init (void ) {int status; +omap4_mux_init (board_mux,OMAP_PACKAGE_CBL );omap4_i2c_init ();platform_add_devices (sdp4430_devices,ARRAY_SIZE (sdp4430_devices));omap_serial_init ();
Signature · 1 line
1.6.0.4
RFC 5/5 OMAP4: mux: Temporary initial SDP4430 mux settings
In reply to Benoit CoussonMux settings will have to go in per device init file for the long term. Until someone does it, apply the same mux settings than X-loader, minus the OFF mode.
--- arch/arm/mach-omap2/board-4430sdp.c | 377 +++++++++++++++++++++++++++++++++++ 1 files changed, 377 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-4430sdp.c +377 -0
@@ -431,6 +431,383 @@ static int __init omap4_i2c_init(void)#ifdef CONFIG_OMAP_MUX static struct omap_board_mux board_mux[]__initdata = { +/* Audio backend settings */ +OMAP4_MUX (ABE_CLKS ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_DMIC_CLK1 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_DMIC_DIN1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_DMIC_DIN2 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_DMIC_DIN3 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +/* abe_slimbus1_clock */ +OMAP4_MUX (ABE_MCBSP1_CLKX ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE1 ), +/* abe_slimbus1_data */ +OMAP4_MUX (ABE_MCBSP1_DR ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE1 ), +OMAP4_MUX (ABE_MCBSP1_DX ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_MCBSP1_FSX ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_MCBSP2_CLKX ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_MCBSP2_DR ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_MCBSP2_DX ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_MCBSP2_FSX ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_PDM_DL_DATA ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_PDM_FRAME ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_PDM_LB_CLK ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (ABE_PDM_UL_DATA ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), + +OMAP4_MUX (CAM_SHUTTER ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CAM_STROBE ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI21_DX0 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI21_DX1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI21_DX2 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +/* safe_mode */ +OMAP4_MUX (CSI21_DX3 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE7 ), +/* safe_mode */ +OMAP4_MUX (CSI21_DX4 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE7 ), +OMAP4_MUX (CSI21_DY0 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI21_DY1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI21_DY2 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +/* safe_mode */ +OMAP4_MUX (CSI21_DY3 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE7 ), +/* safe_mode */ +OMAP4_MUX (CSI21_DY4 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE7 ), +OMAP4_MUX (CSI22_DX0 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI22_DX1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI22_DY0 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (CSI22_DY1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +/* +* OMAP4_MUX(DPM_EMU0, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(DPM_EMU1, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(DPM_EMU2, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +*/ +/* dsi1_te0 */ +OMAP4_MUX (C2C_DATA12 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* dsi2_te0 */ +OMAP4_MUX (C2C_DATA14 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* dispc2_data10 */ +OMAP4_MUX (DPM_EMU3 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data9 */ +OMAP4_MUX (DPM_EMU4 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data16 */ +OMAP4_MUX (DPM_EMU5 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data17 */ +OMAP4_MUX (DPM_EMU6 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_hsync */ +OMAP4_MUX (DPM_EMU7 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_pclk */ +OMAP4_MUX (DPM_EMU8 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_vsync */ +OMAP4_MUX (DPM_EMU9 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_de */ +OMAP4_MUX (DPM_EMU10 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data8 */ +OMAP4_MUX (DPM_EMU11 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data7 */ +OMAP4_MUX (DPM_EMU12 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data6 */ +OMAP4_MUX (DPM_EMU13 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data5 */ +OMAP4_MUX (DPM_EMU14 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data4 */ +OMAP4_MUX (DPM_EMU15 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data3 */ +OMAP4_MUX (DPM_EMU16 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data2 */ +OMAP4_MUX (DPM_EMU17 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data1 */ +OMAP4_MUX (DPM_EMU18 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data0 */ +OMAP4_MUX (DPM_EMU19 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data20 */ +OMAP4_MUX (USBB2_ULPITLL_DAT0 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data19 */ +OMAP4_MUX (USBB2_ULPITLL_DAT1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data18 */ +OMAP4_MUX (USBB2_ULPITLL_DAT2 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data15 */ +OMAP4_MUX (USBB2_ULPITLL_DAT3 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data14 */ +OMAP4_MUX (USBB2_ULPITLL_DAT4 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data13 */ +OMAP4_MUX (USBB2_ULPITLL_DAT5 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data12 */ +OMAP4_MUX (USBB2_ULPITLL_DAT6 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data11 */ +OMAP4_MUX (USBB2_ULPITLL_DAT7 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data22 */ +OMAP4_MUX (USBB2_ULPITLL_DIR ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data21 */ +OMAP4_MUX (USBB2_ULPITLL_NXT ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), +/* dispc2_data23 */ +OMAP4_MUX (USBB2_ULPITLL_STP ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE5 ), + +/* sys_drm_msecure */ +OMAP4_MUX (FREF_CLK0_OUT ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE2 ), +/* +* OMAP4_MUX(FREF_CLK1_OUT, PAD_CORE_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_CLK2_OUT, PAD_CORE_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_CLK3_OUT, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_CLK3_REQ, PAD_WKUP_ID, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_CLK4_OUT, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_CLK4_REQ, PAD_WKUP_ID, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_CLK_IOREQ, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_SLICER_IN, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(FREF_XTAL_IN, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +*/ +/* sdmmc2_dat0 */ +OMAP4_MUX (GPMC_AD0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat1 */ +OMAP4_MUX (GPMC_AD1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat2 */ +OMAP4_MUX (GPMC_AD2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat3 */ +OMAP4_MUX (GPMC_AD3 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat4 */ +OMAP4_MUX (GPMC_AD4 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat5 */ +OMAP4_MUX (GPMC_AD5 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat6 */ +OMAP4_MUX (GPMC_AD6 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_dat7 */ +OMAP4_MUX (GPMC_AD7 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_clk */ +OMAP4_MUX (GPMC_NOE ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* sdmmc2_cmd */ +OMAP4_MUX (GPMC_NWE ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), + +/* gpio_32 */ +OMAP4_MUX (GPMC_AD8 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_33 */ +OMAP4_MUX (GPMC_AD9 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_55 */ +OMAP4_MUX (GPMC_CLK ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_56 */ +OMAP4_MUX (GPMC_NADV_ALE ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_59 */ +OMAP4_MUX (GPMC_NBE0_CLE ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE3 ), +/* gpio_60 */ +OMAP4_MUX (GPMC_NBE1 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_50 */ +OMAP4_MUX (GPMC_NCS0 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_51 */ +OMAP4_MUX (GPMC_NCS1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_52 */ +OMAP4_MUX (GPMC_NCS2 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_53 */ +OMAP4_MUX (GPMC_NCS3 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_54 */ +OMAP4_MUX (GPMC_NWP ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_61 */ +OMAP4_MUX (GPMC_WAIT0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_62 */ +OMAP4_MUX (GPMC_WAIT1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_83 */ +OMAP4_MUX (CAM_GLOBALRESET ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_100 */ +OMAP4_MUX (C2C_DATA11 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_102 */ +OMAP4_MUX (C2C_DATA13 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_104 */ +OMAP4_MUX (C2C_DATA15 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), + +OMAP4_MUX (HDMI_CEC ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (HDMI_DDC_SCL ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (HDMI_DDC_SDA ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (HDMI_HPD ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +/* +* Done during device init +* +* OMAP4_MUX(I2C1_SCL, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C1_SDA, PAD_CORE_ID, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C2_SCL, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C2_SDA, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C3_SCL, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C3_SDA, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C4_SCL, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(I2C4_SDA, PAD_CORE_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +*/ + +/* +* Don't touch the JTAG pins +* +* OMAP4_MUX(JTAG_NTRST, PAD_WKUP_ID, OMAP_PIN_INPUT_PULLDOWN | OMAP_MUX_MODE0), +* OMAP4_MUX(JTAG_RTCK, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(JTAG_TCK, PAD_WKUP_ID, OMAP_PIN_INPUT_PULLDOWN | OMAP_MUX_MODE0), +* OMAP4_MUX(JTAG_TDI, PAD_WKUP_ID, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), +* OMAP4_MUX(JTAG_TDO, PAD_WKUP_ID, OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), +* OMAP4_MUX(JTAG_TMS_TMSC, PAD_WKUP_ID, OMAP_PIN_INPUT | OMAP_MUX_MODE0), +*/ +OMAP4_MUX (MCSPI1_CLK ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI1_CS0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI1_CS1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI1_SIMO ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI1_SOMI ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI4_CLK ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI4_CS0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI4_SIMO ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (MCSPI4_SOMI ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), + +OMAP4_MUX (SDMMC1_CLK ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_CMD ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT3 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT4 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT5 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT6 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC1_DAT7 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC5_CLK ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC5_CMD ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC5_DAT0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC5_DAT1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC5_DAT2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SDMMC5_DAT3 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), + +OMAP4_MUX (SIM_CD ,PAD_WKUP_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SIM_CLK ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (SIM_IO ,PAD_WKUP_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (SIM_PWRCTRL ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (SIM_RESET ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), + +OMAP4_MUX (SR_SCL ,PAD_WKUP_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SR_SDA ,PAD_WKUP_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SYS_32K ,PAD_WKUP_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), + +/* gpio_34 */ +OMAP4_MUX (GPMC_AD10 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_35 */ +OMAP4_MUX (GPMC_AD11 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_36 */ +OMAP4_MUX (GPMC_AD12 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_37 */ +OMAP4_MUX (GPMC_AD13 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_38 */ +OMAP4_MUX (GPMC_AD14 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_39 */ +OMAP4_MUX (GPMC_AD15 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_40 */ +OMAP4_MUX (GPMC_A16 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_41 */ +OMAP4_MUX (GPMC_A17 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_44 */ +OMAP4_MUX (GPMC_A20 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_45 */ +OMAP4_MUX (GPMC_A21 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_48 */ +OMAP4_MUX (GPMC_A24 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_49 */ +OMAP4_MUX (GPMC_A25 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_127 */ +OMAP4_MUX (HDQ_SIO ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_139 */ +OMAP4_MUX (MCSPI1_CS2 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_140 */ +OMAP4_MUX (MCSPI1_CS3 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE3 ), +/* gpio_157 */ +OMAP4_MUX (USBB2_ULPITLL_CLK ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_169 */ +OMAP4_MUX (USBB2_HSIC_DATA ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_170 */ +OMAP4_MUX (USBB2_HSIC_STROBE ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_184 */ +OMAP4_MUX (SYS_BOOT0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE3 ), +/* gpio_185 */ +OMAP4_MUX (SYS_BOOT1 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_186 */ +OMAP4_MUX (SYS_BOOT2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE3 ), +/* gpio_187 */ +OMAP4_MUX (SYS_BOOT3 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_188 */ +OMAP4_MUX (SYS_BOOT4 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), +/* gpio_189 */ +OMAP4_MUX (SYS_BOOT5 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE3 ), +/* gpio_wk9 */ +OMAP4_MUX (SYS_BOOT6 ,PAD_WKUP_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_wk10 */ +OMAP4_MUX (SYS_BOOT7 ,PAD_WKUP_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE3 ), +/* gpio_wk29 */ +OMAP4_MUX (SYS_PWRON_RESET_OUT ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE3 ), + +OMAP4_MUX (SYS_NIRQ1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SYS_NIRQ2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (SYS_NRESPWRON ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (SYS_NRESWARM ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (SYS_PWR_REQ ,PAD_WKUP_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), + +OMAP4_MUX (UART2_CTS ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART2_RTS ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART2_RX ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART2_TX ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART3_CTS_RCTX ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART3_RTS_SD ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART3_RX_IRRX ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART3_TX_IRTX ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART4_RX ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (UART4_TX ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), + +/* kpd_row0 */ +OMAP4_MUX (UNIPRO_RX0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_row2 */ +OMAP4_MUX (UNIPRO_RX1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_row4 */ +OMAP4_MUX (UNIPRO_RX2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_row1 */ +OMAP4_MUX (UNIPRO_RY0 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_row3 */ +OMAP4_MUX (UNIPRO_RY1 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_row5 */ +OMAP4_MUX (UNIPRO_RY2 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_col0 */ +OMAP4_MUX (UNIPRO_TX0 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_col2 */ +OMAP4_MUX (UNIPRO_TX1 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_col4 */ +OMAP4_MUX (UNIPRO_TX2 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_col1 */ +OMAP4_MUX (UNIPRO_TY0 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_col3 */ +OMAP4_MUX (UNIPRO_TY1 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_col5 */ +OMAP4_MUX (UNIPRO_TY2 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_row6 */ +OMAP4_MUX (GPMC_A18 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_row7 */ +OMAP4_MUX (GPMC_A19 ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLUP |OMAP_MUX_MODE1 ), +/* kpd_col6 */ +OMAP4_MUX (GPMC_A22 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), +/* kpd_col7 */ +OMAP4_MUX (GPMC_A23 ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE1 ), + +OMAP4_MUX (USBA0_OTG_CE ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (USBA0_OTG_DM ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (USBA0_OTG_DP ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (USBB1_HSIC_DATA ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (USBB1_HSIC_STROBE ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE0 ), +/* usbb1_ulpiphy_clk */ +OMAP4_MUX (USBB1_ULPITLL_CLK ,PAD_CORE_ID ,OMAP_PIN_INPUT_PULLDOWN |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat0 */ +OMAP4_MUX (USBB1_ULPITLL_DAT0 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat1 */ +OMAP4_MUX (USBB1_ULPITLL_DAT1 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat2 */ +OMAP4_MUX (USBB1_ULPITLL_DAT2 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat3 */ +OMAP4_MUX (USBB1_ULPITLL_DAT3 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat4 */ +OMAP4_MUX (USBB1_ULPITLL_DAT4 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat5 */ +OMAP4_MUX (USBB1_ULPITLL_DAT5 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat6 */ +OMAP4_MUX (USBB1_ULPITLL_DAT6 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dat7 */ +OMAP4_MUX (USBB1_ULPITLL_DAT7 ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_dir */ +OMAP4_MUX (USBB1_ULPITLL_DIR ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_nxt */ +OMAP4_MUX (USBB1_ULPITLL_NXT ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE4 ), +/* usbb1_ulpiphy_stp */ +OMAP4_MUX (USBB1_ULPITLL_STP ,PAD_CORE_ID ,OMAP_PIN_OUTPUT |OMAP_MUX_MODE4 ), +OMAP4_MUX (USBC1_ICUSB_DM ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), +OMAP4_MUX (USBC1_ICUSB_DP ,PAD_CORE_ID ,OMAP_PIN_INPUT |OMAP_MUX_MODE0 ), + { .reg_offset =OMAP_MUX_TERMINATOR }, };#else
Signature · 1 line
1.6.0.4
RE: [RFC 4/5] OMAP4: mux: Select CBL package for SDP4430 with ES1
In reply to Benoit CoussonReview
Quoted 22 lines · Benoit Cousson
Signed-off-by Benoit Cousson <[email protected]>Cc Tony Lindgren <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>--- arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/board-4430sdp.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-)arch/arm/mach-omap2/Kconfig +1
-0@@ -240,6 +240,7 @@ config MACH_OMAP_4430SDP bool "OMAP 4430 SDP board" default y depends on ARCH_OMAP4 + select OMAP_PACKAGE_CBL config MACH_OMAP4_PANDA bool "OMAP4 Panda Board"(quoted diff) +0
-0
b/arch/arm/mach-omap2/board-4430sdp.c
Quoted 22 lines
index 9447644..d087712 100644
arch/arm/mach-omap2/board-4430sdp.c +8
-0@@ -35,6 +35,8 @@#include <plat/timer-gp.h> #include <plat/usb.h> #include <plat/mmc.h> + +#include "mux.h" #include "hsmmc.h" #define ETH_KS8851_IRQ 34@@ -426,10 +428,20 @@ static int __init omap4_i2c_init(void)omap_register_i2c_bus (4 ,400 ,NULL ,0 );return 0 ; } + +#ifdef CONFIG_OMAP_MUX +static struct omap_board_mux board_mux[]__initdata = { + { .reg_offset =OMAP_MUX_TERMINATOR }, +}; +#else
arch/arm/mach-omap2/board-4430sdp.c static int __init omap4_i2c_init(void) · line 446
Quoted 10 lines
arch/arm/mach-omap2/board-4430sdp.c +4
-0+#define board_mux NULL +#endif +static void __init omap_4430sdp_init (void ) {int status; +omap4_mux_init (board_mux,OMAP_PACKAGE_CBL );omap4_i2c_init (); platform_add_devices(sdp4430_devices,
ARRAY_SIZE(sdp4430_devices));
arch/arm/mach-omap2/board-4430sdp.c static int __init omap4_i2c_init(void) · line 447
Quoted 1 line
arch/arm/mach-omap2/board-4430sdp.c +0
-0omap_serial_init ();
Panda uses the same package I believe - I'll double check and update that board file. I'll test this series tomorrow on both boards.
- Anand
Re: [RFC 2/5] OMAP: mux: Make low level function private
In reply to Benoit CoussonQuoted 5 lines · Benoit Cousson
omap_mux_read/omap_mux_writeshould not be accessed directly outside the mux framework.
Do we really have use case that require dynamic mux change beside GPIO?
Only case I can think of is for any workarounds for issues that turn up. No such cases exist today on OMAP3 at least, and none are likely to appear in future (I hope). So your assumption is valid.
- Anand
Quoted 63 lines
Signed-off-by Benoit Cousson <[email protected]>Cc Tony Lindgren <[email protected]>Cc Paul Walmsley <[email protected]>Cc Kevin Hilman <[email protected]>---
arch/arm/mach-omap2/mux.c | 4 ++--arch/arm/mach-omap2/mux.h| 18 ------------------2 files changed, 2 insertions(+), 20 deletions(-)arch/arm/mach-omap2/mux.c +2
-2@@ -55,7 +55,7 @@ static u8 omap_mux_flags; static struct mux_partition mux_partitions[MAX_PARTITIONS_NR]; static u32 mux_partitions_cnt; -u16 omap_mux_read (u16 reg,u8 id) +static u16 omap_mux_read (u16 reg,u8 id) { void __iomem *mux_base = mux_partitions[id].base;@@ -65,7 +65,7 @@ u16 omap_mux_read(u16 reg, u8 id) return __raw_readw(mux_base + reg); } -void omap_mux_write (u16 val,u16 reg,u8 id) +static void omap_mux_write (u16 val,u16 reg,u8 id) { void __iomem *mux_base = mux_partitions[id].base;arch/arm/mach-omap2/mux.h +0
-19@@ -173,24 +173,6 @@ u16 omap_mux_get_gpio(int gpio); void omap_mux_set_gpio(u16 val, int gpio); /** -* omap_mux_read() - read mux register -* @mux_offset: Offset of the mux register -* @id: identifier of the control module partition -* -*/ -u16 omap_mux_read (u16 mux_offset,u8 id); - -/** -* omap_mux_write() - write mux register -* @val: New mux register value -* @mux_offset: Offset of the mux register -* @id: identifier of the control module partition -* -* This should be only needed for dynamic remuxing of non-gpio signals. -*/ -void omap_mux_write (u16 val,u16 mux_offset,u8 id); - -/** * omap_mux_write_array() - write an array of mux registers * @board_mux: Array of mux registers terminated by MAP_MUX_TERMINATOR * -- 1.6.0.4
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: [RFC 3/5] OMAP4: mux: Add data for OMAP4430 ES1
In reply to Benoit CoussonReview
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm/mach-omap2/mux44xx.c
arch/arm/mach-omap2/mux44xx.c line 1
Quoted 6 lines
new file mode 100644
index 0000000..839a905arch/arm/mach-omap2/mux44xx.c new file +1
-0@@ -0,0 +1,944 @@ +\
Stray change?
Re: [RFC 2/5] OMAP: mux: Make low level function private
In reply to Gadiyar, AnandQuoted 11 lines · Anand
Quoted 5 lines · Benoit Cousson
omap_mux_read/omap_mux_writeshould not be accessed directly outside the mux framework.
Do we really have use case that require dynamic mux change beside GPIO?Only case I can think of is for any workarounds for issues that turn up. No such cases exist today on OMAP3 at least, and none are likely to appear in future (I hope). So your assumption is valid.
We have a use-case here - granted the code currently is a complete hack and not something clean enough for the mainline kernel.
We recently rediscovered the USB3320 PHY suspend issue that is in the errata on the OMAP35x platform (Advisory 3.1.1.193) and we came up with a workaround for it (despite the errata saying there isn't any) where essentially we do:
1) Allow the EHCI controller to suspend the PHY as normal
2) Cut the power to the USB host controller using power domains. This resets the logic states in the USB host controller so that it is usable again.
3) Remux all the pins talking to the PHY into GPIO mode
4) Monitor said pins for changes in status to know when a remote wakeup request occurs
5) Remux pins back to USB PHY mode
6) Reenable power to the USB host controller and reinitialize registers
- Tim
RE: [RFC 2/5] OMAP: mux: Make low level function private
Quoted 31 lines
-----Original Message-----
From: Tim Nordell [mailto:[email protected]]
Sent: Saturday, September 25, 2010 5:20 AM
To: Gadiyar, Anand
Cc: Benoit Cousson; [email protected]; Tony Lindgren; Paul Walmsley; Kevin Hilman
Subject: Re: [RFC 2/5] OMAP: mux: Make low level function privateQuoted 1 line · Anand
On Fri, Sep 24, 2010 at 2:45 PM, Benoit Cousson
Quoted 7 lines · <[email protected]> wrote:
Quoted 5 lines
omap_mux_read/omap_mux_writeshould not be accessed directly outside the mux framework.
Do we really have use case that require dynamic mux change beside GPIO?Only case I can think of is for any workarounds for issues
that turn up.
Quoted 3 lines
No such cases exist today on OMAP3 at least, and none are likely to appear in future (I hope). So your assumption is valid.
We have a use-case here - granted the code currently is a complete hack and not something clean enough for the mainline kernel.
We recently rediscovered the USB3320 PHY suspend issue that is in the errata on the OMAP35x platform (Advisory 3.1.1.193) and we came up with a workaround for it (despite the errata saying there isn't any) where essentially we do:
Quoted 9 lines
1) Allow the EHCI controller to suspend the PHY as normal
2) Cut the power to the USB host controller using power domains. This resets the logic states in the USB host controller so that it is usable again.
3) Remux all the pins talking to the PHY into GPIO mode
4) Monitor said pins for changes in status to know when a remote wakeup request occurs
5) Remux pins back to USB PHY mode
6) Reenable power to the USB host controller and reinitialize registers
We've tried this technique before - you still need to re-enumerate after the resume, right? So you might as well just power down the PHY and you should be able to recover.
Ajay Gupta did a lot of work on this - not sure if this worked well. We basically gave up on this interoperability issue and decided to work around it in newer silicon. 3630 ES1.1 and later has suspend-resume working with the SMSC PHY.
- Anand
Tony Lindgren
maintainerRe: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
In reply to Benoit CoussonHi Benoit,
Quoted 7 lines · Benoit Cousson
Starting on OMAP4, the pin mux configuration is located in two different partitions of the control module (
CODE_PADandWKUP_PAD). The first one is inside the core power domain whereas the second one is inside the wakeup.
Since each partition has a different physical base address, an ID is added for each mux entry in order to identify the proper partition and thus the correct base address.
Few comments below..
Quoted 8 lines
/**
* structomap_mux- data for omap mux register offset and it's value
* @reg_offset: mux register offset from the mux base
* @gpio: GPIO number
+ * @id: Partition identifier
* @muxnames: available signal modes for a ball
*/
structomap_mux{
arch/arm/mach-omap2/mux.h line 89
Quoted 6 lines
arch/arm/mach-omap2/mux.h +1
-0u16 reg_offset;u16 gpio; +u8 id;#ifdef CONFIG_OMAP_MUX char *muxnames[OMAP_MUX_NR_MODES ];#ifdef CONFIG_DEBUG_FS
We might want to think a bit more how we want to handle the various partitions for registers.
What do you think of the following:
We could convert u16 reg_offset into u32 reg_phys, and build the ioremap areas based on those ranges.
After ioremap we're copying the data for used pins anyways, so we could write them as virtual addresses.
struct omap_mux {
union mux_reg_union {
u32 reg_phys;
void __iomem *reg_virt;
};
u16 gpio;
#ifdef CONFIG_OMAP_MUX
char *muxnames[OMAP_MUX_NR_MODES];
#ifdef CONFIG_DEBUG_FS
char *balls[OMAP_MUX_NR_SIDES];#endif
#endif
};
This would make the code more generic and simplify some parts of the code. Muxing signals based on the signal name or gpio number would work transparently
Then omapX_mux_init(board_mux, OMAP_PACKAGE_XYZ) would work in a transparent way, but would have to figure out the partition from the define.
If we wanted to use only the offset in the data, we could initialize the various sections separately. But then omapX_mux_init() would have to know the partition number somehow..
Regards,
Tony
Re: [RFC 2/5] OMAP: mux: Make low level function private
In reply to Anand GadiyarQuoted 41 lines · Anand Gadiyar
Quoted 31 lines
-----Original Message-----
From: Tim Nordell [mailto:[email protected]]
Sent: Saturday, September 25, 2010 5:20 AM
To: Gadiyar, Anand
Cc: Benoit Cousson; [email protected]; Tony Lindgren; Paul Walmsley; Kevin Hilman
Subject: Re: [RFC 2/5] OMAP: mux: Make low level function privateQuoted 1 line · Anand
On Fri, Sep 24, 2010 at 2:45 PM, Benoit Cousson
Quoted 7 lines · <[email protected]> wrote:
Quoted 5 lines
omap_mux_read/omap_mux_writeshould not be accessed directly outside the mux framework.
Do we really have use case that require dynamic mux change beside GPIO?Only case I can think of is for any workarounds for issues
that turn up.
Quoted 3 lines
No such cases exist today on OMAP3 at least, and none are likely to appear in future (I hope). So your assumption is valid.
We have a use-case here - granted the code currently is a complete hack and not something clean enough for the mainline kernel.
We recently rediscovered the USB3320 PHY suspend issue that is in the errata on the OMAP35x platform (Advisory 3.1.1.193) and we came up with a workaround for it (despite the errata saying there isn't any) where essentially we do:
Quoted 9 lines
1) Allow the EHCI controller to suspend the PHY as normal
2) Cut the power to the USB host controller using power domains. This resets the logic states in the USB host controller so that it is usable again.
3) Remux all the pins talking to the PHY into GPIO mode
4) Monitor said pins for changes in status to know when a remote wakeup request occurs
5) Remux pins back to USB PHY mode
6) Reenable power to the USB host controller and reinitialize registers
Quoted 8 lines
We've tried this technique before - you still need to re-enumerate after the resume, right? So you might as well just power down the PHY and you should be able to recover.
Ajay Gupta did a lot of work on this - not sure if this worked well. We basically gave up on this interoperability issue and decided to work around it in newer silicon. 3630 ES1.1 and later has suspend-resume working with the SMSC PHY.
So, currently our patch to our local kernel essentially the downstream device is reset-resumed. We needed to be able to support USB suspend with it waking up when a device is plugged into our USB port. Since we allow the PHY to suspend (rather than holding it in reset) and we're monitoring the PHY pins via GPIO we can wake up the USB subsystem when device is plugged into the system.
It works well enough that the USB subsystem comes up immediately after we plug in a device, and that it supports suspension without a device. I've even done some tests where I did a remote wakeup with a HID device (mouse button clicks) and some of the time the device would end up being reenumerated, and sometimes a reset-resume, so our current hack isn't perfect, but it does allow what we were mainly aiming for - being able to wake up the USB subsystem when a device is plugged in. That actually is working quite well with our current hack. I should note that our hardware has a permanent hub downstream of the USB3320 phy - not sure if this makes any difference in terms of the behavior of the PHY and doing GPIO against it.
And yes, you're right that newer silicon might work better with the PHY, but we also had hardware that was designed with the problematic PHY before we were aware of the errata. Having something that performs the minimum functionality we needed is better than nothing.
- Tim
Re: [RFC 4/5] OMAP4: mux: Select CBL package for SDP4430 with ES1
In reply to Anand GadiyarQuoted 58 lines · Anand Gadiyar
Review
Quoted 22 lines · Benoit Cousson
Signed-off-by Benoit Cousson<[email protected]>Cc Tony Lindgren<[email protected]>Cc Paul Walmsley<[email protected]>Cc Kevin Hilman<[email protected]>--- arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/board-4430sdp.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-)arch/arm/mach-omap2/Kconfig +1
-0@@ -240,6 +240,7 @@ config MACH_OMAP_4430SDP bool "OMAP 4430 SDP board" default y depends on ARCH_OMAP4 + select OMAP_PACKAGE_CBL config MACH_OMAP4_PANDA bool "OMAP4 Panda Board"(quoted diff) +0
-0
b/arch/arm/mach-omap2/board-4430sdp.cQuoted 22 lines
index 9447644..d087712 100644
arch/arm/mach-omap2/board-4430sdp.c +8
-0@@ -35,6 +35,8 @@#include <plat/timer-gp.h> #include <plat/usb.h> #include <plat/mmc.h> + +#include "mux.h" #include "hsmmc.h" #define ETH_KS8851_IRQ 34@@ -426,10 +428,20 @@ static int __init omap4_i2c_init(void)omap_register_i2c_bus (4 ,400 ,NULL ,0 );return 0 ; } + +#ifdef CONFIG_OMAP_MUX +static struct omap_board_mux board_mux[]__initdata = { + { .reg_offset =OMAP_MUX_TERMINATOR }, +}; +#else arch/arm/mach-omap2/board-4430sdp.c static int __init omap4_i2c_init(void) · line 446
Quoted 10 lines
arch/arm/mach-omap2/board-4430sdp.c +4
-0+#define board_mux NULL +#endif +static void __init omap_4430sdp_init (void ) {int status; +omap4_mux_init (board_mux,OMAP_PACKAGE_CBL );omap4_i2c_init (); platform_add_devices(sdp4430_devices,
ARRAY_SIZE(sdp4430_devices));
Quoted 5 lines
arch/arm/mach-omap2/board-4430sdp.c static int __init omap4_i2c_init(void) · line 447
Quoted 1 line
arch/arm/mach-omap2/board-4430sdp.c +0
-0omap_serial_init ();Panda uses the same package I believe - I'll double check and update that board file. I'll test this series tomorrow on both boards.
Probably, please note that there is a new CBS package for ES2.0.
I've just generated the data, I'll send you that ASAP, since I do not have ES2 board to check that anyway :-(
Thanks,
Benoit
Re: [RFC 3/5] OMAP4: mux: Add data for OMAP4430 ES1
In reply to Anand GadiyarQuoted 10 lines · Anand
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm/mach-omap2/mux44xx.carch/arm/mach-omap2/mux44xx.c line 1
Quoted 6 lines
new file mode 100644
index 0000000..839a905arch/arm/mach-omap2/mux44xx.c new file +1
-0@@ -0,0 +1,944 @@ +\Stray change?
Yes, indeed.
Thanks,
Benoit
Tony Lindgren
maintainerRe: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
In reply to Tony LindgrenQuoted 6 lines · Tony Lindgren
* Benoit Cousson <[email protected]> [100924 02:07]:
If we wanted to use only the offset in the data, we could initialize the various sections separately. But then
omapX_mux_init()would have to know the partition number somehow..
After thinking about this a bit more, to me it seems like this is the best way to go. Then there's no need to repeat the partition data for each entry. How about this:
Earlier defines stay the same:
#define OMAP3_MUX(mode0, mux_value) \
{ \
.reg_offset = (OMAP3_CONTROL_PADCONF_##mode0##_OFFSET), \
.value = (mux_value), \
}Then for omap4, we need to add a separate board mux table for each partition:
#define OMAP4_MUX_PARTXXX(mode0, mux_value) \
{ \
.reg_offset = (OMAP4_PART_XXX_PADCONF_##mode0##_OFFSET), \
.value = (mux_value), \
}#define OMAP4_MUX_PARTYYY(mode0, mux_value) \
{ \
.reg_offset = (OMAP4_PARTYYY_PADCONF_##mode0##_OFFSET), \
.value = (mux_value), \
}...
For omap2 and 3, we just call omap_mux_init once with the mux_pbase as we currently already do. Then for omap4, we call omap_mux_init for each partition.
We also need to change omap_mux_read/write to allow specifying the partition base address:
u16 omap_mux_read(void __iomem *base, u16 offset)
{
if (cpu_is_omap24xx())
return __raw_readb(base + offset);
else
return __raw_readw(base + offset);
}All the other mux interface functions can stay the same, we just need to modify the mux.c code to look for signal names or GPIO number in each registered partition.
Regards,
Tony
Re: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
Hi Tony,
Quoted 29 lines · Tony Lindgren
Quoted 6 lines · Tony Lindgren
* Benoit Cousson<[email protected]> [100924 02:07]:
If we wanted to use only the offset in the data, we could initialize the various sections separately. But then
omapX_mux_init()would have to know the partition number somehow..After thinking about this a bit more, to me it seems like this is the best way to go. Then there's no need to repeat the partition data for each entry. How about this:
Earlier defines stay the same:
#define
OMAP3_MUX(mode0, mux_value)\{ \ .reg_offset = (OMAP3_CONTROL_PADCONF_##mode0##_OFFSET), \ .value = (mux_value), \ }Then for omap4, we need to add a separate board mux table for each partition:
#define
OMAP4_MUX_PARTXXX(mode0, mux_value)\{ \ .reg_offset = (OMAP4_PART_XXX_PADCONF_##mode0##_OFFSET), \ .value = (mux_value), \ }
Quoted 5 lines
#define
OMAP4_MUX_PARTYYY(mode0, mux_value)\{ \ .reg_offset = (OMAP4_PARTYYY_PADCONF_##mode0##_OFFSET), \ .value = (mux_value), \ }
OK for that one, that will save the extra id to store the partition in each static data, but then you will still have to store it during the init?
Quoted 7 lines
...
For omap2 and 3, we just callomap_mux_initonce with themux_pbaseas we currently already do. Then for omap4, we callomap_mux_initfor each partition.We also need to change omap_mux_read/write to allow specifying the partition base address:
Then you need somehow a partition information from somewhere.
I don't see how we can avoid the id at that point? We can store the base address instead, but then every mux entries will have it.
The caller of the omap_mux_read still have to figure out what base address it has to use. That move the issue to the upper layer, but we still need that.
Quoted 9 lines
u16
omap_mux_read(void __iomem *base, u16 offset){ if (cpu_is_omap24xx()) return __raw_readb(base + offset); else return __raw_readw(base + offset); }
Quoted 3 lines
All the other mux interface functions can stay the same, we just need to modify the
mux.ccode to look for signal names or GPIO number in each registered partition.
OK, now I think I understand your point... Please ignore the previous comments :-)
You will guess the partition by trying each array at a time, and the first one will win.
That seems pretty good in fact.
I just have to do it now...
Thanks,
Benoit
Tony Lindgren
maintainerRe: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
Quoted 4 lines · Cousson, Benoit
OK for that one, that will save the extra id to store the partition in each static data, but then you will still have to store it during the init?
For mux.c internal data, we can have an array of struct omap_mux_partition that contains the mux array for that partition:
struct omap_mux_partition {
void __iomem *base; /* Partition virt base */
struct omap_mux *mux; /* Partition specific mux array */
};
Quoted 11 lines
Quoted 7 lines
...
For omap2 and 3, we just callomap_mux_initonce with themux_pbaseas we currently already do. Then for omap4, we callomap_mux_initfor each partition.We also need to change omap_mux_read/write to allow specifying the partition base address:
Then you need somehow a partition information from somewhere. I don't see how we can avoid the id at that point? We can store the base address instead, but then every mux entries will have it.
That should only need to be stored once for each partition in the struct omap_mux_partition?
Quoted 3 lines
The caller of the
omap_mux_readstill have to figure out what base address it has to use.
That move the issue to the upper layer, but we still need that.
For the mux.c internal code, we can search through the array of struct omap_mux_partition and the mux entries in each partition for signal name or GPIO number.
Quoted 7 lines
Quoted 3 lines
All the other mux interface functions can stay the same, we just need to modify the
mux.ccode to look for signal names or GPIO number in each registered partition.OK, now I think I understand your point... Please ignore the previous comments :-)
Quoted 6 lines
You will guess the partition by trying each array at a time, and the first one will win.
That seems pretty good in fact.
I just have to do it now...
OK cool, let me know if I can help with something.
Tony
Re: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
Quoted 44 lines · Tony Lindgren
Quoted 4 lines · Cousson, Benoit
OK for that one, that will save the extra id to store the partition in each static data, but then you will still have to store it during the init?
For
mux.cinternal data, we can have an array of structomap_mux_partitionthat contains the mux array for that partition:struct
omap_mux_partition{
void__iomem*base; /* Partition virt base */
structomap_mux*mux; /* Partition specific mux array */
};Quoted 11 lines
Quoted 7 lines
...
For omap2 and 3, we just callomap_mux_initonce with themux_pbaseas we currently already do. Then for omap4, we callomap_mux_initfor each partition.We also need to change omap_mux_read/write to allow specifying the partition base address:
Then you need somehow a partition information from somewhere. I don't see how we can avoid the id at that point? We can store the base address instead, but then every mux entries will have it.
That should only need to be stored once for each partition in the struct
omap_mux_partition?Quoted 3 lines
The caller of the
omap_mux_readstill have to figure out what base address it has to use.
That move the issue to the upper layer, but we still need that.For the
mux.cinternal code, we can search through the array of structomap_mux_partitionand the mux entries in each partition for signal name or GPIO number.Quoted 7 lines
Quoted 3 lines
All the other mux interface functions can stay the same, we just need to modify the
mux.ccode to look for signal names or GPIO number in each registered partition.OK, now I think I understand your point... Please ignore the previous comments :-)
Quoted 8 lines
Quoted 6 lines
You will guess the partition by trying each array at a time, and the first one will win.
That seems pretty good in fact.
I just have to do it now...
OK cool, let me know if I can help with something.
Thanks, but that should be fine for moment. I think I should have the updated version before the end of the week.
Just one clarification, I don't think we have to use two different macros in that case. The names are already unique across partition today, so we can use only macro like for previous OMAP.
I'm just glad I don't have to re-write these 231 entries per ES manually :-)
I'll give it a try, and keep you inform if I have any un-expected issue with that approach.
Thanks,
Benoit
Tony Lindgren
maintainerRe: [RFC 1/5] OMAP: mux: Add support for control module split in several partitions
Quoted 5 lines · Cousson, Benoit
Quoted 2 lines
OK cool, let me know if I can help with something.
Thanks, but that should be fine for moment. I think I should have the updated version before the end of the week.
OK
Quoted 3 lines
Just one clarification, I don't think we have to use two different macros in that case. The names are already unique across partition today, so we can use only macro like for previous OMAP.
OK
Quoted 1 line
I'm just glad I don't have to re-write these 231 entries per ES manually :-)
:)
Quoted 2 lines
I'll give it a try, and keep you inform if I have any un-expected issue with that approach.
OK
Tony
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Sent: Friday, September 24, 2010 4:16 AM
To: [email protected]
Cc: Cousson, Benoit
Subject: [RFC 0/5] OMAP4: mux: Add the OMAP4430 ES1 support
Ping? Is there a possibility for a v2 non-rfc ES2 support?
Regards,
Nishanth Menon
Hi Nishanth,
Quoted 4 lines · Nishanth
Quoted 3 lines
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Ping? Is there a possibility for a v2 non-rfc ES2 support?
And what about a RFC v2? With ES2 support of course :-)
The changes I have done are breaking RX51 support due to the usage of low-level API from the mux code.
For the moment I just disabled that code from the RX51, so there is no way I send that except in a RFC form :-(
Regards,
Benoit
Quoted 12 lines
-----Original Message-----
From: Cousson, Benoit
Sent: Monday, October 18, 2010 3:52 PMQuoted 4 lines · Nishanth
Quoted 3 lines
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Ping? Is there a possibility for a v2 non-rfc ES2 support?
Quoted 7 lines
And what about a RFC v2? With ES2 support of course :-)
The changes I have done are breaking RX51 support due to the usage of low-level API from the mux code.
For the moment I just disabled that code from the RX51, so there is no way I send that except in a RFC form :-(
It'd be good to evolve this further.. looks like there is a bunch of Drivers pending posting due to "lack of mux framework"..
Regards,
Nishanth Menon
Quoted 13 lines · Nishanth
Quoted 13 lines
From: Cousson, Benoit
Sent: Monday, October 18, 2010 3:52 PMQuoted 4 lines · Nishanth
Quoted 3 lines
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Ping? Is there a possibility for a v2 non-rfc ES2 support?
And what about a RFC v2? With ES2 support of course :-)
Quoted 7 lines
Quoted 5 lines
The changes I have done are breaking RX51 support due to the usage of low-level API from the mux code.
For the moment I just disabled that code from the RX51, so there is no way I send that except in a RFC form :-(
It'd be good to evolve this further.. looks like there is a bunch of Drivers pending posting due to "lack of mux framework"..
I guess that the current code should be good enough for that, isn't it? The main API will not change. Only the low API will become forbidden.
Benoit
Quoted 14 lines
-----Original Message-----
From: Cousson, Benoit
Sent: Monday, October 18, 2010 3:57 PMQuoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 3 lines
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Ping? Is there a possibility for a v2 non-rfc ES2 support?
And what about a RFC v2? With ES2 support of course :-)
The changes I have done are breaking RX51 support due to the usage of low-level API from the mux code.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
For the moment I just disabled that code from the RX51, so there is no way I send that except in a RFC form :-(
It'd be good to evolve this further.. looks like there is a bunch of Drivers pending posting due to "lack of mux framework"..
I guess that the current code should be good enough for that, isn't it? The main API will not change. Only the low API will become forbidden.
Unfortunately, not in l-o or kernel.org means not upstreamed solution :( That is not a codebase for any driver developer to build on unfortunately :(.
Regards,
Nishanth Menon
Tony Lindgren
maintainerQuoted 8 lines · Cousson, Benoit
Hi Nishanth,
Quoted 4 lines · Nishanth
Quoted 3 lines
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Ping? Is there a possibility for a v2 non-rfc ES2 support?
Quoted 7 lines
And what about a RFC v2? With ES2 support of course :-)
The changes I have done are breaking RX51 support due to the usage of low-level API from the mux code.
For the moment I just disabled that code from the RX51, so there is no way I send that except in a RFC form :-(
I have some ideas on doing the board specific runtime remuxing. That should also solve the rx51 emmc remuxing.
Let's plan on merging your patches first after the merge window, then I'll do my patches on top of yours to avoid rebasing.
Regards,
Tony
Hi Tony,
Quoted 11 lines · Tony Lindgren
Quoted 10 lines · Cousson, Benoit
Hi Nishanth,
Quoted 4 lines · Nishanth
Quoted 3 lines
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Benoit Cousson
Ping? Is there a possibility for a v2 non-rfc ES2 support?
And what about a RFC v2? With ES2 support of course :-)
Quoted 8 lines
Quoted 5 lines
The changes I have done are breaking RX51 support due to the usage of low-level API from the mux code.
For the moment I just disabled that code from the RX51, so there is no way I send that except in a RFC form :-(
I have some ideas on doing the board specific runtime remuxing. That should also solve the rx51 emmc remuxing.
That's cool, I had some poor ideas as well, but I was not sure you will like them :-)
Quoted 2 lines
Let's plan on merging your patches first after the merge window, then I'll do my patches on top of yours to avoid rebasing.
Great, I'll send that when I will have the time to test that on an ES2.0 at least...
Just FYI, the wip code is there:git://gitorious.org/omap-pm/linux.git ctrl-wip/mux-omap4-v2
Thanks,
Benoit