int board_late_init(void) { #ifdef CONFIG_I2C_MXC int ret = 0; setup_i2c(CONFIG_SYS_I2C_PORT); i2c_bus_recovery(); ret = setup_pmic_voltages(); if (ret) return -1; #endif return 0; }
static int tx6x_devices_init(void) { if (!of_machine_is_compatible("karo,imx6dl-tx6dl") && !of_machine_is_compatible("karo,imx6q-tx6q")) return 0; barebox_set_hostname("tx6u"); eth_init(); setup_pmic_voltages(); imx6_bbu_nand_register_handler("nand", BBU_HANDLER_FLAG_DEFAULT); return 0; }
static int variscite_custom_init(void) { if (!of_machine_is_compatible("variscite,imx6q-custom")) return 0; barebox_set_hostname("var-som-mx6"); setup_pmic_voltages(); eth_phy_reset(); armlinux_set_architecture(MACH_TYPE_VAR_SOM_MX6); pr_debug("Completing custom_init()\n"); return 0; }
int board_late_init(void) { int ret = 0; #ifdef CONFIG_I2C_MXC setup_i2c(0, CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE, &i2c_pad_info0); ret = setup_pmic_voltages(); if (ret) return -1; #endif #ifdef CONFIG_ENV_IS_IN_MMC board_late_mmc_env_init(); #endif return 0; }
int board_late_init(void) { #ifdef CONFIG_CMD_BMODE add_board_boot_modes(board_boot_modes); #endif #ifdef CONFIG_PFUZE100_PMIC_I2C int ret = 0; ret = setup_pmic_voltages(); if (ret) return -1; #endif #ifdef CONFIG_ENV_IS_IN_MMC board_late_mmc_init(); #endif return 0; }
static int tx6x_devices_init(void) { void __iomem *src_base = IOMEM(MX6_SRC_BASE_ADDR); uint32_t sbmr1; if (!of_machine_is_compatible("karo,imx6dl-tx6dl") && !of_machine_is_compatible("karo,imx6q-tx6q")) return 0; barebox_set_hostname("tx6"); eth_init(); setup_pmic_voltages(); sbmr1 = readl(src_base + IMX6_SRC_SBMR1); /* * Check if this board is booted from eMMC or NAND to enable the * corresponding device. We can't use the regular bootsource * function here as it might return that we are in serial * downloader mode. Even if we are SBMR1[7] indicates whether * this board has eMMC or NAND. */ if (sbmr1 & (1 << 7)) { imx6_bbu_nand_register_handler("nand", BBU_HANDLER_FLAG_DEFAULT); of_device_enable_and_register_by_name("environment-nand"); of_device_enable_and_register_by_name("gpmi-nand@00112000"); } else { imx6_bbu_internal_mmc_register_handler("eMMC", "/dev/mmc3.boot0", BBU_HANDLER_FLAG_DEFAULT); of_device_enable_and_register_by_name("environment-emmc"); of_device_enable_and_register_by_name("usdhc@0219c000"); } return 0; }
int board_late_init(void) { #ifdef CONFIG_CMD_BMODE add_board_boot_modes(board_boot_modes); #endif #ifdef CONFIG_PFUZE3000_PMIC_I2C int ret = 0; ret = setup_pmic_voltages(); if (ret) return ret; #endif #ifdef CONFIG_ENV_IS_IN_MMC board_late_mmc_init(); #endif imx_iomux_v3_setup_multiple_pads(wdog_pads, ARRAY_SIZE(wdog_pads)); set_wdog_reset((struct wdog_regs *)WDOG1_BASE_ADDR); return 0; }