2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm/arch/reset_manager.h>
12 #include <usb/s3c_udc.h>
13 #include <usb_mass_storage.h>
17 DECLARE_GLOBAL_DATA_PTR;
20 * Print Board information
24 puts("BOARD: Altera SoCFPGA Cyclone5 Board\n");
29 * Initialization function which happen at early stage of c code
31 int board_early_init_f(void)
37 * Miscellaneous platform dependent initialisations
41 /* Address of boot parameters for ATAG (if ATAG is used) */
42 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
47 #ifdef CONFIG_USB_GADGET
48 struct s3c_plat_otg_data socfpga_otg_data = {
49 .regs_otg = CONFIG_USB_DWC2_REG_ADDR,
50 .usb_gusbcfg = 0x1417,
53 int board_usb_init(int index, enum usb_init_type init)
55 return s3c_udc_probe(&socfpga_otg_data);
58 int g_dnl_board_usb_cable_connected(void)