summaryrefslogtreecommitdiff
path: root/board/boundary
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2013-09-25 18:41:16 -0700
committerMarek Vasut <marex@denx.de>2013-10-20 23:42:40 +0200
commit7132869d4c9e03180226146b27c8c4266ceab351 (patch)
tree35e02e35b6daf88d5845843bc457cd5d155d3fd3 /board/boundary
parentb065eb7fd7f9c7364dbfc117ed4705f4dd932474 (diff)
downloadu-boot-imx-7132869d4c9e03180226146b27c8c4266ceab351.zip
u-boot-imx-7132869d4c9e03180226146b27c8c4266ceab351.tar.gz
u-boot-imx-7132869d4c9e03180226146b27c8c4266ceab351.tar.bz2
mx6: iomux: add GPR1 defines for use with nitrogen6x
Select GPIO1 as the USB OTG ID pin for Nitrogen6x Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'board/boundary')
-rw-r--r--board/boundary/nitrogen6x/nitrogen6x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 1712908..daa3fc8 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -706,6 +706,13 @@ int overwrite_console(void)
int board_init(void)
{
+ struct iomuxc_base_regs *const iomuxc_regs
+ = (struct iomuxc_base_regs *)IOMUXC_BASE_ADDR;
+
+ clrsetbits_le32(&iomuxc_regs->gpr[1],
+ IOMUXC_GPR1_OTG_ID_MASK,
+ IOMUXC_GPR1_OTG_ID_GPIO1);
+
/* address of boot parameters */
gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;