diff options
Diffstat (limited to 'common/soft_spi.c')
-rw-r--r-- | common/soft_spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/soft_spi.c b/common/soft_spi.c index 00a57de8aa7..e4250616c28 100644 --- a/common/soft_spi.c +++ b/common/soft_spi.c @@ -79,7 +79,9 @@ void spi_init (void) */ int spi_xfer(spi_chipsel_type chipsel, int bitlen, uchar *dout, uchar *din) { +#ifdef CFG_IMMR volatile immap_t *immr = (immap_t *)CFG_IMMR; +#endif uchar tmpdin = 0; uchar tmpdout = 0; int j; |