summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2014-01-08 10:16:25 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2014-01-16 08:07:20 +0900
commit22e75d6d60516f45347c399f2d4efa35c30c773b (patch)
treef33679571efa88879146220b9dd3e726731885cd /drivers
parent82852762ced9e08db3062394020f87bf0b1812b8 (diff)
downloadblackbird-obmc-uboot-22e75d6d60516f45347c399f2d4efa35c30c773b.tar.gz
blackbird-obmc-uboot-22e75d6d60516f45347c399f2d4efa35c30c773b.zip
spi: sh_qspi: Add header file that defines the address of registers
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/sh_qspi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
index edeb42d038..77ede6bba3 100644
--- a/drivers/spi/sh_qspi.c
+++ b/drivers/spi/sh_qspi.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <malloc.h>
#include <spi.h>
+#include <asm/arch/rmobile.h>
#include <asm/io.h>
/* SH QSPI register bit masks <REG>_<BIT> */
@@ -170,7 +171,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
return NULL;
}
- ss->regs = (struct sh_qspi_regs *)CONFIG_SH_QSPI_BASE;
+ ss->regs = (struct sh_qspi_regs *)SH_QSPI_BASE;
/* Init SH QSPI */
sh_qspi_init(ss);
OpenPOWER on IntegriCloud