<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/lib/utils/reset/fdt_reset_thead_asm.S, branch v1.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/lib/utils/reset/fdt_reset_thead_asm.S?h=v1.2</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/lib/utils/reset/fdt_reset_thead_asm.S?h=v1.2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2021-04-22T09:43:53Z</updated>
<entry>
<title>lib: utils: reset: Add T-HEAD sample platform reset driver</title>
<updated>2021-04-22T09:43:53Z</updated>
<author>
<name>Guo Ren</name>
<email>guoren@linux.alibaba.com</email>
</author>
<published>2021-04-17T16:26:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=49e422c5ad7abee9be0bb1066b1db65676e61985'/>
<id>urn:sha1:49e422c5ad7abee9be0bb1066b1db65676e61985</id>
<content type='text'>
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 = &lt;0xff 0xd81ffffc&gt;;
	entry-reg = &lt;0xff 0xff019050&gt;;
	entry-cnt = &lt;4&gt;;
	control-reg = &lt;0xff 0xff015004&gt;;
	control-val = &lt;0x1c&gt;;
	csr-copy = &lt;0x7f3 0x7c0 0x7c1 0x7c2 0x7c3 0x7c5 0x7cc&gt;;
};

example2: (Using csr-regs for reset)
reset: reset-sample {
	compatible = "thead,reset-sample";
	plic-delegate = &lt;0xff 0xd81ffffc&gt;;
	using-csr-reset;
	csr-copy = &lt;0x7c0 0x7c1 0x7c2 0x7c3 0x7c5 0x7cc
		    0x3b0 0x3b1 0x3b2 0x3b3
		    0x3b4 0x3b5 0x3b6 0x3b7
		    0x3a0&gt;;
};

example3: (Only delegate plic enable to S-mode)
reset: reset-sample {
	compatible = "thead,reset-sample";
	plic-delegate = &lt;0xff 0xd81ffffc&gt;;
};

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 &lt;guoren@linux.alibaba.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
</feed>
