software/bios: mode spisdcard code to liblitesdcard.

This commit is contained in:
Florent Kermarrec 2020-05-18 23:33:34 +02:00
parent 21e2a34c3f
commit b4b84def3c
5 changed files with 4 additions and 4 deletions

View File

@ -497,7 +497,7 @@ void romboot(void)
// SPI HARDWARE BITBANG
#ifdef CSR_SPISDCARD_BASE
#include <spisdcard.h>
#include "spisdcard.h"
void spisdcardboot(void)
{

View File

@ -2,7 +2,7 @@ include ../include/generated/variables.mak
include $(SOC_DIRECTORY)/software/common.mak
OBJECTS=exception.o libc.o errno.o crc16.o crc32.o console.o \
system.o id.o uart.o time.o qsort.o strtod.o spiflash.o spisdcard.o strcasecmp.o
system.o id.o uart.o time.o qsort.o strtod.o spiflash.o strcasecmp.o
all: crt0-ctr.o crt0-xip.o libbase.a libbase-nofloat.a

View File

@ -1,7 +1,7 @@
include ../include/generated/variables.mak
include $(SOC_DIRECTORY)/software/common.mak
OBJECTS=sdcard.o
OBJECTS=sdcard.o spisdcard.o
all: liblitesdcard.a

View File

@ -26,7 +26,7 @@
#ifdef CSR_SPISDCARD_BASE
// Import prototypes for the functions
#include <spisdcard.h>
#include "spisdcard.h"
// SPI
// cs line - high to indicate DESELECT