svn commit: r344579 - head/sys/arm64/rockchip

Emmanuel Vadot manu at FreeBSD.org
Tue Feb 26 13:17:10 UTC 2019


Author: manu
Date: Tue Feb 26 13:17:09 2019
New Revision: 344579
URL: https://svnweb.freebsd.org/changeset/base/344579

Log:
  arm64: rockchip: rk805: Add LDO regulators
  
  Add the 3 LDO regulator found in the RK805 Power Management IC.
  
  MFC after:	1 week

Modified:
  head/sys/arm64/rockchip/rk805.c

Modified: head/sys/arm64/rockchip/rk805.c
==============================================================================
--- head/sys/arm64/rockchip/rk805.c	Tue Feb 26 13:16:05 2019	(r344578)
+++ head/sys/arm64/rockchip/rk805.c	Tue Feb 26 13:17:09 2019	(r344579)
@@ -138,6 +138,42 @@ static struct rk805_regdef rk805_regdefs[] = {
 		.voltage_step = 100000,
 		.voltage_nstep = 28,
 	},
+	{
+		.id = RK805_LDO1,
+		.name = "LDO_REG1",
+		.enable_reg = RK805_LDO_EN,
+		.enable_mask = 0x11,
+		.voltage_reg = RK805_LDO1_ON_VSEL,
+		.voltage_mask = 0x1F,
+		.voltage_min = 800000,
+		.voltage_max = 3400000,
+		.voltage_step = 100000,
+		.voltage_nstep = 27,
+	},
+	{
+		.id = RK805_LDO2,
+		.name = "LDO_REG2",
+		.enable_reg = RK805_LDO_EN,
+		.enable_mask = 0x22,
+		.voltage_reg = RK805_LDO2_ON_VSEL,
+		.voltage_mask = 0x1F,
+		.voltage_min = 800000,
+		.voltage_max = 3400000,
+		.voltage_step = 100000,
+		.voltage_nstep = 27,
+	},
+	{
+		.id = RK805_LDO3,
+		.name = "LDO_REG3",
+		.enable_reg = RK805_LDO_EN,
+		.enable_mask = 0x44,
+		.voltage_reg = RK805_LDO3_ON_VSEL,
+		.voltage_mask = 0x1F,
+		.voltage_min = 800000,
+		.voltage_max = 3400000,
+		.voltage_step = 100000,
+		.voltage_nstep = 27,
+	},
 };
 
 static struct rk805_regdef rk808_regdefs[] = {


More information about the svn-src-all mailing list