]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/boundary/nitrogen6x/nitrogen6x.c
mx6: iomux: add GPR1 defines for use with nitrogen6x
[karo-tx-uboot.git] / board / boundary / nitrogen6x / nitrogen6x.c
index 17129081b726cd891767b34c4627f99f1076756f..daa3fc8478e069268d76db9412938c79ba285d3d 100644 (file)
@@ -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;