Message ID | 1328032330-20883-9-git-send-email-eric.nelson@boundarydevices.com |
---|---|
State | Accepted |
Commit | ba54b9276af6c5cf44f466ebc6356dfba7f21c0b |
Delegated to: | Stefano Babic |
Headers | show |
On Wed, Feb 1, 2012 at 1:52 AM, Eric Nelson <eric.nelson@boundarydevices.com> wrote: > Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> > Acked-by: Dirk Behme <dirk.behme@de.bosch.com> > Acked-by: Stefano Babic <sbabic@denx.de> > --- > board/freescale/mx6qsabrelite/mx6qsabrelite.c | 2 +- > include/configs/mx6qsabrelite.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletions(-) Acked-by: Jason Liu <jason.hui@linaro.org> Tested on Sabre-lite board. Tested-by: Jason Liu <jason.hui@linaro.org> > > diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c > index 97a77e8..03a088a 100644 > --- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c > +++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c > @@ -208,7 +208,7 @@ iomux_v3_cfg_t ecspi1_pads[] = { > > void setup_spi(void) > { > - gpio_direction_output(GPIO_NUMBER(3, 19), 1); > + gpio_direction_output(CONFIG_SF_DEFAULT_CS, 1); > imx_iomux_v3_setup_multiple_pads(ecspi1_pads, > ARRAY_SIZE(ecspi1_pads)); > } > diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h > index bcb1a42..2286bb0 100644 > --- a/include/configs/mx6qsabrelite.h > +++ b/include/configs/mx6qsabrelite.h > @@ -49,6 +49,8 @@ > #define CONFIG_SPI_FLASH > #define CONFIG_SPI_FLASH_SST > #define CONFIG_MXC_SPI > +#define CONFIG_SF_DEFAULT_BUS 0 > +#define CONFIG_SF_DEFAULT_CS (0|(GPIO_NUMBER(3, 19)<<8)) > #define CONFIG_SF_DEFAULT_SPEED 25000000 > #define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) > #endif > -- > 1.7.1 >
On 31/01/2012 18:52, Eric Nelson wrote: > Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> > Acked-by: Dirk Behme <dirk.behme@de.bosch.com> > Acked-by: Stefano Babic <sbabic@denx.de> > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic
diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c index 97a77e8..03a088a 100644 --- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c +++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c @@ -208,7 +208,7 @@ iomux_v3_cfg_t ecspi1_pads[] = { void setup_spi(void) { - gpio_direction_output(GPIO_NUMBER(3, 19), 1); + gpio_direction_output(CONFIG_SF_DEFAULT_CS, 1); imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads)); } diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index bcb1a42..2286bb0 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -49,6 +49,8 @@ #define CONFIG_SPI_FLASH #define CONFIG_SPI_FLASH_SST #define CONFIG_MXC_SPI +#define CONFIG_SF_DEFAULT_BUS 0 +#define CONFIG_SF_DEFAULT_CS (0|(GPIO_NUMBER(3, 19)<<8)) #define CONFIG_SF_DEFAULT_SPEED 25000000 #define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) #endif