[PATCH] sunxi: add defconfig for nanopi_duo2
Andre Przywara
andre.przywara at arm.com
Sun Jan 21 02:15:28 CET 2024
On Thu, 28 Dec 2023 13:29:15 +0800
Chuanhong Guo <gch981213 at gmail.com> wrote:
Hi,
thanks for taking care and sending a patch!
> FriendlyElec NanoPi Duo2 is a tiny SBC with Allwinner H3 and
> Ampak AP6212 WiFi module. The device-tree for it is already
> available in u-boot source tree. Add a default config for it.
>
> Signed-off-by: Chuanhong Guo <gch981213 at gmail.com>
> ---
> configs/nanopi_duo2_defconfig | 11 +++++++++++
> 1 file changed, 11 insertions(+)
> create mode 100644 configs/nanopi_duo2_defconfig
>
> diff --git a/configs/nanopi_duo2_defconfig b/configs/nanopi_duo2_defconfig
> new file mode 100644
> index 0000000000..5a2069789f
> --- /dev/null
> +++ b/configs/nanopi_duo2_defconfig
> @@ -0,0 +1,11 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_SUNXI=y
> +CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-nanopi-duo2"
> +CONFIG_SPL=y
> +CONFIG_MACH_SUN8I_H3=y
> +CONFIG_DRAM_CLK=408
> +# CONFIG_VIDEO_DE2 is not set
> +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
> +CONFIG_CONSOLE_MUX=y
> +CONFIG_USB_EHCI_HCD=y
> +CONFIG_USB_OHCI_HCD=y
Judging by the DT, this board has USB-OTG wired up correctly, so we
should enable it, by adding:
CONFIG_USB_MUSB_GADGET=y
This would allow access to USB Ethernet, fastboot or UMS devices, which
prove to be quite useful for U-Boot.
Cheers,
Andre
More information about the U-Boot
mailing list