mirror of
https://github.com/paolosabatino/multitool.git
synced 2024-11-25 07:36:13 +00:00
49 lines
1.3 KiB
Diff
49 lines
1.3 KiB
Diff
From c871e961036d58bf1d66b7e79be85777158b7137 Mon Sep 17 00:00:00 2001
|
|
From: Jonas Karlman <jonas@kwiboo.se>
|
|
Date: Sat, 18 Aug 2018 17:26:35 +0200
|
|
Subject: [PATCH] rockchip: rk3328: get serial and ethaddr from efuse
|
|
|
|
---
|
|
arch/arm/dts/rk3328.dtsi | 14 ++++++++++++++
|
|
configs/evb-rk3328_defconfig | 2 ++
|
|
2 files changed, 16 insertions(+)
|
|
|
|
diff --git a/arch/arm/dts/rk3328.dtsi b/arch/arm/dts/rk3328.dtsi
|
|
index 670b98d6fa..88cc185b96 100644
|
|
--- a/arch/arm/dts/rk3328.dtsi
|
|
+++ b/arch/arm/dts/rk3328.dtsi
|
|
@@ -341,6 +341,20 @@
|
|
};
|
|
};
|
|
|
|
+ efuse: efuse@ff260000 {
|
|
+ compatible = "rockchip,rk3328-efuse";
|
|
+ reg = <0x0 0xff260000 0x0 0x80>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ clocks = <&cru SCLK_EFUSE>;
|
|
+ clock-names = "pclk_efuse";
|
|
+
|
|
+ /* Data cells */
|
|
+ cpu_id: cpu-id@7 {
|
|
+ reg = <0x07 0x10>;
|
|
+ };
|
|
+ };
|
|
+
|
|
saradc: saradc@ff280000 {
|
|
compatible = "rockchip,rk3328-saradc", "rockchip,saradc";
|
|
reg = <0x0 0xff280000 0x0 0x100>;
|
|
diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig
|
|
index 79535c760d..0897a28e1d 100644
|
|
--- a/configs/evb-rk3328_defconfig
|
|
+++ b/configs/evb-rk3328_defconfig
|
|
@@ -52,6 +52,8 @@ CONFIG_SPL_CLK=y
|
|
CONFIG_ROCKCHIP_GPIO=y
|
|
CONFIG_SYS_I2C_ROCKCHIP=y
|
|
CONFIG_DM_KEY=y
|
|
+CONFIG_MISC=y
|
|
+CONFIG_ROCKCHIP_EFUSE=y
|
|
CONFIG_MMC_DW=y
|
|
CONFIG_MMC_DW_ROCKCHIP=y
|
|
CONFIG_PHY=y
|