projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kw_spi: fix clock prescaler computation
[oweals/u-boot.git]
/
drivers
/
spi
/
soft_spi.c
diff --git
a/drivers/spi/soft_spi.c
b/drivers/spi/soft_spi.c
index 25b589ad7c604dc280c33050c6db4119de1440b6..13df8cb7de167aece971549f0cddf5696cbb8c17 100644
(file)
--- a/
drivers/spi/soft_spi.c
+++ b/
drivers/spi/soft_spi.c
@@
-59,7
+59,7
@@
static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave)
void spi_init (void)
{
#ifdef SPI_INIT
void spi_init (void)
{
#ifdef SPI_INIT
- volatile immap_t *immr = (immap_t *)C
FG
_IMMR;
+ volatile immap_t *immr = (immap_t *)C
ONFIG_SYS
_IMMR;
SPI_INIT;
#endif
SPI_INIT;
#endif
@@
-95,8
+95,8
@@
void spi_free_slave(struct spi_slave *slave)
int spi_claim_bus(struct spi_slave *slave)
{
int spi_claim_bus(struct spi_slave *slave)
{
-#ifdef C
FG
_IMMR
- volatile immap_t *immr = (immap_t *)C
FG
_IMMR;
+#ifdef C
ONFIG_SYS
_IMMR
+ volatile immap_t *immr = (immap_t *)C
ONFIG_SYS
_IMMR;
#endif
struct soft_spi_slave *ss = to_soft_spi(slave);
#endif
struct soft_spi_slave *ss = to_soft_spi(slave);
@@
-132,8
+132,8
@@
void spi_release_bus(struct spi_slave *slave)
int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
const void *dout, void *din, unsigned long flags)
{
int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
const void *dout, void *din, unsigned long flags)
{
-#ifdef C
FG
_IMMR
- volatile immap_t *immr = (immap_t *)C
FG
_IMMR;
+#ifdef C
ONFIG_SYS
_IMMR
+ volatile immap_t *immr = (immap_t *)C
ONFIG_SYS
_IMMR;
#endif
struct soft_spi_slave *ss = to_soft_spi(slave);
uchar tmpdin = 0;
#endif
struct soft_spi_slave *ss = to_soft_spi(slave);
uchar tmpdin = 0;