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

Mike Frysinger vapier at gentoo.org
Fri Apr 22 22:54:07 CEST 2011


On Fri, Apr 22, 2011 at 4:30 AM, Shaohui Xie wrote:
> --- a/include/spi.h
> +++ b/include/spi.h
>  /*-----------------------------------------------------------------------
> + * Representation of a SPI slave data.
> + *   div16:    whether System clock/16 is the input to the eSPI BRG.
> + *   pm:       Prescale modulus select.
> + *   mode:     Clock polarity, clock phase and other parameters.
> + *   cmd_len:  CMD length stored at BEGIN phase.
> + *   cmd_buf:  CMD stored at BEGIN phase.
> + *   data_len: data length used to activate CS length.
> + */
> +struct spi_slave_data {
> +       unsigned int    div16;
> +       unsigned int    pm;
> +       unsigned int    mode;
> +       size_t          cmd_len;
> +       u8              cmd_buf[16];
> +       size_t          data_len;
> +};

err, this belongs in your spi controller code, not the common spi
header.  look at like the bfin_spi driver to see how to do it.
-mike


More information about the U-Boot mailing list