diff options
author | Pragnesh Patel <pragnesh.patel@sifive.com> | 2020-05-29 11:33:22 +0530 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2020-06-04 09:44:08 +0800 |
commit | 88eec6159ad269ce733b7ca32341d4f19b1d7fc9 (patch) | |
tree | 1f0ab5cbb5da2bfedbbf3ef027e0dc17d477c338 /arch/riscv | |
parent | 05307213c6aca1fdb300c8854c4b5881451b633d (diff) |
riscv: sifive: fu540: Use OTP DM driver for serial environment variable
Use the OTP DM driver to set the serial environment variable.
Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/dts/fu540-c000-u-boot.dtsi | 14 | ||||
-rw-r--r-- | arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/riscv/dts/fu540-c000-u-boot.dtsi b/arch/riscv/dts/fu540-c000-u-boot.dtsi new file mode 100644 index 0000000000..db55773bd2 --- /dev/null +++ b/arch/riscv/dts/fu540-c000-u-boot.dtsi @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * (C) Copyright 2019 SiFive, Inc + */ + +/ { + soc { + otp: otp@10070000 { + compatible = "sifive,fu540-c000-otp"; + reg = <0x0 0x10070000 0x0 0x0FFF>; + fuse-count = <0x1000>; + }; + }; +}; diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi index 2aebfab646..9af089ffe7 100644 --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com> */ +#include "fu540-c000-u-boot.dtsi" + / { aliases { spi0 = &qspi0; |