diff options
author | Prakash PM <[prakash.pm@ti.com]> | 2010-07-15 16:08:38 -0400 |
---|---|---|
committer | Sandeep Paulraj <s-paulraj@ti.com> | 2010-07-15 16:08:38 -0400 |
commit | 37adbf9b1207333d586db3d3b5f8b99cba66ad3f (patch) | |
tree | 5d36303cb8e5d2cf980a40d1e5ca2c80ee5b9fe0 /board/davinci/da8xxevm/da850evm.c | |
parent | b9f34ce94fa436b19a990729ffbbc145f8301f56 (diff) | |
download | u-boot-imx-37adbf9b1207333d586db3d3b5f8b99cba66ad3f.zip u-boot-imx-37adbf9b1207333d586db3d3b5f8b99cba66ad3f.tar.gz u-boot-imx-37adbf9b1207333d586db3d3b5f8b99cba66ad3f.tar.bz2 |
da850 evm: Fix definition of 'pinmux' macro
Usage of parenthesis in pinmux macro definition changes the
definition of the macro and raises the precedence of '&'
operator inadvertently over '[]'.
Signed-off-by: Prakash PM <prakash.pm@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/davinci/da8xxevm/da850evm.c')
-rw-r--r-- | board/davinci/da8xxevm/da850evm.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index 959b2c6..eeb456c 100644 --- a/board/davinci/da8xxevm/da850evm.c +++ b/board/davinci/da8xxevm/da850evm.c @@ -30,28 +30,28 @@ DECLARE_GLOBAL_DATA_PTR; -#define pinmux (&davinci_syscfg_regs->pinmux) +#define pinmux(x) (&davinci_syscfg_regs->pinmux[x]) /* SPI0 pin muxer settings */ static const struct pinmux_config spi1_pins[] = { - { pinmux[5], 1, 1 }, - { pinmux[5], 1, 2 }, - { pinmux[5], 1, 4 }, - { pinmux[5], 1, 5 } + { pinmux(5), 1, 1 }, + { pinmux(5), 1, 2 }, + { pinmux(5), 1, 4 }, + { pinmux(5), 1, 5 } }; /* UART pin muxer settings */ static const struct pinmux_config uart_pins[] = { - { pinmux[0], 4, 6 }, - { pinmux[0], 4, 7 }, - { pinmux[4], 2, 4 }, - { pinmux[4], 2, 5 } + { pinmux(0), 4, 6 }, + { pinmux(0), 4, 7 }, + { pinmux(4), 2, 4 }, + { pinmux(4), 2, 5 } }; /* I2C pin muxer settings */ static const struct pinmux_config i2c_pins[] = { - { pinmux[4], 2, 2 }, - { pinmux[4], 2, 3 } + { pinmux(4), 2, 2 }, + { pinmux(4), 2, 3 } }; static const struct pinmux_resource pinmuxes[] = { |