projects
/
ls2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7294936
)
add mode registers macro for orangecrab, extracted from litedram generated files
author
Tobias Platen
<tplaten@posteo.de>
Sun, 20 Nov 2022 15:58:26 +0000
(16:58 +0100)
committer
Tobias Platen
<tplaten@posteo.de>
Sun, 20 Nov 2022 15:58:26 +0000
(16:58 +0100)
coldboot/coldboot.c
patch
|
blob
|
history
diff --git
a/coldboot/coldboot.c
b/coldboot/coldboot.c
index 86318ddc4634633fd923dbae3012f96aa232f33e..65444ee2963a082631fa0cc5b04b6df0b9d2dd8e 100644
(file)
--- a/
coldboot/coldboot.c
+++ b/
coldboot/coldboot.c
@@
-11,6
+11,8
@@
#include "elf64.h"
+#define ORANGECRAB_MODE_REGISTERS 0x0320, 0x0002, 0x0200, 0x0000
+
static inline void mtspr(int sprnum, unsigned long val)
{
__asm__ volatile("mtspr %0,%1" : : "i" (sprnum), "r" (val));