U-Boot may not have run so we need to ask the firmware to power on the
hardware.
Details
- Reviewers
rpaulo • hselasky imp mmel - Group Reviewers
ARM - Commits
- rS279778: Add support for enabling the USB on the Raspberry Pi boards when it hasn't
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
118 | You should forward detach and shutdown methods too. |
This patch breaks coherency for multicore ARMs.
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
104 | cpu_dcache_wbinv_all() is not SMP coherent and cannot be used outside init/shutdown code. Please, use range based cache operations here. |
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
118 | Just ensure it looks something like this: DEVMETHOD(device_detach, dwc_otg_detach), DEVMETHOD(device_suspend, bus_generic_suspend), DEVMETHOD(device_resume, bus_generic_resume), DEVMETHOD(device_shutdown, bus_generic_shutdown), --HPS |
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
83 | I got it from somewhere, but don't remember the details. | |
118 | Anything missing from here will call into the dwc_otg_fdt driver. We don't need shutdown as it's not implemented here. This is why I'm subclassing the existing bus, so I don't need to handle all of these. |
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
104 | Even better, use busdma to allocate and sync the buffer. (Hmmm, I wonder what happened to jhb's proposed change to make it easier to allocate busdma buffers for stuff like this? Probably got sidetracked when I asked for changes and didn't offer a patch.) |
Please see inline comment.
I'm fine with this patch, if missing bus_dmamap_sync() will be included.
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
155 | bus_dmamap_sync(msg_tag, msg_map, BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); |
sys/arm/broadcom/bcm2835/bcm283x_dwc_fdt.c | ||
---|---|---|
111 | doesn't the alignment need to be 16? it looks like the mailbox interface uses the low 4 bits for the channel number. | |
155 | maybe along with a comment that says it's only because we need to match PRE ops with corresponding POST ops (since we don't actually read any data coming back via the mailbox). |