From: Tobias Platen Date: Sun, 20 Nov 2022 15:58:26 +0000 (+0100) Subject: add mode registers macro for orangecrab, extracted from litedram generated files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e0802806a143d7643729c2f3269675e0f01cfd9;p=ls2.git add mode registers macro for orangecrab, extracted from litedram generated files --- 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));