[PATCH v5 2/2] board: mediatek: add mt8195 demo board

Tom Rini trini at konsulko.com
Fri Aug 4 15:54:34 CEST 2023


On Fri, Aug 04, 2023 at 07:04:48PM +0800, Macpaul Lin wrote:

> From: Fabien Parent <fparent at baylibre.com>
> 
> Add mt8195-demo board support.
> This demo purpose board uses MediaTek's MT8195 SoC.
> 
> Signed-off-by: Fabien Parent <fparent at baylibre.com>
> Signed-off-by: Amjad Ouled-Ameur <aouledameur at baylibre.com>
> Signed-off-by: Macpaul Lin <macpaul.lin at mediatek.com>
[snip]
> diff --git a/board/mediatek/mt8195/MAINTAINERS b/board/mediatek/mt8195/MAINTAINERS
> new file mode 100644
> index 0000000000..01fa25115d
> --- /dev/null
> +++ b/board/mediatek/mt8195/MAINTAINERS
> @@ -0,0 +1,6 @@
> +MT8195 Demo
> +M:	Macpaul Lin <macpaul.lin at mediatek.com>
> +S:	Maintained
> +F:	board/mediatek/mt8195
> +F:	include/configs/mt8195.h
> +F:	configs/mt8195_demo_defconfig

Please list the dts files here too, and these are being synced with
Linux, yes?

[snip]
> diff --git a/include/configs/mt8195.h b/include/configs/mt8195.h
> new file mode 100644
> index 0000000000..7af06da6ea
> --- /dev/null
> +++ b/include/configs/mt8195.h
> @@ -0,0 +1,46 @@
> +/* SPDX-License-Identifier: GPL-2.0+ */
> +/*
> + * Configuration for MT8195 based boards
> + *
> + * Copyright (C) 2023 MediaTek Inc.
> + * Copyright (C) 2023 BayLibre, SAS
> + * Author: Macpaul Lin <macpaul.lin at mediatek.com>
> + * Author: Fabien Parent <fparent at baylibre.com>
> + */
> +
> +#ifndef __MT8195_H
> +#define __MT8195_H
> +
> +#include <linux/sizes.h>

Drop this, especially as there was just some time spent fixing "need
<linux/size.h> in a generic header" mediatek code.

> +/* Environment settings */
> +#include <config_distro_bootcmd.h>
> +
> +#if IS_ENABLED(CONFIG_CMD_MMC)
> +#define BOOT_TARGET_MMC(func) func(MMC, mmc, 0)
> +#else
> +#define BOOT_TARGET_MMC(func)
> +#endif
> +
> +#if IS_ENABLED(CONFIG_CMD_USB)
> +#define BOOT_TARGET_USB(func) func(USB, usb, 0)
> +#else
> +#define BOOT_TARGET_USB(func)
> +#endif
> +
> +#define BOOT_TARGET_DEVICES(func) \
> +	BOOT_TARGET_MMC(func) \
> +	BOOT_TARGET_USB(func)
> +
> +#if !defined(CFG_EXTRA_ENV_SETTINGS)
> +#define CFG_EXTRA_ENV_SETTINGS \
> +	"scriptaddr=0x40000000\0" \
> +	"fdt_addr_r=0x44000000\0" \
> +	"fdtoverlay_addr_r=0x44c00000\0" \
> +	"kernel_addr_r=0x45000000\0" \
> +	"ramdisk_addr_r=0x46000000\0" \
> +	"fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
> +	BOOTENV
> +#endif

Please look at moving to plain text environment, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230804/f91a5429/attachment.sig>


More information about the U-Boot mailing list