[U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060
Niel Fourie
lusus at denx.de
Thu Apr 25 08:31:44 UTC 2019
Hi All,
On 4/19/19 11:47 AM, Marek Vasut wrote:
>> ---
>> arch/arm/dts/Makefile | 3 +-
>> arch/arm/dts/am335x-phycore-som.dtsi | 327 ++++++++++++++++++++++
>> arch/arm/dts/am335x-wega-rdk-u-boot.dtsi | 35 +++
>> arch/arm/dts/am335x-wega-rdk.dts | 23 ++
>> arch/arm/dts/am335x-wega.dtsi | 231 +++++++++++++++
>
> The DTs come from Linux kernel, but which version of Linux ?
> Which exact commit ? Did you modify them in any way ?
I pulled these in from current Linux Mainline. I added SPDX headers and
reformatted some lines to for line length (but I have reverted the line
lengths in my follow-up patch).
> [...]
>
>
> Here [1] it says the name of the SoM is PCM-060 , what is PCL-060 ?
>
> [1]
> https://www.phytec.eu/product-eu/system-on-modules/phycore-am335x-download/
> [...]
>
I renamed everything to variants of phycore_am335x_r2 as previously
discussed.
> DRAM size should come from DT, we don't need another custom config
> option. Look at fdtdec_setup_mem_size_base() and
> fdtdec_setup_memory_banksize().
>
Done, thank you for the suggestion. I also took inspiration for the data
structure as suggested by Wadim Egorov.
>
>> diff --git a/include/configs/phycore_pcl060.h b/include/configs/phycore_pcl060.h
>> new file mode 100644
>> index 0000000000..982c96b267
>> --- /dev/null
>> +++ b/include/configs/phycore_pcl060.h
>> @@ -0,0 +1,141 @@
[...]
>> +/*
>> + * USB configuration
>> + */
>> +#define CONFIG_AM335X_USB0
>> +#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL
>> +#define CONFIG_AM335X_USB1
>> +#define CONFIG_AM335X_USB1_MODE MUSB_HOST
>
> Can't the USB settings be extracted from DT ?
Unfortunately, these defines are referenced within
arch/arm/mach-omap2/am335x/board.c, which I would rather not want to
break at this time.
Other than that, I implemented all points, along with some further
refinement/clean-up.
Best regards,
Niel Fourie
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-21 Fax: +49-8142-66989-80 Email: lusus at denx.de
More information about the U-Boot
mailing list