Browse Source

Revert "ls2k map 0x1fc00000 to 0x0f900000 and copy dtb to memory."

This reverts commit d2ee3792ae09fccac578b7d04bd69689ee659a65.
master
Chong Qiao 4 years ago
parent
commit
0e319e9c04
  1. 5
      Targets/LS2K/ls2k/tgt_machdep.c

5
Targets/LS2K/ls2k/tgt_machdep.c

@ -121,7 +121,6 @@ int vga_available = 0;
#include "spinand_mt29f.h" #include "spinand_mt29f.h"
#include "spinand_lld.h" #include "spinand_lld.h"
#include "m25p80.h" #include "m25p80.h"
#include "target/load_dtb.h"
int tgt_i2cread(int type, unsigned char *addr, int addrlen, unsigned char reg, int tgt_i2cread(int type, unsigned char *addr, int addrlen, unsigned char reg,
unsigned char *buf, int count); unsigned char *buf, int count);
@ -382,9 +381,7 @@ void initmips(unsigned long long raw_memsz)
#ifdef DEBUG_BY_EJTAG #ifdef DEBUG_BY_EJTAG
*(volatile int *)0xbfe10080 = 0x001000f0; *(volatile int *)0xbfe10080 = 0x001000f0;
#else #else
memcpy(0xaf900000+DTB_OFFS, 0xbfc00000+DTB_OFFS, DTB_SIZE); *(volatile int *)0xbfe10080 = 0x1fc000d2;
//*(volatile int *)0xbfe10080 = 0x1fc000d2;
*(volatile int *)0xbfe10080 = 0x0f9000f0;
#endif #endif
#if NNAND #if NNAND
#ifdef CONFIG_LS2K_NAND #ifdef CONFIG_LS2K_NAND

Loading…
Cancel
Save