Sfoglia il codice sorgente

abcbus: actually enable INP on select, enable UFD-DOS

Actually enable the INP I/O on select.
Enable UFD-DOS, including virtual NVRAM area.
H. Peter Anvin 3 anni fa
parent
commit
8c840cb56c
7 ha cambiato i file con 5432 aggiunte e 5430 eliminazioni
  1. BIN
      fpga/output_files/max80.jbc
  2. BIN
      fpga/output_files/max80.jic
  3. BIN
      fpga/output_files/max80.pof
  4. BIN
      fpga/output_files/max80.sof
  5. 1 1
      fw/abcio.c
  6. 3 1
      fw/abcmem.c
  7. 5428 5428
      fw/boot.mif

BIN
fpga/output_files/max80.jbc


BIN
fpga/output_files/max80.jic


BIN
fpga/output_files/max80.pof


BIN
fpga/output_files/max80.sof


+ 1 - 1
fw/abcio.c

@@ -23,7 +23,7 @@ void abc_select(struct abc_dev *dev)
 	ABC_INP = 0;
     } else {
 	ABC_BUSY_MASK = dev->callback_mask | 0x0082;
-	ABC_INP = dev->inp_data_w;
+	ABC_INP = dev->inp_data_w | (3 << 16);
     }
 }
 

+ 3 - 1
fw/abcmem.c

@@ -15,10 +15,12 @@ struct abc_mem_init {
 
 extern const char rom_ufddos80[];
 
+static char __dram_bss abc80_nvram[2 << 10]; /* Not really NV... */
 static char __dram_bss abc80_extmem[16 << 10];
 
 static const struct abc_mem_init mem_init[] = {
-    { 0x5800,  2 << 10, RD, rom_ufddos80 },
+    { 0x5000,  2 << 10, RD|WR, abc80_nvram },
+    { 0x6000,  4 << 10, RD, rom_ufddos80 },
     { 0x8000, 16 << 10, RD|WR, abc80_extmem },
     { -1U, 0, 0, NULL }
 };

File diff suppressed because it is too large
+ 5428 - 5428
fw/boot.mif


Some files were not shown because too many files changed in this diff