mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-22 21:08:49 +00:00
Attempt to improve stability on Helios64 (#2680)
* Adjust the RK808 buck step to improve stability * Adjust vdd_log and enable vdd_center init voltage For some reason, regulator-init-microvolt property under PMIC does not applied. Set the voltage on board file.
This commit is contained in:
parent
e130114378
commit
eefad69215
2 changed files with 34 additions and 5 deletions
|
@ -181,7 +181,7 @@ index 00000000..2988a209
|
|||
+};
|
||||
+
|
||||
+&vdd_log {
|
||||
+ regulator-init-microvolt = <900000>;
|
||||
+ regulator-init-microvolt = <930000>;
|
||||
+};
|
||||
diff --git a/arch/arm/dts/rk3399-kobol-helios64.dts b/arch/arm/dts/rk3399-kobol-helios64.dts
|
||||
new file mode 100644
|
||||
|
@ -1345,7 +1345,7 @@ index 254b9c5b..5f89bf6e 100644
|
|||
@@ -26,6 +26,22 @@ config TARGET_PINEBOOK_PRO_RK3399
|
||||
with 4Gb RAM, onboard eMMC, USB-C, a USB3 and USB2 port,
|
||||
1920*1080 screen and all the usual laptop features.
|
||||
|
||||
|
||||
+config TARGET_HELIOS64
|
||||
+ bool "Kobol Innovations Helios64"
|
||||
+ select BOARD_LATE_INIT
|
||||
|
@ -1365,7 +1365,7 @@ index 254b9c5b..5f89bf6e 100644
|
|||
config TARGET_PUMA_RK3399
|
||||
bool "Theobroma Systems RK3399-Q7 (Puma)"
|
||||
help
|
||||
@@ -151,6 +167,7 @@ endif # BOOTCOUNT_LIMIT
|
||||
@@ -153,6 +169,7 @@ endif # BOOTCOUNT_LIMIT
|
||||
|
||||
source "board/firefly/roc-pc-rk3399/Kconfig"
|
||||
source "board/google/gru/Kconfig"
|
||||
|
@ -1431,7 +1431,7 @@ new file mode 100644
|
|||
index 00000000..c7a0efa4
|
||||
--- /dev/null
|
||||
+++ b/board/kobol/helios64/helios64.c
|
||||
@@ -0,0 +1,304 @@
|
||||
@@ -0,0 +1,321 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0+
|
||||
+/*
|
||||
+ * (C) Copyright 2020 Aditya Prayoga (aditya@kobol.io)
|
||||
|
@ -1516,6 +1516,22 @@ index 00000000..c7a0efa4
|
|||
+ rk_setreg(&pmugrf->soc_con0, 0 << PMUGRF_CON0_PMU1830_VOL_SHIFT);
|
||||
+}
|
||||
+
|
||||
+static void init_vdd_center(void)
|
||||
+{
|
||||
+ struct udevice *regulator;
|
||||
+ struct dm_regulator_uclass_platdata *uc_pdata;
|
||||
+ int ret;
|
||||
+
|
||||
+ ret = regulator_get_by_platname("vdd_center", ®ulator);
|
||||
+ if (ret)
|
||||
+ return;
|
||||
+
|
||||
+ uc_pdata = dev_get_uclass_platdata(regulator);
|
||||
+ ret = regulator_set_value(regulator, uc_pdata->init_uV);
|
||||
+ if (ret)
|
||||
+ debug("%s vdd_center init fail! ret %d\n", __func__, ret);
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
+ * Swap mmc0 and mmc1 in boot_targets if booted from SD-Card.
|
||||
+ *
|
||||
|
@ -1607,6 +1623,7 @@ index 00000000..c7a0efa4
|
|||
+ int ret;
|
||||
+
|
||||
+ setup_iodomain();
|
||||
+ init_vdd_center();
|
||||
+ set_board_info();
|
||||
+
|
||||
+ ret = rockchip_cpuid_from_efuse(cpuid_offset, cpuid_length, cpuid);
|
||||
|
@ -2210,6 +2227,6 @@ index 00000000..6fca9a6b
|
|||
+#endif
|
||||
+
|
||||
+#endif
|
||||
--
|
||||
--
|
||||
Created with Armbian build tools https://github.com/armbian/build
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue