From 5e0802806a143d7643729c2f3269675e0f01cfd9 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Sun, 20 Nov 2022 16:58:26 +0100 Subject: [PATCH] add mode registers macro for orangecrab, extracted from litedram generated files --- coldboot/coldboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 86318dd..65444ee 100644 --- 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)); -- 2.30.2