mirror of
https://github.com/edk2-porting/edk2-msm
synced 2024-11-25 23:16:16 +00:00
7352c1a46b
* Update main.yml * add xiaomi redmi k30 pro * Update installer.yml * add xiaomi redmi k30 pro * Update installer.yml * add xiao mi redmi k30 pro
41 lines
753 B
C
41 lines
753 B
C
// UFS Controller
|
|
Device (UFS0)
|
|
{
|
|
Method(_STA, 0)
|
|
{
|
|
Return (0xF) // Set to 0xF to enable
|
|
}
|
|
|
|
Name (_HID, "QCOM24A5")
|
|
Alias(\_SB.EMUL, EMUL)
|
|
Name (_UID, 0)
|
|
// Check: Cache coherent?
|
|
Name (_CCA, 0)
|
|
|
|
Method (_CRS, 0x0, NotSerialized) {
|
|
Name (RBUF, ResourceTemplate ()
|
|
{
|
|
// UFS register address space
|
|
Memory32Fixed (ReadWrite, 0x1D84000, 0x1C000)
|
|
Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive, , , ) {297}
|
|
})
|
|
Return (RBUF)
|
|
}
|
|
|
|
// UFS Device
|
|
Device (DEV0)
|
|
{
|
|
// Memory Type
|
|
Method (_ADR)
|
|
{
|
|
Return (8)
|
|
}
|
|
|
|
// Non-removable
|
|
Method (_RMV)
|
|
{
|
|
Return (0)
|
|
}
|
|
}
|
|
}
|