[U-Boot] [PATCH v2 07/19] fdt: Add compatible strings for Arria 10

Simon Glass
2017-12-10T19:34:16Z

Hi,

On 25 September 2017 at 03:08, Marek Vasut <marex@denx.de> wrote:
> On 09/25/2017 10:40 AM, tien.fong.chee at intel.com wrote:
>> From: Tien Fong Chee <tien.fong.chee@intel.com>
>>
>> Add compatible strings for Intel Arria 10 SoCFPGA device.
>>
>> Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
>
> Applied, thanks
>
>> ---
>> include/fdtdec.h | 2 ++
>> lib/fdtdec.c | 2 ++
>> 2 files changed, 4 insertions(+)
>>
>> diff --git a/include/fdtdec.h b/include/fdtdec.h
>> index 4a0947c..095ff36 100644
>> --- a/include/fdtdec.h
>> +++ b/include/fdtdec.h
>> @@ -157,6 +157,8 @@ enum fdt_compat_id {
>> COMPAT_ALTERA_SOCFPGA_F2SDR0, /* SoCFPGA fpga2SDRAM0 bridge */
>> COMPAT_ALTERA_SOCFPGA_F2SDR1, /* SoCFPGA fpga2SDRAM1 bridge */
>> COMPAT_ALTERA_SOCFPGA_F2SDR2, /* SoCFPGA fpga2SDRAM2 bridge */
>> + COMPAT_ALTERA_SOCFPGA_FPGA0, /* SOCFPGA FPGA manager */
>> + COMPAT_ALTERA_SOCFPGA_NOC, /* SOCFPGA Arria 10 NOC */

We should not be adding new things here. There is a clear message at the top:

* NOTE: This list is basically a TODO list for things that need to be
* converted to driver model. So don't add new things here unless there is a
* good reason why driver-model conversion is infeasible. Examples include
* things which are used before driver model is available.

Can this be converted to driver model please? I'll see if I can remove
this array.

>>
>> COMPAT_COUNT,
>> };
>> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
>> index 107a892..03ff75e 100644
>> --- a/lib/fdtdec.c
>> +++ b/lib/fdtdec.c
>> @@ -70,6 +70,8 @@ static const char * const compat_names[COMPAT_COUNT] = {
>> COMPAT(ALTERA_SOCFPGA_F2SDR0, "altr,socfpga-fpga2sdram0-bridge"),
>> COMPAT(ALTERA_SOCFPGA_F2SDR1, "altr,socfpga-fpga2sdram1-bridge"),
>> COMPAT(ALTERA_SOCFPGA_F2SDR2, "altr,socfpga-fpga2sdram2-bridge"),
>> + COMPAT(ALTERA_SOCFPGA_FPGA0, "altr,socfpga-a10-fpga-mgr"),
>> + COMPAT(ALTERA_SOCFPGA_NOC, "altr,socfpga-a10-noc"),
>> };
>>
>> const char *fdtdec_get_compatible(enum fdt_compat_id id)
>>
>
>
> --
> Best regards,
> Marek Vasut

Regards,
Simon