static void mainboard_init(device_t dev) { gpio_output(GPIO_RESET, 0); configure_usb(); configure_emmc(); configure_codec(); configure_vop(); }
static void mainboard_init(device_t dev) { gpio_output(GPIO_RESET, 0); configure_usb(); configure_emmc(); configure_codec(); /* No video. */ elog_init(); elog_add_watchdog_reset(); elog_add_boot_reason(); }
static void mainboard_init(device_t dev) { setbits_le32(&rk3288_pmu->iomux_i2c0scl, IOMUX_I2C0SCL); /* PMIC I2C */ setbits_le32(&rk3288_pmu->iomux_i2c0sda, IOMUX_I2C0SDA); /* PMIC I2C */ i2c_init(0, 400000); /* PMIC I2C */ gpio_output(GPIO_RESET, 0); configure_usb(); configure_sdmmc(); configure_emmc(); configure_codec(); configure_vop(); }
void spl_board_init(void) { struct udevice *pinctrl; int ret; ret = setup_led(); if (ret) { debug("LED ret=%d\n", ret); hang(); } ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl); if (ret) { debug("%s: Cannot find pinctrl device\n", __func__); goto err; } #ifdef CONFIG_SPL_MMC_SUPPORT ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_SDCARD); if (ret) { debug("%s: Failed to set up SD card\n", __func__); goto err; } ret = configure_emmc(pinctrl); if (ret) { debug("%s: Failed to set up eMMC\n", __func__); goto err; } #endif /* Enable debug UART */ ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_UART_DBG); if (ret) { debug("%s: Failed to set up console UART\n", __func__); goto err; } preloader_console_init(); #if CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BROM) back_to_bootrom(BROM_BOOT_NEXTSTAGE); #endif return; err: printf("spl_board_init: Error %d\n", ret); /* No way to report error here */ hang(); }
static void mainboard_init(device_t dev) { gpio_output(GPIO_RESET, 0); configure_usb(); configure_emmc(); configure_codec(); configure_3g(); /* No video. */ /* If recovery mode is detected, reduce frequency and voltage to reduce * heat in case machine is left unattended. chrome-os-partner:41201. */ if (vboot_recovery_mode_enabled()) { printk(BIOS_DEBUG, "Reducing APLL freq for recovery mode.\n"); rkclk_configure_cpu(APLL_600_MHZ); rk808_configure_buck(1, 900); } }