soc/software/bios: remove dataflow
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 30 Nov 2016 14:44:30 +0000 (15:44 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 30 Nov 2016 14:44:30 +0000 (15:44 +0100)
litex/soc/software/bios/Makefile
litex/soc/software/bios/dataflow.c [deleted file]
litex/soc/software/bios/dataflow.h [deleted file]

index b5be871332f426b7c6b72c22d1965920e8c0d341..59fa03bd40c97b8017ffce4c811a433ff61a94f3 100644 (file)
@@ -1,7 +1,7 @@
 include ../include/generated/variables.mak
 include $(SOC_DIRECTORY)/software/common.mak
 
-OBJECTS=isr.o sdram.o main.o boot-helper-$(CPU).o boot.o dataflow.o
+OBJECTS=isr.o sdram.o main.o boot-helper-$(CPU).o boot.o
 
 all: bios.bin
 
diff --git a/litex/soc/software/bios/dataflow.c b/litex/soc/software/bios/dataflow.c
deleted file mode 100644 (file)
index d9aaa6a..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <stdio.h>
-
-#include "dataflow.h"
-
-void print_isd_info(unsigned int baseaddr)
-{
-       volatile unsigned int *regs;
-       int neps;
-       int nbytes;
-       int i, j;
-       int offset;
-       unsigned int ack_count, nack_count, cur_status;
-       
-       regs = (unsigned int *)baseaddr;
-       if((regs[0] != 0x6a) || (regs[1] != 0xb4)) {
-               printf("Incorrect magic number\n");
-               return;
-       }
-       neps = regs[2];
-       nbytes = (regs[3] + 7)/8;
-       
-       regs[4] = 1; // freeze
-       offset = 6; // regs[5] is reset
-       for(i=0;i<neps;i++) {
-               ack_count = 0;
-               for(j=0;j<nbytes;j++) {
-                       ack_count <<= 8;
-                       ack_count |= regs[offset++];
-               }
-               nack_count = 0;
-               for(j=0;j<nbytes;j++) {
-                       nack_count <<= 8;
-                       nack_count |= regs[offset++];
-               }
-               cur_status = regs[offset++];
-               printf("#%d: ACK_CNT:%10u   NAK_CNT:%10u %s %s\n",
-                       i, ack_count, nack_count,
-                       cur_status & 1 ? "stb" : "   ",
-                       cur_status & 2 ? "ack" : "   ");
-       }
-       regs[4] = 0; // unfreeze
-}
diff --git a/litex/soc/software/bios/dataflow.h b/litex/soc/software/bios/dataflow.h
deleted file mode 100644 (file)
index 9659830..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef __DATAFLOW_H
-#define __DATAFLOW_H
-
-void print_isd_info(unsigned int baseaddr);
-
-#endif /* __DATAFLOW_H */
-