int board_early_init_f(void) { if (!clock_early_init_done()) clock_early_init(); #if defined(CONFIG_TEGRA_DISCONNECT_UDC_ON_BOOT) #define USBCMD_FS2 (1 << 15) { struct usb_ctlr *usbctlr = (struct usb_ctlr *)0x7d000000; writel(USBCMD_FS2, &usbctlr->usb_cmd); } #endif /* Do any special system timer/TSC setup */ #if defined(CONFIG_TEGRA_SUPPORT_NON_SECURE) if (!tegra_cpu_is_non_secure()) #endif arch_timer_init(); pinmux_init(); board_init_uart_f(); /* Initialize periph GPIOs */ gpio_early_init(); gpio_early_init_uart(); return 0; }
int board_early_init_f(void) { board_init_uart_f(); /* Initialize periph GPIOs */ #ifdef CONFIG_SPI_UART_SWITCH gpio_early_init_uart(); #else gpio_config_uart(); #endif return 0; }
int board_early_init_f(void) { pinmux_init(); board_init_uart_f(); /* Initialize periph GPIOs */ gpio_early_init(); gpio_early_init_uart(); #ifdef CONFIG_LCD tegra_lcd_early_init(gd->fdt_blob); #endif return 0; }
void spl_board_init(void) { struct pmux_tri_ctlr *pmt = (struct pmux_tri_ctlr *)NV_PA_APB_MISC_BASE; /* enable JTAG */ writel(0xC0, &pmt->pmt_cfg_ctl); board_init_uart_f(); /* Initialize periph GPIOs */ gpio_early_init_uart(); clock_early_init(); preloader_console_init(); }
void spl_board_init(void) { struct apb_misc_pp_ctlr *apb_misc = (struct apb_misc_pp_ctlr *)NV_PA_APB_MISC_BASE; /* enable JTAG */ writel(0xC0, &apb_misc->cfg_ctl); board_init_uart_f(); /* Initialize periph GPIOs */ gpio_early_init_uart(); clock_early_init(); preloader_console_init(); }
void board_init_f(ulong dummy) { board_init_uart_f(); /* Initialize periph GPIOs */ gpio_early_init_uart(); /* * We call relocate_code() with relocation target same as the * CONFIG_SYS_SPL_TEXT_BASE. This will result in relocation getting * skipped. Instead, only .bss initialization will happen. That's * all we need */ debug(">>board_init_f()\n"); relocate_code(CONFIG_SPL_STACK, &gdata, CONFIG_SPL_TEXT_BASE); }