From 0f57451f30a83129e061ac91fbed455c00513feb Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 30 Nov 2016 15:44:30 +0100 Subject: [PATCH] soc/software/bios: remove dataflow --- litex/soc/software/bios/Makefile | 2 +- litex/soc/software/bios/dataflow.c | 42 ------------------------------ litex/soc/software/bios/dataflow.h | 7 ----- 3 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 litex/soc/software/bios/dataflow.c delete mode 100644 litex/soc/software/bios/dataflow.h diff --git a/litex/soc/software/bios/Makefile b/litex/soc/software/bios/Makefile index b5be8713..59fa03bd 100644 --- a/litex/soc/software/bios/Makefile +++ b/litex/soc/software/bios/Makefile @@ -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 index d9aaa6ab..00000000 --- a/litex/soc/software/bios/dataflow.c +++ /dev/null @@ -1,42 +0,0 @@ -#include - -#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