zynqmp.c (275bd6d11fd686beddf68b9f2b0de015b9e9f631) | zynqmp.c (9feff385f889d767b5c3643e515b723a448ab44b) |
---|---|
1/* 2 * (C) Copyright 2014 - 2015 Xilinx, Inc. 3 * Michal Simek <michal.simek@xilinx.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#include <common.h> 9#include <sata.h> 10#include <ahci.h> 11#include <scsi.h> 12#include <malloc.h> 13#include <asm/arch/clk.h> 14#include <asm/arch/hardware.h> 15#include <asm/arch/sys_proto.h> 16#include <asm/io.h> 17#include <usb.h> 18#include <dwc3-uboot.h> 19#include <i2c.h> | 1/* 2 * (C) Copyright 2014 - 2015 Xilinx, Inc. 3 * Michal Simek <michal.simek@xilinx.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#include <common.h> 9#include <sata.h> 10#include <ahci.h> 11#include <scsi.h> 12#include <malloc.h> 13#include <asm/arch/clk.h> 14#include <asm/arch/hardware.h> 15#include <asm/arch/sys_proto.h> 16#include <asm/io.h> 17#include <usb.h> 18#include <dwc3-uboot.h> 19#include <i2c.h> |
20#include <g_dnl.h> |
|
20 21DECLARE_GLOBAL_DATA_PTR; 22 23int board_init(void) 24{ 25 printf("EL Level:\tEL%d\n", current_el()); 26 27 return 0; --- 264 unchanged lines hidden (view full) --- 292 293static struct dwc3_device dwc3_device_data1 = { 294 .maximum_speed = USB_SPEED_HIGH, 295 .base = ZYNQMP_USB1_XHCI_BASEADDR, 296 .dr_mode = USB_DR_MODE_PERIPHERAL, 297 .index = 1, 298}; 299 | 21 22DECLARE_GLOBAL_DATA_PTR; 23 24int board_init(void) 25{ 26 printf("EL Level:\tEL%d\n", current_el()); 27 28 return 0; --- 264 unchanged lines hidden (view full) --- 293 294static struct dwc3_device dwc3_device_data1 = { 295 .maximum_speed = USB_SPEED_HIGH, 296 .base = ZYNQMP_USB1_XHCI_BASEADDR, 297 .dr_mode = USB_DR_MODE_PERIPHERAL, 298 .index = 1, 299}; 300 |
300int usb_gadget_handle_interrupts(void) | 301int usb_gadget_handle_interrupts(int index) |
301{ | 302{ |
302 dwc3_uboot_handle_interrupt(0); | 303 dwc3_uboot_handle_interrupt(index); |
303 return 0; 304} 305 306int board_usb_init(int index, enum usb_init_type init) 307{ 308 debug("%s: index %x\n", __func__, index); 309 310 switch (index) { --- 20 unchanged lines hidden --- | 304 return 0; 305} 306 307int board_usb_init(int index, enum usb_init_type init) 308{ 309 debug("%s: index %x\n", __func__, index); 310 311 switch (index) { --- 20 unchanged lines hidden --- |