Commit b1d217a2 authored by Robert Sprowson's avatar Robert Sprowson Committed by Ben Avison
Browse files

Make a substitute for MPHI

The MPHI is (ab)used by DWCDriver as a means to do a FIQ downgrade to IRQ, but Pi 4 has no MPHI, so instead we substitute the GIC (as the GICD_ISPENDRn can be used to cause an IRQ from software).
parent 34e39bc3
......@@ -4,18 +4,18 @@
*
*/
#define Module_MajorVersion_CMHG 0.82
#define Module_MinorVersion_CMHG Pi4.16
#define Module_MinorVersion_CMHG Pi4.17
#define Module_Date_CMHG 18 Feb 2020
#define Module_MajorVersion "0.82"
#define Module_Version 82
#define Module_MinorVersion "Pi4.16"
#define Module_MinorVersion "Pi4.17"
#define Module_Date "18 Feb 2020"
#define Module_ApplicationDate "18-Feb-20"
#define Module_ComponentName "HAL_BCM2835"
#define Module_FullVersion "0.82 (Pi4.16)"
#define Module_HelpVersion "0.82 (18 Feb 2020) Pi4.16"
#define Module_FullVersion "0.82 (Pi4.17)"
#define Module_HelpVersion "0.82 (18 Feb 2020) Pi4.17"
#define Module_LibraryVersionInfo "0:82"
......@@ -63,7 +63,11 @@ HAL_USBControllerInfo
STR a4, [a2, #HALUSBControllerInfo_DevNo]
LDR a4, FB_CacheMode
STR a4, [a2, #HALUSBControllerInfo_DMAOffset]
ADD a4, ip, #MPHI_Base
CPUDetect a3
; Raspberry Pi 4 / BCM2838 has no MPHI to do FIQ downgrade, but
; does have a GIC which can fulfil the same requirement
LDRHI a4, GICD_Base_Address
ADDLS a4, ip, #MPHI_Base
STR a4, [a2, #HALUSBControllerInfo_HW_MPHI]
MOV a4, #iDev_GPU_HostPort
STR a4, [a2, #HALUSBControllerInfo_DevNo_MPHI]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment