ARM: tegra: pinmux/colibri_t20: fix nand pinmux
Subsystems (3)
v2 cover ARM: tegra: pinmux/colibri_t20: fix nand pinmux
Fix FUNCMUX_NDFLASH_KBC_8_BIT and pingroup ATC clashing.
Please note that the first patch has already been submitted once but based on feedback from Stephen I now split it up into a generic fix part plus a board specific ATC pingroup clashing workaround. That's why I call this series already v2 to avoid any confusion.
Lucas Stach (1):
tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT
Marcel Ziswiler (1):
ARM: tegra: colibri_t20: fix nand pinmux
arch/arm/mach-tegra/tegra20/funcmux.c | 2 ++ board/toradex/colibri_t20/colibri_t20.c | 6 ++++++ 2 files changed, 8 insertions(+)
Signature · 1 line
1.9.3
PATCH v2 1/2 tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT
From: Lucas Stach <[email protected]>
Even the 8-bit case needs KBCB configured, as pin D7 is located in this pingroup.
Please note that pingroup ATC seems to come out of reset with its config set to NAND so one needs to explicitly configure some other function to this group in order to avoid clashing settings which is outside the scope of this patch.
---
changes in v2:
- based on Stephen's feedback moved ATC pingroup clashing workaround into separate board specific patch
arch/arm/mach-tegra/tegra20/funcmux.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-tegra/tegra20/funcmux.c +2 -0
@@ -252,12 +252,14 @@ int funcmux_select(enum periph_id id, int config)break ;case FUNCMUX_NDFLASH_KBC_8_BIT :pinmux_set_func (PMUX_PINGRP_KBCA ,PMUX_FUNC_NAND ); +pinmux_set_func (PMUX_PINGRP_KBCB ,PMUX_FUNC_NAND );pinmux_set_func (PMUX_PINGRP_KBCC ,PMUX_FUNC_NAND );pinmux_set_func (PMUX_PINGRP_KBCD ,PMUX_FUNC_NAND );pinmux_set_func (PMUX_PINGRP_KBCE ,PMUX_FUNC_NAND );pinmux_set_func (PMUX_PINGRP_KBCF ,PMUX_FUNC_NAND );pinmux_tristate_disable (PMUX_PINGRP_KBCA ); +pinmux_tristate_disable (PMUX_PINGRP_KBCB );pinmux_tristate_disable (PMUX_PINGRP_KBCC );pinmux_tristate_disable (PMUX_PINGRP_KBCD );pinmux_tristate_disable (PMUX_PINGRP_KBCE );
Signature · 1 line
1.9.3
PATCH v2 2/2 ARM: tegra: colibri_t20: fix nand pinmux
In reply to Marcel ZiswilerPingroup ATC seems to come out of reset with config set to NAND, so we need to explicitly configure some other function to this group in order to avoid clashing settings.
--- board/toradex/colibri_t20/colibri_t20.c | 6 ++++++ 1 file changed, 6 insertions(+)
board/toradex/colibri_t20/colibri_t20.c +6 -0
@@ -27,6 +27,12 @@ void pin_mux_mmc(void)void pin_mux_nand (void ) {funcmux_select (PERIPH_ID_NDFLASH ,FUNCMUX_NDFLASH_KBC_8_BIT ); + +/* +* configure pingroup ATC to something unrelated to +* avoid ATC overriding KBC +*/ +pinmux_set_func (PMUX_PINGRP_ATC ,PMUX_FUNC_GMI ); }#endif
Signature · 1 line
1.9.3
v2 cover ARM: tegra: pinmux/colibri_t20: fix nand pinmux
In reply to Marcel ZiswilerQuoted 6 lines · Marcel Ziswiler
Fix
FUNCMUX_NDFLASH_KBC_8_BITand pingroup ATC clashing.Please note that the first patch has already been submitted once but based on feedback from Stephen I now split it up into a generic fix part plus a board specific ATC pingroup clashing workaround. That's why I call this series already v2 to avoid any confusion.
The series,
v2 cover ARM: tegra: pinmux/colibri_t20: fix nand pinmux
In reply to Marcel ZiswilerMarcel,
This series applied to u-boot-tegra/next. I'll push an update today or tomorrow to Denx.de.
Tom
Quoted 21 lines
-----Original Message-----
From: Marcel Ziswiler [mailto:marcel at ziswiler.com]
Sent: Thursday, March 26, 2015 5:32 PM
To: u-boot at lists.denx.de
Cc: Tom Warren; Albert Aribaud; Tom Rini; Lucas Stach; Stephen Warren; Simon Glass; Masahiro Yamada; Marcel Ziswiler
Subject: [PATCH v2 0/2] ARM: tegra: pinmux/colibri_t20: fix nand pinmuxFix
FUNCMUX_NDFLASH_KBC_8_BITand pingroup ATC clashing.Please note that the first patch has already been submitted once but based on feedback from Stephen I now split it up into a generic fix part plus a board specific ATC pingroup clashing workaround. That's why I call this series already v2 to avoid any confusion.
Lucas Stach (1):
tegra: pinmux: fixFUNCMUX_NDFLASH_KBC_8_BITMarcel Ziswiler (1):
ARM: tegra:colibri_t20: fix nand pinmux
Quoted 6 lines
arch/arm/mach-tegra/tegra20/funcmux.c | 2 ++ board/toradex/colibri_t20/colibri_t20.c | 6 ++++++ 2 files changed, 8 insertions(+)--
1.9.3
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
v2 cover ARM: tegra: pinmux/colibri_t20: fix nand pinmux
Quoted 1 line · Tom Warren
This series applied to u-boot-tegra/next. I'll push an update today or tomorrow to Denx.de.
Very good. Thanks!
Do you happen to know about the plans for my remaining three patches?
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/216038
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216039
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216040
v2 cover ARM: tegra: pinmux/colibri_t20: fix nand pinmux
Quoted 7 lines · Marcel Ziswiler
Do you happen to know about the plans for my remaining three patches?
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/216038
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216039
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/216040
Sorry, I just noticed they already made it in there as well.
Thank you very much, Tom.