Update A64 ATF patches
This commit is contained in:
parent
ff09893542
commit
524fffa2ef
@ -1,13 +0,0 @@
|
||||
diff --git a/plat/sun50iw1p1/sunxi_power.c b/plat/sun50iw1p1/sunxi_power.c
|
||||
index 5aa63fe4..95bef606 100644
|
||||
--- a/plat/sun50iw1p1/sunxi_power.c
|
||||
+++ b/plat/sun50iw1p1/sunxi_power.c
|
||||
@@ -126,7 +126,7 @@ static int axp803_initial_setup(void)
|
||||
ret = sunxi_rsb_read(0x24); /* read DCDC5 register */
|
||||
if ((ret & 0x7f) == 0x26) { /* check for 1.24V value */
|
||||
NOTICE("PMIC: fixing DRAM voltage from 1.24V to 1.36V\n");
|
||||
- sunxi_rsb_write(0x24, 0x2c);
|
||||
+ sunxi_rsb_write(0x24, 0x25);
|
||||
}
|
||||
|
||||
sunxi_rsb_write(0x15, 0x1a); /* DLDO1 = VCC3V3_HDMI voltage = 3.3V */
|
||||
@ -1,13 +0,0 @@
|
||||
diff --git a/plat/sun50iw1p1/sunxi_power.c b/plat/sun50iw1p1/sunxi_power.c
|
||||
index 5aa63fe4..95bef606 100644
|
||||
--- a/plat/sun50iw1p1/sunxi_power.c
|
||||
+++ b/plat/sun50iw1p1/sunxi_power.c
|
||||
@@ -126,7 +126,7 @@ static int axp803_initial_setup(void)
|
||||
ret = sunxi_rsb_read(0x24); /* read DCDC5 register */
|
||||
if ((ret & 0x7f) == 0x26) { /* check for 1.24V value */
|
||||
NOTICE("PMIC: fixing DRAM voltage from 1.24V to 1.36V\n");
|
||||
- sunxi_rsb_write(0x24, 0x2c);
|
||||
+ sunxi_rsb_write(0x24, 0x25);
|
||||
}
|
||||
|
||||
sunxi_rsb_write(0x15, 0x1a); /* DLDO1 = VCC3V3_HDMI voltage = 3.3V */
|
||||
@ -0,0 +1,19 @@
|
||||
diff --git a/plat/sun50iw1p1/sunxi_power.c b/plat/sun50iw1p1/sunxi_power.c
|
||||
index db79047..fb1b108 100644
|
||||
--- a/plat/sun50iw1p1/sunxi_power.c
|
||||
+++ b/plat/sun50iw1p1/sunxi_power.c
|
||||
@@ -261,12 +261,8 @@ static int pmic_setup(void)
|
||||
* changes. This should be further confined once we are able to
|
||||
* reliably detect a Pine64 board.
|
||||
*/
|
||||
- ret = sunxi_pmic_read(0x24); /* read DCDC5 register */
|
||||
- if ((ret & 0x7f) == 0x26) { /* check for 1.24V value */
|
||||
- NOTICE("PMIC: fixing DRAM voltage from 1.24V to 1.36V\n");
|
||||
- sunxi_pmic_write(0x24, 0x2c);
|
||||
- }
|
||||
-
|
||||
+ sunxi_pmic_write(0x24, 0x25);
|
||||
+
|
||||
sunxi_pmic_write(0x15, 0x1a); /* DLDO1 = VCC3V3_HDMI voltage = 3.3V */
|
||||
|
||||
sunxi_pmic_write(0x16, 0x12); /* DLDO2 = VCC2V5_EDP voltage = 2.5V */
|
||||
@ -0,0 +1,19 @@
|
||||
diff --git a/plat/sun50iw1p1/sunxi_power.c b/plat/sun50iw1p1/sunxi_power.c
|
||||
index db79047..fb1b108 100644
|
||||
--- a/plat/sun50iw1p1/sunxi_power.c
|
||||
+++ b/plat/sun50iw1p1/sunxi_power.c
|
||||
@@ -261,12 +261,8 @@ static int pmic_setup(void)
|
||||
* changes. This should be further confined once we are able to
|
||||
* reliably detect a Pine64 board.
|
||||
*/
|
||||
- ret = sunxi_pmic_read(0x24); /* read DCDC5 register */
|
||||
- if ((ret & 0x7f) == 0x26) { /* check for 1.24V value */
|
||||
- NOTICE("PMIC: fixing DRAM voltage from 1.24V to 1.36V\n");
|
||||
- sunxi_pmic_write(0x24, 0x2c);
|
||||
- }
|
||||
-
|
||||
+ sunxi_pmic_write(0x24, 0x25);
|
||||
+
|
||||
sunxi_pmic_write(0x15, 0x1a); /* DLDO1 = VCC3V3_HDMI voltage = 3.3V */
|
||||
|
||||
sunxi_pmic_write(0x16, 0x12); /* DLDO2 = VCC2V5_EDP voltage = 2.5V */
|
||||
41
patch/atf/atf-sunxi64/enable-additional-regulators.patch
Normal file
41
patch/atf/atf-sunxi64/enable-additional-regulators.patch
Normal file
@ -0,0 +1,41 @@
|
||||
diff --git a/plat/sun50iw1p1/sunxi_power.c b/plat/sun50iw1p1/sunxi_power.c
|
||||
index 0c2487e..db79047 100644
|
||||
--- a/plat/sun50iw1p1/sunxi_power.c
|
||||
+++ b/plat/sun50iw1p1/sunxi_power.c
|
||||
@@ -217,6 +217,9 @@ static int pmic_setup(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
+ /* Set DCDC2/CPU voltage to 1.1V */
|
||||
+ sunxi_pmic_write(0x21, 60);
|
||||
+
|
||||
ret = sunxi_pmic_read(0x20);
|
||||
if (ret != 0x0e && ret != 0x11) {
|
||||
int voltage = (ret & 0x1f) * 10 + 16;
|
||||
@@ -242,9 +245,9 @@ static int pmic_setup(void)
|
||||
return -3;
|
||||
}
|
||||
|
||||
- if ((ret & 0xc9) != 0xc9) {
|
||||
+ if ((ret & 0xd9) != 0xd9) {
|
||||
/* Enable DC1SW to power PHY, DLDO4 for WiFi and DLDO1 for HDMI */
|
||||
- ret = sunxi_pmic_write(0x12, ret | 0xc8);
|
||||
+ ret = sunxi_pmic_write(0x12, ret | 0xd8);
|
||||
if (ret < 0) {
|
||||
NOTICE("PMIC: error %d enabling DC1SW/DLDO4/DLDO1\n", ret);
|
||||
return -4;
|
||||
@@ -266,6 +269,14 @@ static int pmic_setup(void)
|
||||
|
||||
sunxi_pmic_write(0x15, 0x1a); /* DLDO1 = VCC3V3_HDMI voltage = 3.3V */
|
||||
|
||||
+ sunxi_pmic_write(0x16, 0x12); /* DLDO2 = VCC2V5_EDP voltage = 2.5V */
|
||||
+ sunxi_pmic_write(0x1c, 0xa); /* FLDO1 = VCC1V2_EDP voltage = 1.2V */
|
||||
+ sunxi_pmic_write(0x91, 0x1a); /* GPIO0LDO voltage = 3.3V */
|
||||
+ sunxi_pmic_write(0x90, 0x3); /* Enable GPIO0LDO */
|
||||
+ ret = sunxi_pmic_read(0x13);
|
||||
+ /* Enable FLDO1 to power up eDP bridge */
|
||||
+ ret = sunxi_pmic_write(0x13, ret | 0x4);
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user