]> git.sur5r.net Git - u-boot/commitdiff
qong: Use generic function for configuring GPR register
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 9 Nov 2011 04:15:00 +0000 (04:15 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 11 Nov 2011 10:36:58 +0000 (11:36 +0100)
Use generic function for configuring GPR register.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/davedenx/qong/qong.c

index 665aedf0b5f8f60568cdd283653ff6c1c72bb7f3..c41f11d60c75a4ed1687a5dca0334ac728262680 100644 (file)
@@ -231,7 +231,7 @@ static void board_nand_setup(void)
 
        mxc_setup_weimcs(3, &cs3);
 
-       __REG(IOMUXC_GPR) |= 1 << 13;
+       mx31_set_gpr(MUX_SDCTL_CSD1_SEL, 1);
 
        mx31_gpio_mux(IOMUX_MODE(MUX_CTL_NFC_WP, MUX_CTL_IN_GPIO));
        mx31_gpio_mux(IOMUX_MODE(MUX_CTL_NFC_CE, MUX_CTL_IN_GPIO));