* [U-Boot] ZOOM2 mux setup
@ 2009-09-22 23:13 Olof Johansson
2009-09-22 23:14 ` Tom
0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2009-09-22 23:13 UTC (permalink / raw)
To: u-boot
Hi,
I stumbled across this when fixing the whitespace in the mux setup tables
for various omap platforms.
I don't find it to be a very sustainable way of adding random delays into
the gpio setups. Having it open-coded in a C file is much preferred.
from boards/logicpd/zoom2/zoom2.h:
/* Toggle Reset pin of TL16CP754C device */\
MUX_VAL(CP(MCBSP4_CLKX), (IEN | PTU | EN | M4)) /* GPIO_152 */\
udelay(10);\
MUX_VAL(CP(MCBSP4_CLKX), (IEN | PTD | EN | M4)) /* GPIO_152 */\
Also, it seems like alot of the tables are really pretty common between
boards. Maybe those should be extracted out to a separate base table,
with additional per-board tables to be applied on top?
-Olof
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] ZOOM2 mux setup
2009-09-22 23:13 [U-Boot] ZOOM2 mux setup Olof Johansson
@ 2009-09-22 23:14 ` Tom
0 siblings, 0 replies; 2+ messages in thread
From: Tom @ 2009-09-22 23:14 UTC (permalink / raw)
To: u-boot
Olof Johansson wrote:
> Hi,
>
> I stumbled across this when fixing the whitespace in the mux setup tables
> for various omap platforms.
>
> I don't find it to be a very sustainable way of adding random delays into
> the gpio setups. Having it open-coded in a C file is much preferred.
>
> from boards/logicpd/zoom2/zoom2.h:
>
> /* Toggle Reset pin of TL16CP754C device */\
> MUX_VAL(CP(MCBSP4_CLKX), (IEN | PTU | EN | M4)) /* GPIO_152 */\
> udelay(10);\
> MUX_VAL(CP(MCBSP4_CLKX), (IEN | PTD | EN | M4)) /* GPIO_152 */\
>
> Also, it seems like alot of the tables are really pretty common between
> boards. Maybe those should be extracted out to a separate base table,
> with additional per-board tables to be applied on top?
>
GPIO toggling should really be done with gpio interface and not the mux
interface.
I will see about cleaning this up when I have time.
Tom
>
> -Olof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-22 23:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22 23:13 [U-Boot] ZOOM2 mux setup Olof Johansson
2009-09-22 23:14 ` Tom
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.