Guo Ren
49e422c5ad
lib: utils: reset: Add T-HEAD sample platform reset driver
This driver is for T-HEAD test chip, fpga. It could work with
all T-HEAD riscv processors: C9xx series.
example1: (Using io-regs for reset)
reset: reset-sample {
compatible = "thead,reset-sample";
plic-delegate = <0xff 0xd81ffffc>;
entry-reg = <0xff 0xff019050>;
entry-cnt = <4>;
control-reg = <0xff 0xff015004>;
control-val = <0x1c>;
csr-copy = <0x7f3 0x7c0 0x7c1 0x7c2 0x7c3 0x7c5 0x7cc>;
};
example2: (Using csr-regs for reset)
reset: reset-sample {
compatible = "thead,reset-sample";
plic-delegate = <0xff 0xd81ffffc>;
using-csr-reset;
csr-copy = <0x7c0 0x7c1 0x7c2 0x7c3 0x7c5 0x7cc
0x3b0 0x3b1 0x3b2 0x3b3
0x3b4 0x3b5 0x3b6 0x3b7
0x3a0>;
};
example3: (Only delegate plic enable to S-mode)
reset: reset-sample {
compatible = "thead,reset-sample";
plic-delegate = <0xff 0xd81ffffc>;
};
After this patch, all T-HEAD c9xx would use platform/generic with fw_dynamic
as default:
CROSS_COMPILE=riscv64-linux-gnu- PLATFORM=generic FW_PIC=y /usr/bin/make
The platform/thead will be deprecated.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
2021-04-22 15:13:53 +05:30
..
2021-03-22 16:02:48 +05:30
2021-04-22 15:13:53 +05:30
2020-03-28 13:32:38 +05:30
2021-04-22 15:13:53 +05:30
2021-03-19 15:00:50 +05:30
2020-09-09 09:32:02 +05:30
2019-07-26 15:49:49 +05:30
2019-04-24 09:49:46 +05:30
2021-04-09 18:48:50 +05:30
2020-03-11 15:29:45 +05:30
2020-07-14 17:03:30 +05:30
2020-03-28 13:32:58 +05:30
2021-03-22 16:02:48 +05:30
2021-04-05 13:43:08 +05:30
2021-04-13 10:56:51 +05:30
2021-03-12 09:32:53 +05:30
2021-03-03 13:54:44 +05:30
2020-03-28 13:32:07 +05:30
2020-06-20 10:36:13 +05:30
2019-08-16 08:42:55 +05:30
2021-03-03 10:19:18 +05:30
2020-10-20 11:19:13 +05:30
2020-06-15 09:24:27 +05:30
2021-03-03 13:51:15 +05:30
2020-03-28 13:32:11 +05:30
2020-01-07 12:11:48 +05:30
2020-03-28 13:32:47 +05:30
2020-01-22 12:13:30 +05:30
2020-05-10 09:59:24 +05:30
2020-03-28 13:32:14 +05:30
2021-03-22 16:02:48 +05:30
2021-03-22 16:02:48 +05:30
2020-07-29 12:03:45 +05:30
2020-12-01 17:10:31 +05:30
2020-03-28 13:32:55 +05:30
2021-01-07 09:53:19 +05:30
2021-04-01 10:48:35 +05:30
2021-04-09 18:37:06 +05:30
2020-03-28 13:32:01 +05:30
2021-01-18 18:47:19 +05:30