* [PATCH 1/2] fix mxs iomux error in mx23 case
@ 2012-04-05 10:01 Eric Bénard
2012-04-05 10:01 ` [PATCH 2/2] at91sam9g45_devices: fix warning Eric Bénard
0 siblings, 1 reply; 2+ messages in thread
From: Eric Bénard @ 2012-04-05 10:01 UTC (permalink / raw)
To: barebox
e62edd3 mxs: Fix support for BITKEEPER() macro
added this macro in iomux-imxc.c but the macro is not present
in the i.MX23 case. Adding it in iomux-imx23.h fix both
imx23evk_defconfig and chumbyone_defconfig
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
arch/arm/mach-mxs/include/mach/iomux-imx23.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mxs/include/mach/iomux-imx23.h b/arch/arm/mach-mxs/include/mach/iomux-imx23.h
index bebaf56..7b2883c 100644
--- a/arch/arm/mach-mxs/include/mach/iomux-imx23.h
+++ b/arch/arm/mach-mxs/include/mach/iomux-imx23.h
@@ -63,9 +63,13 @@
/* control pad's pull up / bit keeper feature */
#define PE (1 << 10)
+#define BK (1 << 11) /* FIXME useful to distinguish? */
#define PE_PRESENT(x) (!!((x) & PE))
+#define BK_PRESENT(x) (!!((x) & BK))
#define PULLUP(x) ((x) << 13)
+#define BITKEEPER(x) ((x) << 14)
#define GET_PULLUP(x) (!!((x) & (1 << 13)))
+#define GET_BITKEEPER(x) (!!((x) & BITKEEPER(1)))
/* control pad's voltage feature */
#define VE (1 << 14)
--
1.7.7.6
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] at91sam9g45_devices: fix warning
2012-04-05 10:01 [PATCH 1/2] fix mxs iomux error in mx23 case Eric Bénard
@ 2012-04-05 10:01 ` Eric Bénard
0 siblings, 0 replies; 2+ messages in thread
From: Eric Bénard @ 2012-04-05 10:01 UTC (permalink / raw)
To: barebox
this patch fix the following warnings :
arch/arm/mach-at91/at91sam9g45_devices.c:305:3: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
arch/arm/mach-at91/at91sam9g45_devices.c:309:3: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
arch/arm/mach-at91/at91sam9g45_devices.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c
index 05b197c..25a8d80 100644
--- a/arch/arm/mach-at91/at91sam9g45_devices.c
+++ b/arch/arm/mach-at91/at91sam9g45_devices.c
@@ -296,9 +296,9 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) {}
#if defined(CONFIG_DRIVER_SPI_ATMEL)
/* SPI */
-static const unsigned spi0_standard_cs[4] = { AT91_PIN_PB3, AT91_PIN_PB18, AT91_PIN_PB19, AT91_PIN_PD27 };
+static unsigned spi0_standard_cs[4] = { AT91_PIN_PB3, AT91_PIN_PB18, AT91_PIN_PB19, AT91_PIN_PD27 };
-static const unsigned spi1_standard_cs[4] = { AT91_PIN_PB17, AT91_PIN_PD28, AT91_PIN_PD18, AT91_PIN_PD19 };
+static unsigned spi1_standard_cs[4] = { AT91_PIN_PB17, AT91_PIN_PD28, AT91_PIN_PD18, AT91_PIN_PD19 };
static struct at91_spi_platform_data spi_pdata[] = {
[0] = {
--
1.7.7.6
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-05 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-05 10:01 [PATCH 1/2] fix mxs iomux error in mx23 case Eric Bénard
2012-04-05 10:01 ` [PATCH 2/2] at91sam9g45_devices: fix warning Eric Bénard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox