Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bdk/memory_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@
#define USB_EP_BULK_OUT_BUF_ADDR 0xFF800000
#define USB_EP_BULK_OUT_MAX_XFER SZ_8M

// USB host buffers (device and host modes are mutually exclusive).
#define USBH_BULK_IN_BUF_ADDR 0xFF100000
#define USBH_BULK_OUT_BUF_ADDR 0xFF200000
#define USBH_BULK_BUF_SZ SZ_1M
#define USBH_FW_BUF_ADDR 0xFF300000 // XUSB Falcon firmware (must stay resident).
#define USBH_FW_BUF_SZ SZ_256K
#define USBH_SCRATCHPAD_ADDR 0xFF340000 // XHCI scratchpad array + pages.
#define USBH_SCRATCHPAD_SZ SZ_256K

// #define EXT_PAYLOAD_ADDR 0xC0000000
// #define RCM_PAYLOAD_ADDR (EXT_PAYLOAD_ADDR + ALIGN(PATCHED_RELOC_SZ, 0x10))
// #define COREBOOT_ADDR (0xD0000000 - rom_size)
Expand Down
4 changes: 4 additions & 0 deletions bdk/usb/usb_t210.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ typedef struct _t210_usb2d_t
#define XUSB_DEV_INTR_MASK 0x188
#define DEV_INTR_MASK_IP_INT_MASK BIT(16)

/* XUSB HOST IPFS/PCI registers (parallel layout to DEV side) */
#define XUSB_HOST_CONFIGURATION 0x180
#define HOST_CONFIGURATION_EN_FPCI BIT(0)

/* XUSB Pad Control registers */
#define XUSB_PADCTL_USB2_PAD_MUX 0x4
#define PADCTL_USB2_PAD_MUX_USB2_OTG_PAD_PORT0_USB2 (0 << 0)
Expand Down
Loading