add mode registers macro for orangecrab, extracted from litedram generated files
authorTobias Platen <tplaten@posteo.de>
Sun, 20 Nov 2022 15:58:26 +0000 (16:58 +0100)
committerTobias Platen <tplaten@posteo.de>
Sun, 20 Nov 2022 15:58:26 +0000 (16:58 +0100)
coldboot/coldboot.c

index 86318ddc4634633fd923dbae3012f96aa232f33e..65444ee2963a082631fa0cc5b04b6df0b9d2dd8e 100644 (file)
@@ -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));