X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsc520_cdp%2Fsc520_cdp.c;h=cd523248268556ef0f7bbbea46cac1d91a89c846;hb=9b880bd4d86dc568221107516e6d4728c5f93a4e;hp=0fc836c629c7a2ea9c0579e9cc2d2787400721ed;hpb=8bde7f776c77b343aca29b8c7b58464d915ac245;p=u-boot diff --git a/board/sc520_cdp/sc520_cdp.c b/board/sc520_cdp/sc520_cdp.c index 0fc836c629..cd52324826 100644 --- a/board/sc520_cdp/sc520_cdp.c +++ b/board/sc520_cdp/sc520_cdp.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #undef SC520_CDP_DEBUG @@ -557,6 +557,19 @@ void ssi_chip_select(int dev) } } +void spi_eeprom_probe(int x) +{ +} + +int spi_eeprom_read(int x, int offset, char *buffer, int len) +{ + return 0; +} + +int spi_eeprom_write(int x, int offset, char *buffer, int len) +{ + return 0; +} void spi_init_f(void) { @@ -585,6 +598,9 @@ ssize_t spi_read(uchar *addr, int alen, uchar *buffer, int len) #endif #ifdef CONFIG_SC520_CDP_USE_MW res = mw_eeprom_read(2, offset, buffer, len); +#endif +#if !defined(CONFIG_SC520_CDP_USE_SPI) && !defined(CONFIG_SC520_CDP_USE_MW) + res = 0; #endif return res; } @@ -606,6 +622,9 @@ ssize_t spi_write(uchar *addr, int alen, uchar *buffer, int len) #endif #ifdef CONFIG_SC520_CDP_USE_MW res = mw_eeprom_write(2, offset, buffer, len); +#endif +#if !defined(CONFIG_SC520_CDP_USE_SPI) && !defined(CONFIG_SC520_CDP_USE_MW) + res = 0; #endif return res; }