[U-Boot] [PATCH 1/2][v2] powerpc: eSPI and eSPI controller support

Mike Frysinger vapier at gentoo.org
Thu Apr 21 19:10:15 CEST 2011


On Thu, Apr 21, 2011 at 2:04 AM, Shaohui Xie wrote:
> --- a/include/spi.h
> +++ b/include/spi.h
>  /* Controller-specific definitions: */
>
>  /* CONFIG_HARD_SPI triggers SPI bus initialization in PowerPC */
> -#ifdef CONFIG_MPC8XXX_SPI
> +#if defined(CONFIG_MPC8XXX_SPI) || defined(CONFIG_FSL_ESPI)
>  # ifndef CONFIG_HARD_SPI
>  #  define CONFIG_HARD_SPI
>  # endif

i cant see why this PowerPC-specific code needs to be in the common
spi.h.  why cant this live in a PowerPC header like asm/config.h ?  (i
know this code predates asm/config.h)
-mike


More information about the U-Boot mailing list