diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-07-09 17:59:54 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-07-23 12:25:41 +0200 |
commit | 0a11d6f29ce48c649e4358a24b5781d3171c5406 (patch) | |
tree | 0794f0e12674fed4a24da70cd4921f4b2fd9cbb3 /board/boundary | |
parent | fa8cf3176cc3360d308db1aad8bd70458553c78a (diff) | |
download | u-boot-0a11d6f29ce48c649e4358a24b5781d3171c5406.tar.gz u-boot-0a11d6f29ce48c649e4358a24b5781d3171c5406.tar.xz u-boot-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/boundary')
-rw-r--r-- | board/boundary/nitrogen6x/nitrogen6x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c index 84294db859..60a09f4bb3 100644 --- a/board/boundary/nitrogen6x/nitrogen6x.c +++ b/board/boundary/nitrogen6x/nitrogen6x.c @@ -644,8 +644,7 @@ int overwrite_console(void) int board_init(void) { - struct iomuxc_base_regs *const iomuxc_regs - = (struct iomuxc_base_regs *)IOMUXC_BASE_ADDR; + struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR; clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUXC_GPR1_OTG_ID_MASK, |