* [U-Boot] [PATCH I2C] fix: error ATMEL_FIO_BASE undeclared, if use I2C_Soft on AT91
@ 2011-12-20 16:05 esw at bus-elektronik.de
2012-01-11 7:16 ` Heiko Schocher
0 siblings, 1 reply; 2+ messages in thread
From: esw at bus-elektronik.de @ 2011-12-20 16:05 UTC (permalink / raw)
To: u-boot
* Since AT91 name schema was changed to ATMEL_BASE_xxx, I2C_SOFT
on AT91 devices fails with 'error: ATMEL_FIO_BASE undeclared'
* change ATMEL_PIO_BASE to ATMEL_BASE_PIOA will fix this
Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
---
include/i2c.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/i2c.h b/include/i2c.h
index ee31034..1f35acf 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -78,7 +78,7 @@
# elif (defined(CONFIG_AT91RM9200) || \
defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261) || \
defined(CONFIG_AT91SAM9263)) && !defined(CONFIG_AT91_LEGACY)
-# define I2C_SOFT_DECLARATIONS at91_pio_t *pio = (at91_pio_t *) AT91_PIO_BASE;
+# define I2C_SOFT_DECLARATIONS at91_pio_t *pio = (at91_pio_t *) ATMEL_BASE_PIOA;
# else
# define I2C_SOFT_DECLARATIONS
# endif
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH I2C] fix: error ATMEL_FIO_BASE undeclared, if use I2C_Soft on AT91
2011-12-20 16:05 [U-Boot] [PATCH I2C] fix: error ATMEL_FIO_BASE undeclared, if use I2C_Soft on AT91 esw at bus-elektronik.de
@ 2012-01-11 7:16 ` Heiko Schocher
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2012-01-11 7:16 UTC (permalink / raw)
To: u-boot
Hello esw at bus-elektronik.de (Jens?),
esw at bus-elektronik.de wrote:
> * Since AT91 name schema was changed to ATMEL_BASE_xxx, I2C_SOFT
> on AT91 devices fails with 'error: ATMEL_FIO_BASE undeclared'
> * change ATMEL_PIO_BASE to ATMEL_BASE_PIOA will fix this
>
> Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
> ---
> include/i2c.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks!
[hs at pollux u-boot-i2c]$ ./MAKEALL -a arm -s at91
[...]
--------------------- SUMMARY ----------------------------
Boards compiled: 55
----------------------------------------------------------
[hs at pollux u-boot-i2c]$
Applied to u-boot-i2c.git
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-11 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 16:05 [U-Boot] [PATCH I2C] fix: error ATMEL_FIO_BASE undeclared, if use I2C_Soft on AT91 esw at bus-elektronik.de
2012-01-11 7:16 ` Heiko Schocher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox