[U-Boot] [PATCH 01/10] x86: dts: Add compatible string for Intel ICH9 SPI controller

Bin Meng bmeng.cn at gmail.com
Sun Jan 4 07:04:26 CET 2015


Hi Simon,

On Tue, Dec 30, 2014 at 9:12 AM, Simon Glass <sjg at chromium.org> wrote:
> Add this to the enum so that we can use the various fdtdec functions. A
> later commit will move this driver to driver model.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  include/fdtdec.h | 1 +
>  lib/fdtdec.c     | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/include/fdtdec.h b/include/fdtdec.h
> index d2b665c..c8e19b5 100644
> --- a/include/fdtdec.h
> +++ b/include/fdtdec.h
> @@ -123,6 +123,7 @@ enum fdt_compat_id {
>         COMPAT_INTEL_PANTHERPOINT_AHCI, /* Intel Pantherpoint AHCI */
>         COMPAT_INTEL_MODEL_206AX,       /* Intel Model 206AX CPU */
>         COMPAT_INTEL_GMA,               /* Intel Graphics Media Accelerator */
> +       COMPAT_INTEL_ICH9_SPI,          /* Intel ICH9 SPI controller */

Since the driver supports both ICH9 and ICH7, maybe just COMPAT_INTEL_ICH_SPI?

>         COMPAT_COUNT,
>  };
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 9d86dba..7ada20e 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -78,6 +78,7 @@ static const char * const compat_names[COMPAT_COUNT] = {
>         COMPAT(INTEL_PANTHERPOINT_AHCI, "intel,pantherpoint-ahci"),
>         COMPAT(INTEL_MODEL_206AX, "intel,model-206ax"),
>         COMPAT(INTEL_GMA, "intel,gma"),
> +       COMPAT(INTEL_ICH9_SPI, "intel,ich9-spi"),
>  };

"intel,ich-spi"?

>  const char *fdtdec_get_compatible(enum fdt_compat_id id)
> --

Regards,
Bin


More information about the U-Boot mailing list