[PATCH v5 1/2] arm: mediatek: add mt8195 SOC support

Macpaul Lin macpaul at gmail.com
Sun Nov 12 04:39:56 CET 2023


Marcel Ziswiler <marcel.ziswiler at toradex.com> 於 2023年11月11日 週六 上午4:24寫道:
>
[snip]
> > Changes for v5:
> >  - Fix Copyright year to 2023.
> >  - Fix memory map in dram_init() to support 8GB onboard memory.
> >  - Add '#if !IS_ENABLED(CONFIG_SYSRESET)' with reset_cpu().
> >  - Correct reset_cpu() function prototype.
> >  - rebase patchset to v2023-10.rc1
> >  - Add missing arch/arm/mach-mediatek/mt8195/Kconfig.
>
> [snip]
>
> I finally got my hands on an EVK and gave this a try. However, I did not get that far. This is with latest
> downstream TF-A as I still struggle with upstream there as well. Any ideas?
>
> U-Boot 2024.01-rc1-00056-g5237f2b48bb (Nov 10 2023 - 15:33:34 +0100)
>
> CPU:   MediaTek MT8195
> DRAM:  8 GiB
> mtu3 usb at 11200000: clks of sts1 are not stable!
> mtu3-peripheral ssusb at 11200000: device enable failed -110
> mtu3-peripheral ssusb at 11200000: mtu3 hw init failed:-110
> board_init: Cannot find USB device
> initcall failed at call 00000000ffe46a50 (err=-110)
> ### ERROR ### Please RESET the board ###
>
> Cheers
>
> Marcel

I'm glad you've get a board and tested our patches.
Currently we're busy on other tasks so the improvement to the patch v5
has been postponed. :~(

These error is because the power supplement settings are in the later patches.
Hence the clock might not stable for the cold boot up.
You can just press the key on the board and warm reset it, the clock
issue should be disappear.

> mtu3-peripheral ssusb at 11200000: device enable failed -110
> mtu3-peripheral ssusb at 11200000: mtu3 hw init failed:-110

You can refer to the user guide and public domain code.
https://mediatek.gitlab.io/aiot/doc/aiot-dev-guide/master/sw/yocto/get-started.html
https://mediatek.gitlab.io/aiot/doc/aiot-dev-guide/master/sw/yocto/get-started/build-code/build-steps.html

The latest u-boot code is here.
https://gitlab.com/mediatek/aiot/bsp/u-boot/-/tree/mtk-v2022.10?ref_type=heads
-- 
Best regards,
Macpaul Lin


More information about the U-Boot mailing list