Commit ee8e849b authored by Rabeeh Khoury's avatar Rabeeh Khoury

edk2-platforms patches

Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
parent b350a969
From 4ce7de0ca29796929fe335a5831136ab9ccff55e Mon Sep 17 00:00:00 2001
From: Rabeeh Khoury <rabeeh@solid-run.com>
Date: Sun, 28 Jul 2019 14:49:25 +0300
Subject: [PATCH 1/2] lx2160acex7: hacks to get uefi built
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
---
.../DeviceTreeInclude/fsl-lx2160a.dtsi | 40 +++++++++++++++++++
Silicon/NXP/Library/MmcLib/MmcInterface.c | 4 ++
2 files changed, 44 insertions(+)
diff --git a/Silicon/NXP/LX2160A/Include/DeviceTreeInclude/fsl-lx2160a.dtsi b/Silicon/NXP/LX2160A/Include/DeviceTreeInclude/fsl-lx2160a.dtsi
index 0e5500a..46f72d6 100644
--- a/Silicon/NXP/LX2160A/Include/DeviceTreeInclude/fsl-lx2160a.dtsi
+++ b/Silicon/NXP/LX2160A/Include/DeviceTreeInclude/fsl-lx2160a.dtsi
@@ -472,6 +472,46 @@
#size-cells = <0>;
};
+ pcs_mdio5: mdio@0x8c17000 {
+ compatible = "fsl,fman-memac-mdio";
+ reg = <0x0 0x8c17000 0x0 0x1000>;
+ device_type = "mdio";
+ little-endian;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ pcs_mdio6: mdio@0x8c1b000 {
+ compatible = "fsl,fman-memac-mdio";
+ reg = <0x0 0x8c1b000 0x0 0x1000>;
+ device_type = "mdio";
+ little-endian;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ pcs_mdio7: mdio@0x8c1f000 {
+ compatible = "fsl,fman-memac-mdio";
+ reg = <0x0 0x8c1f000 0x0 0x1000>;
+ device_type = "mdio";
+ little-endian;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ pcs_mdio8: mdio@0x8c23000 {
+ compatible = "fsl,fman-memac-mdio";
+ reg = <0x0 0x8c23000 0x0 0x1000>;
+ device_type = "mdio";
+ little-endian;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
serdes1: serdes@1ea0000 {
reg = <0x0 0x1ea0000 0 0x00002000>;
compatible = "fsl,serdes-28g";
diff --git a/Silicon/NXP/Library/MmcLib/MmcInterface.c b/Silicon/NXP/Library/MmcLib/MmcInterface.c
index cd3876b..2f73125 100644
--- a/Silicon/NXP/Library/MmcLib/MmcInterface.c
+++ b/Silicon/NXP/Library/MmcLib/MmcInterface.c
@@ -67,6 +67,7 @@ IsCardReadOnly (
IN VOID *BaseAddress
)
{
+#if 0
SDXC_REGS *Regs;
Regs = BaseAddress;
@@ -77,6 +78,9 @@ IsCardReadOnly (
DEBUG ((DEBUG_ERROR, "SD/MMC : Write Protection PIN is high\n"));
return TRUE;
}
+#else
+ return FALSE;
+#endif
}
/**
--
2.17.1
This source diff could not be displayed because it is too large. You can view the blob instead.
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