* [U-Boot] [PATCH 1/3] mx28evk: add RTC support
@ 2012-01-18 11:33 Matthias Fuchs
2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs
` (3 more replies)
0 siblings, 4 replies; 18+ messages in thread
From: Matthias Fuchs @ 2012-01-18 11:33 UTC (permalink / raw)
To: u-boot
This patch adds support for the MX28 internal RTC
and enables u-boot's date command.
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
---
include/configs/mx28evk.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index bea46e7..8a752aa 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -56,6 +56,7 @@
#define CONFIG_CMD_FAT
#define CONFIG_CMD_CACHE
+#define CONFIG_CMD_DATE
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_GPIO
#define CONFIG_CMD_MII
@@ -150,6 +151,13 @@
#endif
/*
+ * RTC
+ */
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MXS
+#endif
+
+/*
* Boot Linux
*/
#define CONFIG_CMDLINE_TAG
--
1.6.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [U-Boot] [PATCH 2/3] mx28evk: add USB support 2012-01-18 11:33 [U-Boot] [PATCH 1/3] mx28evk: add RTC support Matthias Fuchs @ 2012-01-18 11:33 ` Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs ` (2 more replies) 2012-01-18 16:07 ` [U-Boot] [PATCH 1/3] mx28evk: add RTC support Marek Vasut ` (2 subsequent siblings) 3 siblings, 3 replies; 18+ messages in thread From: Matthias Fuchs @ 2012-01-18 11:33 UTC (permalink / raw) To: u-boot This patch enables USB host support on the MX28EVK board. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> --- board/freescale/mx28evk/mx28evk.c | 7 +++++++ include/configs/mx28evk.h | 12 ++++++++++++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c index 0d04d44..1bc83e9 100644 --- a/board/freescale/mx28evk/mx28evk.c +++ b/board/freescale/mx28evk/mx28evk.c @@ -52,6 +52,13 @@ int board_early_init_f(void) /* SSP2 clock at 96MHz */ mx28_set_sspclk(MXC_SSPCLK2, 96000, 0); +#ifdef CONFIG_CMD_USB + mxs_iomux_setup_pad(MX28_PAD_SSP2_SS1__USB1_OVERCURRENT); + mxs_iomux_setup_pad(MX28_PAD_AUART2_RX__GPIO_3_8 | + MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL); + gpio_direction_output(MX28_PAD_AUART2_RX__GPIO_3_8, 1); +#endif + return 0; } diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index 8a752aa..8f791aa 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -64,6 +64,7 @@ #define CONFIG_CMD_NET #define CONFIG_CMD_NFS #define CONFIG_CMD_PING +#define CONFIG_CMD_USB /* * Memory configurations @@ -158,6 +159,17 @@ #endif /* + * USB + */ +#ifdef CONFIG_CMD_USB +#define CONFIG_USB_EHCI +#define CONFIG_USB_EHCI_MXS +#define CONFIG_EHCI_MXS_PORT 1 +#define CONFIG_EHCI_IS_TDI +#define CONFIG_USB_STORAGE +#endif + +/* * Boot Linux */ #define CONFIG_CMDLINE_TAG -- 1.6.1 ^ permalink raw reply related [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: add SPI support 2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs @ 2012-01-18 11:33 ` Matthias Fuchs 2012-01-18 16:07 ` Marek Vasut ` (2 more replies) 2012-01-30 16:14 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Fabio Estevam 2012-02-07 8:13 ` Stefano Babic 2 siblings, 3 replies; 18+ messages in thread From: Matthias Fuchs @ 2012-01-18 11:33 UTC (permalink / raw) To: u-boot This patch adds SPI support for the MX28EVK. Support for an optionally installed SPI flash is also added. An example configuration for redundant envrionment from SPI flash is also added but disabled by default. This patch has been tested on a MX28EVK Rev. D with an installed SST25VF032B 32Mbit SPI flash. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> --- board/freescale/mx28evk/iomux.c | 8 +++++++ include/configs/mx28evk.h | 44 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/board/freescale/mx28evk/iomux.c b/board/freescale/mx28evk/iomux.c index 904e3f3..396761b 100644 --- a/board/freescale/mx28evk/iomux.c +++ b/board/freescale/mx28evk/iomux.c @@ -28,6 +28,7 @@ #define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) #define MUX_CONFIG_ENET (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) #define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL) +#define MUX_CONFIG_SSP2 (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP) const iomux_cfg_t iomux_setup[] = { /* DUART */ @@ -130,6 +131,13 @@ const iomux_cfg_t iomux_setup[] = { MX28_PAD_EMI_CE0N__EMI_CE0N | MUX_CONFIG_EMI, MX28_PAD_EMI_CE1N__EMI_CE1N | MUX_CONFIG_EMI, MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI, + + /* SPI2 (for SPI flash) */ + MX28_PAD_SSP2_SCK__SSP2_SCK | MUX_CONFIG_SSP2, + MX28_PAD_SSP2_MOSI__SSP2_CMD | MUX_CONFIG_SSP2, + MX28_PAD_SSP2_MISO__SSP2_D0 | MUX_CONFIG_SSP2, + MX28_PAD_SSP2_SS0__SSP2_D3 | + (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP), }; void board_init_ll(void) diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index 8f791aa..04967d7 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -64,6 +64,8 @@ #define CONFIG_CMD_NET #define CONFIG_CMD_NFS #define CONFIG_CMD_PING +#define CONFIG_CMD_SF +#define CONFIG_CMD_SPI #define CONFIG_CMD_USB /* @@ -127,9 +129,11 @@ * MMC Driver */ #define CONFIG_ENV_IS_IN_MMC -#define CONFIG_ENV_OFFSET (256 * 1024) -#define CONFIG_ENV_SIZE (16 * 1024) -#define CONFIG_SYS_MMC_ENV_DEV 0 +#ifdef CONFIG_ENV_IS_IN_MMC + #define CONFIG_ENV_OFFSET (256 * 1024) + #define CONFIG_ENV_SIZE (16 * 1024) + #define CONFIG_SYS_MMC_ENV_DEV 0 +#endif #define CONFIG_CMD_SAVEENV #ifdef CONFIG_CMD_MMC #define CONFIG_MMC @@ -170,6 +174,40 @@ #endif /* + * SPI + */ +#ifdef CONFIG_CMD_SPI +#define CONFIG_HARD_SPI +#define CONFIG_MXS_SPI +#define CONFIG_SPI_HALF_DUPLEX +#define CONFIG_DEFAULT_SPI_BUS 2 +#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 + +/* SPI Flash */ +#ifdef CONFIG_CMD_SF +#define CONFIG_SPI_FLASH +/* this may vary and depends on the installed chip */ +#define CONFIG_SPI_FLASH_SST +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 +#define CONFIG_SF_DEFAULT_SPEED 24000000 + +/* (redundant) environemnt in SPI flash */ +#undef CONFIG_ENV_IS_IN_SPI_FLASH +#ifdef CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT +#define CONFIG_ENV_SIZE 0x1000 /* 4KB */ +#define CONFIG_ENV_OFFSET 0x40000 /* 256K */ +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_ENV_SECT_SIZE 0x1000 +#define CONFIG_ENV_SPI_CS 0 +#define CONFIG_ENV_SPI_BUS 2 +#define CONFIG_ENV_SPI_MAX_HZ 24000000 +#define CONFIG_ENV_SPI_MODE SPI_MODE_0 +#endif +#endif +#endif + +/* * Boot Linux */ #define CONFIG_CMDLINE_TAG -- 1.6.1 ^ permalink raw reply related [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: add SPI support 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs @ 2012-01-18 16:07 ` Marek Vasut 2012-01-18 18:49 ` Matthias Fuchs 2012-01-23 21:34 ` Fabio Estevam 2012-02-07 8:14 ` Stefano Babic 2 siblings, 1 reply; 18+ messages in thread From: Marek Vasut @ 2012-01-18 16:07 UTC (permalink / raw) To: u-boot > This patch adds SPI support for the MX28EVK. Support for > an optionally installed SPI flash is also added. An example > configuration for redundant envrionment from SPI flash is also > added but disabled by default. > > This patch has been tested on a MX28EVK Rev. D with an installed > SST25VF032B 32Mbit SPI flash. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > --- > board/freescale/mx28evk/iomux.c | 8 +++++++ > include/configs/mx28evk.h | 44 > ++++++++++++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), > 3 deletions(-) > > diff --git a/board/freescale/mx28evk/iomux.c > b/board/freescale/mx28evk/iomux.c index 904e3f3..396761b 100644 > --- a/board/freescale/mx28evk/iomux.c > +++ b/board/freescale/mx28evk/iomux.c > @@ -28,6 +28,7 @@ > #define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) > #define MUX_CONFIG_ENET (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) > #define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL) > +#define MUX_CONFIG_SSP2 (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP) > > const iomux_cfg_t iomux_setup[] = { > /* DUART */ > @@ -130,6 +131,13 @@ const iomux_cfg_t iomux_setup[] = { > MX28_PAD_EMI_CE0N__EMI_CE0N | MUX_CONFIG_EMI, > MX28_PAD_EMI_CE1N__EMI_CE1N | MUX_CONFIG_EMI, > MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI, > + > + /* SPI2 (for SPI flash) */ > + MX28_PAD_SSP2_SCK__SSP2_SCK | MUX_CONFIG_SSP2, > + MX28_PAD_SSP2_MOSI__SSP2_CMD | MUX_CONFIG_SSP2, > + MX28_PAD_SSP2_MISO__SSP2_D0 | MUX_CONFIG_SSP2, > + MX28_PAD_SSP2_SS0__SSP2_D3 | > + (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP), > }; > > void board_init_ll(void) > diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h > index 8f791aa..04967d7 100644 > --- a/include/configs/mx28evk.h > +++ b/include/configs/mx28evk.h > @@ -64,6 +64,8 @@ > #define CONFIG_CMD_NET > #define CONFIG_CMD_NFS > #define CONFIG_CMD_PING > +#define CONFIG_CMD_SF > +#define CONFIG_CMD_SPI > #define CONFIG_CMD_USB > > /* > @@ -127,9 +129,11 @@ > * MMC Driver > */ > #define CONFIG_ENV_IS_IN_MMC > -#define CONFIG_ENV_OFFSET (256 * 1024) > -#define CONFIG_ENV_SIZE (16 * 1024) > -#define CONFIG_SYS_MMC_ENV_DEV 0 > +#ifdef CONFIG_ENV_IS_IN_MMC > + #define CONFIG_ENV_OFFSET (256 * 1024) > + #define CONFIG_ENV_SIZE (16 * 1024) > + #define CONFIG_SYS_MMC_ENV_DEV 0 > +#endif > #define CONFIG_CMD_SAVEENV > #ifdef CONFIG_CMD_MMC > #define CONFIG_MMC > @@ -170,6 +174,40 @@ > #endif > > /* > + * SPI > + */ > +#ifdef CONFIG_CMD_SPI > +#define CONFIG_HARD_SPI > +#define CONFIG_MXS_SPI > +#define CONFIG_SPI_HALF_DUPLEX > +#define CONFIG_DEFAULT_SPI_BUS 2 > +#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 > + > +/* SPI Flash */ > +#ifdef CONFIG_CMD_SF > +#define CONFIG_SPI_FLASH > +/* this may vary and depends on the installed chip */ > +#define CONFIG_SPI_FLASH_SST > +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 > +#define CONFIG_SF_DEFAULT_SPEED 24000000 > + > +/* (redundant) environemnt in SPI flash */ > +#undef CONFIG_ENV_IS_IN_SPI_FLASH > +#ifdef CONFIG_ENV_IS_IN_SPI_FLASH > +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT > +#define CONFIG_ENV_SIZE 0x1000 /* 4KB */ > +#define CONFIG_ENV_OFFSET 0x40000 /* 256K */ > +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) > +#define CONFIG_ENV_SECT_SIZE 0x1000 > +#define CONFIG_ENV_SPI_CS 0 > +#define CONFIG_ENV_SPI_BUS 2 > +#define CONFIG_ENV_SPI_MAX_HZ 24000000 > +#define CONFIG_ENV_SPI_MODE SPI_MODE_0 > +#endif > +#endif > +#endif > + > +/* > * Boot Linux > */ > #define CONFIG_CMDLINE_TAG Hm, good ... so the SPI flash works now with no modifications ? M ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: add SPI support 2012-01-18 16:07 ` Marek Vasut @ 2012-01-18 18:49 ` Matthias Fuchs 2012-01-18 19:11 ` Marek Vasut 0 siblings, 1 reply; 18+ messages in thread From: Matthias Fuchs @ 2012-01-18 18:49 UTC (permalink / raw) To: u-boot On 01/18/2012 05:07 PM, Marek Vasut wrote: >> This patch adds SPI support for the MX28EVK. Support for >> an optionally installed SPI flash is also added. An example >> configuration for redundant envrionment from SPI flash is also >> added but disabled by default. >> >> This patch has been tested on a MX28EVK Rev. D with an installed >> SST25VF032B 32Mbit SPI flash. >> >> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> >> --- >> board/freescale/mx28evk/iomux.c | 8 +++++++ >> include/configs/mx28evk.h | 44 >> ++++++++++++++++++++++++++++++++++++-- 2 files changed, 49 insertions(+), >> 3 deletions(-) >> >> diff --git a/board/freescale/mx28evk/iomux.c >> b/board/freescale/mx28evk/iomux.c index 904e3f3..396761b 100644 >> --- a/board/freescale/mx28evk/iomux.c >> +++ b/board/freescale/mx28evk/iomux.c >> @@ -28,6 +28,7 @@ >> #define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) >> #define MUX_CONFIG_ENET (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) >> #define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL) >> +#define MUX_CONFIG_SSP2 (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP) >> >> const iomux_cfg_t iomux_setup[] = { >> /* DUART */ >> @@ -130,6 +131,13 @@ const iomux_cfg_t iomux_setup[] = { >> MX28_PAD_EMI_CE0N__EMI_CE0N | MUX_CONFIG_EMI, >> MX28_PAD_EMI_CE1N__EMI_CE1N | MUX_CONFIG_EMI, >> MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI, >> + >> + /* SPI2 (for SPI flash) */ >> + MX28_PAD_SSP2_SCK__SSP2_SCK | MUX_CONFIG_SSP2, >> + MX28_PAD_SSP2_MOSI__SSP2_CMD | MUX_CONFIG_SSP2, >> + MX28_PAD_SSP2_MISO__SSP2_D0 | MUX_CONFIG_SSP2, >> + MX28_PAD_SSP2_SS0__SSP2_D3 | >> + (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP), >> }; >> >> void board_init_ll(void) >> diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h >> index 8f791aa..04967d7 100644 >> --- a/include/configs/mx28evk.h >> +++ b/include/configs/mx28evk.h >> @@ -64,6 +64,8 @@ >> #define CONFIG_CMD_NET >> #define CONFIG_CMD_NFS >> #define CONFIG_CMD_PING >> +#define CONFIG_CMD_SF >> +#define CONFIG_CMD_SPI >> #define CONFIG_CMD_USB >> >> /* >> @@ -127,9 +129,11 @@ >> * MMC Driver >> */ >> #define CONFIG_ENV_IS_IN_MMC >> -#define CONFIG_ENV_OFFSET (256 * 1024) >> -#define CONFIG_ENV_SIZE (16 * 1024) >> -#define CONFIG_SYS_MMC_ENV_DEV 0 >> +#ifdef CONFIG_ENV_IS_IN_MMC >> + #define CONFIG_ENV_OFFSET (256 * 1024) >> + #define CONFIG_ENV_SIZE (16 * 1024) >> + #define CONFIG_SYS_MMC_ENV_DEV 0 >> +#endif >> #define CONFIG_CMD_SAVEENV >> #ifdef CONFIG_CMD_MMC >> #define CONFIG_MMC >> @@ -170,6 +174,40 @@ >> #endif >> >> /* >> + * SPI >> + */ >> +#ifdef CONFIG_CMD_SPI >> +#define CONFIG_HARD_SPI >> +#define CONFIG_MXS_SPI >> +#define CONFIG_SPI_HALF_DUPLEX >> +#define CONFIG_DEFAULT_SPI_BUS 2 >> +#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 >> + >> +/* SPI Flash */ >> +#ifdef CONFIG_CMD_SF >> +#define CONFIG_SPI_FLASH >> +/* this may vary and depends on the installed chip */ >> +#define CONFIG_SPI_FLASH_SST >> +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 >> +#define CONFIG_SF_DEFAULT_SPEED 24000000 >> + >> +/* (redundant) environemnt in SPI flash */ >> +#undef CONFIG_ENV_IS_IN_SPI_FLASH >> +#ifdef CONFIG_ENV_IS_IN_SPI_FLASH >> +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT >> +#define CONFIG_ENV_SIZE 0x1000 /* 4KB */ >> +#define CONFIG_ENV_OFFSET 0x40000 /* 256K */ >> +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) >> +#define CONFIG_ENV_SECT_SIZE 0x1000 >> +#define CONFIG_ENV_SPI_CS 0 >> +#define CONFIG_ENV_SPI_BUS 2 >> +#define CONFIG_ENV_SPI_MAX_HZ 24000000 >> +#define CONFIG_ENV_SPI_MODE SPI_MODE_0 >> +#endif >> +#endif >> +#endif >> + >> +/* >> * Boot Linux >> */ >> #define CONFIG_CMDLINE_TAG > > Hm, good ... so the SPI flash works now with no modifications ? Of course not! The SPI driver needs to be fixed. Either by my previously posted patch or by god's hands :-) Fabio asked for this patch in order to test my SPI driver fix. But I think this is independant from each other. Matthias ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: add SPI support 2012-01-18 18:49 ` Matthias Fuchs @ 2012-01-18 19:11 ` Marek Vasut 0 siblings, 0 replies; 18+ messages in thread From: Marek Vasut @ 2012-01-18 19:11 UTC (permalink / raw) To: u-boot > On 01/18/2012 05:07 PM, Marek Vasut wrote: > >> This patch adds SPI support for the MX28EVK. Support for > >> an optionally installed SPI flash is also added. An example > >> configuration for redundant envrionment from SPI flash is also > >> added but disabled by default. > >> > >> This patch has been tested on a MX28EVK Rev. D with an installed > >> SST25VF032B 32Mbit SPI flash. > >> > >> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > >> --- > >> > >> board/freescale/mx28evk/iomux.c | 8 +++++++ > >> include/configs/mx28evk.h | 44 > >> > >> ++++++++++++++++++++++++++++++++++++-- 2 files changed, 49 > >> insertions(+), 3 deletions(-) > >> > >> diff --git a/board/freescale/mx28evk/iomux.c > >> b/board/freescale/mx28evk/iomux.c index 904e3f3..396761b 100644 > >> --- a/board/freescale/mx28evk/iomux.c > >> +++ b/board/freescale/mx28evk/iomux.c > >> @@ -28,6 +28,7 @@ > >> > >> #define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) > >> #define MUX_CONFIG_ENET (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP) > >> #define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL) > >> > >> +#define MUX_CONFIG_SSP2 (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP) > >> > >> const iomux_cfg_t iomux_setup[] = { > >> > >> /* DUART */ > >> > >> @@ -130,6 +131,13 @@ const iomux_cfg_t iomux_setup[] = { > >> > >> MX28_PAD_EMI_CE0N__EMI_CE0N | MUX_CONFIG_EMI, > >> MX28_PAD_EMI_CE1N__EMI_CE1N | MUX_CONFIG_EMI, > >> MX28_PAD_EMI_CKE__EMI_CKE | MUX_CONFIG_EMI, > >> > >> + > >> + /* SPI2 (for SPI flash) */ > >> + MX28_PAD_SSP2_SCK__SSP2_SCK | MUX_CONFIG_SSP2, > >> + MX28_PAD_SSP2_MOSI__SSP2_CMD | MUX_CONFIG_SSP2, > >> + MX28_PAD_SSP2_MISO__SSP2_D0 | MUX_CONFIG_SSP2, > >> + MX28_PAD_SSP2_SS0__SSP2_D3 | > >> + (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP), > >> > >> }; > >> > >> void board_init_ll(void) > >> > >> diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h > >> index 8f791aa..04967d7 100644 > >> --- a/include/configs/mx28evk.h > >> +++ b/include/configs/mx28evk.h > >> @@ -64,6 +64,8 @@ > >> > >> #define CONFIG_CMD_NET > >> #define CONFIG_CMD_NFS > >> #define CONFIG_CMD_PING > >> > >> +#define CONFIG_CMD_SF > >> +#define CONFIG_CMD_SPI > >> > >> #define CONFIG_CMD_USB > >> > >> /* > >> > >> @@ -127,9 +129,11 @@ > >> > >> * MMC Driver > >> */ > >> > >> #define CONFIG_ENV_IS_IN_MMC > >> > >> -#define CONFIG_ENV_OFFSET (256 * 1024) > >> -#define CONFIG_ENV_SIZE (16 * 1024) > >> -#define CONFIG_SYS_MMC_ENV_DEV 0 > >> +#ifdef CONFIG_ENV_IS_IN_MMC > >> + #define CONFIG_ENV_OFFSET (256 * 1024) > >> + #define CONFIG_ENV_SIZE (16 * 1024) > >> + #define CONFIG_SYS_MMC_ENV_DEV 0 > >> +#endif > >> > >> #define CONFIG_CMD_SAVEENV > >> #ifdef CONFIG_CMD_MMC > >> #define CONFIG_MMC > >> > >> @@ -170,6 +174,40 @@ > >> > >> #endif > >> > >> /* > >> > >> + * SPI > >> + */ > >> +#ifdef CONFIG_CMD_SPI > >> +#define CONFIG_HARD_SPI > >> +#define CONFIG_MXS_SPI > >> +#define CONFIG_SPI_HALF_DUPLEX > >> +#define CONFIG_DEFAULT_SPI_BUS 2 > >> +#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 > >> + > >> +/* SPI Flash */ > >> +#ifdef CONFIG_CMD_SF > >> +#define CONFIG_SPI_FLASH > >> +/* this may vary and depends on the installed chip */ > >> +#define CONFIG_SPI_FLASH_SST > >> +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 > >> +#define CONFIG_SF_DEFAULT_SPEED 24000000 > >> + > >> +/* (redundant) environemnt in SPI flash */ > >> +#undef CONFIG_ENV_IS_IN_SPI_FLASH > >> +#ifdef CONFIG_ENV_IS_IN_SPI_FLASH > >> +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT > >> +#define CONFIG_ENV_SIZE 0x1000 /* 4KB */ > >> +#define CONFIG_ENV_OFFSET 0x40000 /* 256K */ > >> +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) > >> +#define CONFIG_ENV_SECT_SIZE 0x1000 > >> +#define CONFIG_ENV_SPI_CS 0 > >> +#define CONFIG_ENV_SPI_BUS 2 > >> +#define CONFIG_ENV_SPI_MAX_HZ 24000000 > >> +#define CONFIG_ENV_SPI_MODE SPI_MODE_0 > >> +#endif > >> +#endif > >> +#endif > >> + > >> +/* > >> > >> * Boot Linux > >> */ > >> > >> #define CONFIG_CMDLINE_TAG > > > > Hm, good ... so the SPI flash works now with no modifications ? > > Of course not! The SPI driver needs to be fixed. Either by my previously > posted patch or by god's hands :-) > > Fabio asked for this patch in order to test my SPI driver fix. > But I think this is independant from each other. > > Matthias Ok, I see ... sigh, can you please do such negotiations on the mailing list so people are informed about such? M ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: add SPI support 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs 2012-01-18 16:07 ` Marek Vasut @ 2012-01-23 21:34 ` Fabio Estevam 2012-02-07 8:14 ` Stefano Babic 2 siblings, 0 replies; 18+ messages in thread From: Fabio Estevam @ 2012-01-23 21:34 UTC (permalink / raw) To: u-boot On Wed, Jan 18, 2012 at 9:33 AM, Matthias Fuchs <matthias.fuchs@esd.eu> wrote: > This patch adds SPI support for the MX28EVK. Support for > an optionally installed SPI flash is also added. An example > configuration for redundant envrionment from SPI flash is also > added but disabled by default. > > This patch has been tested on a MX28EVK Rev. D with an installed > SST25VF032B 32Mbit SPI flash. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> Acked-by: Fabio Estevam <fabio.estevam@freescale.com> ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 3/3] mx28evk: add SPI support 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs 2012-01-18 16:07 ` Marek Vasut 2012-01-23 21:34 ` Fabio Estevam @ 2012-02-07 8:14 ` Stefano Babic 2 siblings, 0 replies; 18+ messages in thread From: Stefano Babic @ 2012-02-07 8:14 UTC (permalink / raw) To: u-boot On 18/01/2012 12:33, Matthias Fuchs wrote: > This patch adds SPI support for the MX28EVK. Support for > an optionally installed SPI flash is also added. An example > configuration for redundant envrionment from SPI flash is also > added but disabled by default. > > This patch has been tested on a MX28EVK Rev. D with an installed > SST25VF032B 32Mbit SPI flash. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de ===================================================================== ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 2/3] mx28evk: add USB support 2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs @ 2012-01-30 16:14 ` Fabio Estevam 2012-01-30 16:14 ` Fabio Estevam 2012-02-07 8:13 ` Stefano Babic 2 siblings, 1 reply; 18+ messages in thread From: Fabio Estevam @ 2012-01-30 16:14 UTC (permalink / raw) To: u-boot On 1/18/12, Matthias Fuchs <matthias.fuchs@esd.eu> wrote: > This patch enables USB host support on the MX28EVK board. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> Tested-by: Fabio Estevam <fabio.estevam@freescale.com> Thanks ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 2/3] mx28evk: add USB support 2012-01-30 16:14 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Fabio Estevam @ 2012-01-30 16:14 ` Fabio Estevam 0 siblings, 0 replies; 18+ messages in thread From: Fabio Estevam @ 2012-01-30 16:14 UTC (permalink / raw) To: u-boot On 1/30/12, Fabio Estevam <festevam@gmail.com> wrote: > On 1/18/12, Matthias Fuchs <matthias.fuchs@esd.eu> wrote: >> This patch enables USB host support on the MX28EVK board. >> >> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > > Tested-by: Fabio Estevam <fabio.estevam@freescale.com> Adding Stefano. ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 2/3] mx28evk: add USB support 2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs 2012-01-30 16:14 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Fabio Estevam @ 2012-02-07 8:13 ` Stefano Babic 2 siblings, 0 replies; 18+ messages in thread From: Stefano Babic @ 2012-02-07 8:13 UTC (permalink / raw) To: u-boot On 18/01/2012 12:33, Matthias Fuchs wrote: > This patch enables USB host support on the MX28EVK board. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de ===================================================================== ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-01-18 11:33 [U-Boot] [PATCH 1/3] mx28evk: add RTC support Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs @ 2012-01-18 16:07 ` Marek Vasut 2012-01-20 3:23 ` Fabio Estevam 2012-01-23 20:01 ` Fabio Estevam 2012-02-07 8:12 ` Stefano Babic 3 siblings, 1 reply; 18+ messages in thread From: Marek Vasut @ 2012-01-18 16:07 UTC (permalink / raw) To: u-boot > This patch adds support for the MX28 internal RTC > and enables u-boot's date command. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > --- > include/configs/mx28evk.h | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h > index bea46e7..8a752aa 100644 > --- a/include/configs/mx28evk.h > +++ b/include/configs/mx28evk.h > @@ -56,6 +56,7 @@ > #define CONFIG_CMD_FAT > > #define CONFIG_CMD_CACHE > +#define CONFIG_CMD_DATE > #define CONFIG_CMD_DHCP > #define CONFIG_CMD_GPIO > #define CONFIG_CMD_MII > @@ -150,6 +151,13 @@ > #endif > > /* > + * RTC > + */ > +#ifdef CONFIG_CMD_DATE > +#define CONFIG_RTC_MXS > +#endif > + > +/* > * Boot Linux > */ > #define CONFIG_CMDLINE_TAG Fabio, can you please test this and 2/3 ? TIA M ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-01-18 16:07 ` [U-Boot] [PATCH 1/3] mx28evk: add RTC support Marek Vasut @ 2012-01-20 3:23 ` Fabio Estevam 2012-01-20 3:55 ` Marek Vasut 0 siblings, 1 reply; 18+ messages in thread From: Fabio Estevam @ 2012-01-20 3:23 UTC (permalink / raw) To: u-boot On Wed, Jan 18, 2012 at 2:07 PM, Marek Vasut <marek.vasut@gmail.com> wrote: > Fabio, can you please test this and 2/3 ? Yes, will test them soon. Regards, Fabio Estevam ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-01-20 3:23 ` Fabio Estevam @ 2012-01-20 3:55 ` Marek Vasut 0 siblings, 0 replies; 18+ messages in thread From: Marek Vasut @ 2012-01-20 3:55 UTC (permalink / raw) To: u-boot > On Wed, Jan 18, 2012 at 2:07 PM, Marek Vasut <marek.vasut@gmail.com> wrote: > > Fabio, can you please test this and 2/3 ? > > Yes, will test them soon. > > Regards, > > Fabio Estevam Thanks a lot! ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-01-18 11:33 [U-Boot] [PATCH 1/3] mx28evk: add RTC support Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs 2012-01-18 16:07 ` [U-Boot] [PATCH 1/3] mx28evk: add RTC support Marek Vasut @ 2012-01-23 20:01 ` Fabio Estevam 2012-02-06 12:51 ` Fabio Estevam 2012-02-07 8:12 ` Stefano Babic 3 siblings, 1 reply; 18+ messages in thread From: Fabio Estevam @ 2012-01-23 20:01 UTC (permalink / raw) To: u-boot On 1/18/12, Matthias Fuchs <matthias.fuchs@esd.eu> wrote: > This patch adds support for the MX28 internal RTC > and enables u-boot's date command. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> Tested-by: Fabio Estevam <fabio.estevam@freescale.com> ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-01-23 20:01 ` Fabio Estevam @ 2012-02-06 12:51 ` Fabio Estevam 2012-02-06 13:11 ` Stefano Babic 0 siblings, 1 reply; 18+ messages in thread From: Fabio Estevam @ 2012-02-06 12:51 UTC (permalink / raw) To: u-boot Hi Stefano, On 1/23/12, Fabio Estevam <festevam@gmail.com> wrote: > On 1/18/12, Matthias Fuchs <matthias.fuchs@esd.eu> wrote: >> This patch adds support for the MX28 internal RTC >> and enables u-boot's date command. >> >> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > > Tested-by: Fabio Estevam <fabio.estevam@freescale.com> Any issues with this patch series? If not, is it possible to apply them? Thanks, Fabio Estevam ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-02-06 12:51 ` Fabio Estevam @ 2012-02-06 13:11 ` Stefano Babic 0 siblings, 0 replies; 18+ messages in thread From: Stefano Babic @ 2012-02-06 13:11 UTC (permalink / raw) To: u-boot On 06/02/2012 13:51, Fabio Estevam wrote: > Hi Stefano, > > On 1/23/12, Fabio Estevam <festevam@gmail.com> wrote: >> On 1/18/12, Matthias Fuchs <matthias.fuchs@esd.eu> wrote: >>> This patch adds support for the MX28 internal RTC >>> and enables u-boot's date command. >>> >>> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> >> >> Tested-by: Fabio Estevam <fabio.estevam@freescale.com> > > Any issues with this patch series? > > If not, is it possible to apply them? No issue, I am going to apply them. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de ===================================================================== ^ permalink raw reply [flat|nested] 18+ messages in thread
* [U-Boot] [PATCH 1/3] mx28evk: add RTC support 2012-01-18 11:33 [U-Boot] [PATCH 1/3] mx28evk: add RTC support Matthias Fuchs ` (2 preceding siblings ...) 2012-01-23 20:01 ` Fabio Estevam @ 2012-02-07 8:12 ` Stefano Babic 3 siblings, 0 replies; 18+ messages in thread From: Stefano Babic @ 2012-02-07 8:12 UTC (permalink / raw) To: u-boot On 18/01/2012 12:33, Matthias Fuchs wrote: > This patch adds support for the MX28 internal RTC > and enables u-boot's date command. > > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de ===================================================================== ^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2012-02-07 8:14 UTC | newest] Thread overview: 18+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-18 11:33 [U-Boot] [PATCH 1/3] mx28evk: add RTC support Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Matthias Fuchs 2012-01-18 11:33 ` [U-Boot] [PATCH 3/3] mx28evk: add SPI support Matthias Fuchs 2012-01-18 16:07 ` Marek Vasut 2012-01-18 18:49 ` Matthias Fuchs 2012-01-18 19:11 ` Marek Vasut 2012-01-23 21:34 ` Fabio Estevam 2012-02-07 8:14 ` Stefano Babic 2012-01-30 16:14 ` [U-Boot] [PATCH 2/3] mx28evk: add USB support Fabio Estevam 2012-01-30 16:14 ` Fabio Estevam 2012-02-07 8:13 ` Stefano Babic 2012-01-18 16:07 ` [U-Boot] [PATCH 1/3] mx28evk: add RTC support Marek Vasut 2012-01-20 3:23 ` Fabio Estevam 2012-01-20 3:55 ` Marek Vasut 2012-01-23 20:01 ` Fabio Estevam 2012-02-06 12:51 ` Fabio Estevam 2012-02-06 13:11 ` Stefano Babic 2012-02-07 8:12 ` Stefano Babic
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox