| .. | .. |
|---|
| 777 | 777 | #endif |
|---|
| 778 | 778 | } |
|---|
| 779 | 779 | |
|---|
| 780 | +int fit_standalone_release(char *id, uintptr_t entry_point) |
|---|
| 781 | +{ |
|---|
| 782 | + /* risc-v configuration: */ |
|---|
| 783 | + /* Reset the scr1 */ |
|---|
| 784 | + writel(0x04000400, CRU_BASE + CRU_SOFTRST_CON26); |
|---|
| 785 | + udelay(100); |
|---|
| 786 | + |
|---|
| 787 | + /* set the scr1 addr */ |
|---|
| 788 | + writel((0xffff0000) | (entry_point >> 16), GRF_BASE + GRF_SOC_CON4); |
|---|
| 789 | + udelay(10); |
|---|
| 790 | + |
|---|
| 791 | + /* release the scr1 */ |
|---|
| 792 | + writel(0x04000000, CRU_BASE + CRU_SOFTRST_CON26); |
|---|
| 793 | + |
|---|
| 794 | + return 0; |
|---|
| 795 | +} |
|---|
| 796 | + |
|---|
| 780 | 797 | #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) |
|---|
| 781 | 798 | static void qos_priority_init(void) |
|---|
| 782 | 799 | { |
|---|