K1/X60 specific CSRs

Hello all,
I’m currently working on the SpacemiT K1 baremetal. I have made good progress, I can run my own firmware after the FSBL.

Now, the manual lacks any documentation on the X60 specific CSRs.
I could find defines in OpenSBI’s source code for CSR_MSETUP, CSR_MHCR, CSR_MHINT and CSR_ML2SETUP, but no detail on the various bitfields, and it’s hard from the source code alone to derive that. I see mainly CSR_ML2SETUP being used, with hard-coded values.

Is there any documentation for the CSRs and maybe more about the X60 core itself?

Thanks!

2 个赞

Sorry i cant help you with this, but i was wondering if you could share how you create a bare metal firmware image? i have been trying to do bare-metal development on my k1 board but i have not been able to figure out how to create a valid image with just the FSBL and my code.