summaryrefslogtreecommitdiffstats
path: root/board/freescale
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-07-09 17:59:54 -0300
committerStefano Babic <sbabic@denx.de>2014-07-23 12:25:41 +0200
commit0a11d6f29ce48c649e4358a24b5781d3171c5406 (patch)
tree0794f0e12674fed4a24da70cd4921f4b2fd9cbb3 /board/freescale
parentfa8cf3176cc3360d308db1aad8bd70458553c78a (diff)
downloadblackbird-obmc-uboot-0a11d6f29ce48c649e4358a24b5781d3171c5406.tar.gz
blackbird-obmc-uboot-0a11d6f29ce48c649e4358a24b5781d3171c5406.zip
mx6: Remove duplication of iomuxc structure
There is no need to keep iomuxc_base_regs structure as it serves the exact same purpose of the iomuxc structure, which is to provide access to the GPR registers. The additional fields of iomuxc_base_regs are not used. Other advantage of 'iomuxc' is that it has a shorter name and the variable declarations can fit into a single line. So remove iomuxc_base_regs structure and use iomuxc instead. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx6slevk/mx6slevk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c
index d2b64cc357..a990b4cea8 100644
--- a/board/freescale/mx6slevk/mx6slevk.c
+++ b/board/freescale/mx6slevk/mx6slevk.c
@@ -130,8 +130,7 @@ int board_eth_init(bd_t *bis)
static int setup_fec(void)
{
- struct iomuxc_base_regs *iomuxc_regs =
- (struct iomuxc_base_regs *)IOMUXC_BASE_ADDR;
+ struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
int ret;
/* clear gpr1[14], gpr1[18:17] to select anatop clock */
OpenPOWER on IntegriCloud