int board_init(void) { /* Address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; imx_iomux_v3_setup_multiple_pads(iox_pads, ARRAY_SIZE(iox_pads)); iox74lv_init(); #ifdef CONFIG_SYS_I2C_MXC setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); #endif #ifdef CONFIG_FEC_MXC setup_fec(CONFIG_FEC_ENET_DEV); #endif #ifdef CONFIG_USB_EHCI_MX6 setup_usb(); #endif #ifdef CONFIG_FSL_QSPI board_qspi_init(); #endif #ifdef CONFIG_VIDEO_MXS setup_lcd(); #endif return 0; }
int board_init(void) { /* address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; /* Reset peripherals */ imx_iomux_v3_setup_multiple_pads(per_rst_pads, ARRAY_SIZE(per_rst_pads)); gpio_direction_output(IMX_GPIO_NR(1, 3) , 0); udelay(500); gpio_set_value(IMX_GPIO_NR(1, 3), 1); #ifdef CONFIG_SYS_USE_SPINOR setup_spinor(); #endif #ifdef CONFIG_SYS_USE_EIMNOR setup_eimnor(); #endif #ifdef CONFIG_SYS_USE_NAND setup_gpmi_nand(); #endif #ifdef CONFIG_FEC_MXC setup_fec(); #endif #ifdef CONFIG_QSPI board_qspi_init(); #endif return 0; }
int board_init(void) { /* Address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; #ifdef CONFIG_SYS_I2C_MXC setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2); setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info3); #endif /* Reset CPU_PER_RST_B signal for enet phy and PCIE */ port_exp_direction_output(CPU_PER_RST_B, 0); udelay(500); port_exp_direction_output(CPU_PER_RST_B, 1); /* Set steering signal to L for selecting B0 */ port_exp_direction_output(STEER_ENET, 0); #ifdef CONFIG_USB_EHCI_MX6 setup_usb(); #endif #ifdef CONFIG_FSL_QSPI board_qspi_init(); #endif #ifdef CONFIG_NAND_MXS setup_gpmi_nand(); #endif return 0; }
int board_init(void) { /* address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; imx_iomux_v3_setup_multiple_pads(iox_pads, ARRAY_SIZE(iox_pads)); iox74lv_init(); #ifdef CONFIG_FEC_MXC setup_fec(); #endif #ifdef CONFIG_NAND_MXS setup_gpmi_nand(); #endif #ifdef CONFIG_VIDEO_MXS setup_lcd(); #endif #ifdef CONFIG_FSL_QSPI board_qspi_init(); #endif return 0; }
int board_init(void) { /* address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; imx_iomux_v3_setup_multiple_pads(iox_pads, ARRAY_SIZE(iox_pads)); iox74lv_init(); #ifdef CONFIG_FEC_MXC setup_fec(); #endif #ifdef CONFIG_SYS_USE_NAND setup_gpmi_nand(); #endif #ifdef CONFIG_FSL_QSPI board_qspi_init(); #endif #ifdef CONFIG_MXC_EPDC qn_output[5] = qn_disable; iox74lv_set(5); setup_epdc(); #endif return 0; }
int board_init(void) { /* Address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; #ifdef CONFIG_SYS_I2C_MXC setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); #endif #ifdef CONFIG_FEC_MXC setup_fec(CONFIG_FEC_ENET_DEV); #endif #ifdef CONFIG_SYS_USE_SPINOR setup_spinor(); #endif #ifdef CONFIG_SYS_USE_NAND setup_gpmi_nand(); #endif #ifdef CONFIG_SYS_USE_EIMNOR /* * This function should be invoked after setup_fec, * because ENET2_RX_ER conflicts. However, we rarely need * ENET2_RX_ER for enet, and when use eimnor, we do not * have sd1/sd2, enet is a must to boot kernel and nfsrootfs. */ setup_eimnor(); #endif #ifdef CONFIG_SYS_USE_QSPI board_qspi_init(); #endif return 0; }
int board_init(void) { /* Address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; #ifdef CONFIG_SYS_I2C_MXC setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2); setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info3); #endif #ifdef CONFIG_MAX7310_IOEXP setup_max7310(); /* Reset CPU_PER_RST_B signal for enet phy and PCIE */ gpio_exp_direction_output(CPU_PER_RST_B, 0); udelay(500); gpio_exp_direction_output(CPU_PER_RST_B, 1); /* Set steering signal to L for selecting B0 */ gpio_exp_direction_output(STEER_ENET, 0); #endif #ifdef CONFIG_FEC_MXC setup_fec(CONFIG_FEC_ENET_DEV); #endif #ifdef CONFIG_SYS_USE_NAND setup_gpmi_nand(); #endif #ifdef CONFIG_QSPI board_qspi_init(); #endif return 0; }