Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/saf1761_otg.c
Show First 20 Lines • Show All 2,493 Lines • ▼ Show 20 Lines | for (x = 0x400; x != 0x10000; x += 4) | ||||
SAF1761_WRITE_LE_4(sc, x, 0); | SAF1761_WRITE_LE_4(sc, x, 0); | ||||
/* start the HC */ | /* start the HC */ | ||||
SAF1761_WRITE_LE_4(sc, SOTG_USBCMD, SOTG_USBCMD_RS); | SAF1761_WRITE_LE_4(sc, SOTG_USBCMD, SOTG_USBCMD_RS); | ||||
DPRINTF("USBCMD=0x%08x\n", SAF1761_READ_LE_4(sc, SOTG_USBCMD)); | DPRINTF("USBCMD=0x%08x\n", SAF1761_READ_LE_4(sc, SOTG_USBCMD)); | ||||
/* make HC scan all PTDs */ | /* make HC scan all PTDs */ | ||||
SAF1761_WRITE_LE_4(sc, SOTG_ATL_PTD_LAST_PTD, (1 << 31)); | SAF1761_WRITE_LE_4(sc, SOTG_ATL_PTD_LAST_PTD, (1U << 31)); | ||||
SAF1761_WRITE_LE_4(sc, SOTG_INT_PTD_LAST_PTD, (1 << 31)); | SAF1761_WRITE_LE_4(sc, SOTG_INT_PTD_LAST_PTD, (1U << 31)); | ||||
SAF1761_WRITE_LE_4(sc, SOTG_ISO_PTD_LAST_PTD, (1 << 31)); | SAF1761_WRITE_LE_4(sc, SOTG_ISO_PTD_LAST_PTD, (1U << 31)); | ||||
/* skip all PTDs by default */ | /* skip all PTDs by default */ | ||||
SAF1761_WRITE_LE_4(sc, SOTG_ATL_PTD_SKIP_PTD, -1U); | SAF1761_WRITE_LE_4(sc, SOTG_ATL_PTD_SKIP_PTD, -1U); | ||||
SAF1761_WRITE_LE_4(sc, SOTG_INT_PTD_SKIP_PTD, -1U); | SAF1761_WRITE_LE_4(sc, SOTG_INT_PTD_SKIP_PTD, -1U); | ||||
SAF1761_WRITE_LE_4(sc, SOTG_ISO_PTD_SKIP_PTD, -1U); | SAF1761_WRITE_LE_4(sc, SOTG_ISO_PTD_SKIP_PTD, -1U); | ||||
/* activate all PTD types */ | /* activate all PTD types */ | ||||
SAF1761_WRITE_LE_4(sc, SOTG_HCBUFFERSTATUS, | SAF1761_WRITE_LE_4(sc, SOTG_HCBUFFERSTATUS, | ||||
▲ Show 20 Lines • Show All 1,226 Lines • Show Last 20 Lines |