diff --git a/board/Kconfig b/board/Kconfig index df9045f..8c84b0c 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -49,6 +49,13 @@ menu "Device Support" help Say Y if you want to include support for the Lenovo Idea Tab Pro + config MOTOROLA_TUNDRA + bool "Support for Motorola Edge 30 fusion" + default n + depends on SM8350 + help + Say Y if you want to include support for Motorola Edge 30 fusion + config NOKIA_ESSENTIAL bool "Support for Nokia 3" default n diff --git a/board/Makefile b/board/Makefile index 8878c1f..ce57b79 100644 --- a/board/Makefile +++ b/board/Makefile @@ -5,6 +5,7 @@ lib-$(CONFIG_HUAWEI_AGASSI2) += huawei/board-agassi2.o lib-$(CONFIG_INFINIX_X6710) += infinix/board-x6710.o lib-$(CONFIG_ITEL_P682LPN) += itel/board-p682lpn.o lib-$(CONFIG_LENOVO_TB373FU) += lenovo/board-tb373fu.o +lib-$(CONFIG_MOTOROLA_TUNDRA) += motorola/board-tundra.o lib-$(CONFIG_NOKIA_ESSENTIAL) += nokia/board-essential.o lib-$(CONFIG_NOTHING_TETRIS) += nothing/board-tetris.o lib-$(CONFIG_QEMU_BOARD_VIRT) += qemu/board-virt.o diff --git a/board/motorola/board-tundra.c b/board/motorola/board-tundra.c new file mode 100644 index 0000000..694973f --- /dev/null +++ b/board/motorola/board-tundra.c @@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2026, Ivaylo Ivanov + */ +#include +#include +#include + +#ifdef CONFIG_SIMPLE_FB +static struct video_info tundra_fb = { + .format = FB_FORMAT_ARGB8888, + .width = 1080, + .height = 2400, + .stride = 4, + .scale = 2, + .address = (void *)0xe1000000 +}; +#endif + +int tundra_drv(void) +{ +#ifdef CONFIG_SIMPLE_FB + REGISTER_DRIVER("simplefb", simplefb_probe, &tundra_fb); +#endif + return 0; +} + +struct board_data board_ops = { + .name = "motorola-tundra", + .ops = { + .drivers_init = tundra_drv + }, + .quirks = 0 +}; diff --git a/configs/tundra_defconfig b/configs/tundra_defconfig new file mode 100644 index 0000000..4ef6347 --- /dev/null +++ b/configs/tundra_defconfig @@ -0,0 +1,7 @@ +CONFIG_POSITION_INDEPENDENT=y +CONFIG_LINUX_KRNL_HEADER_IMG=y +CONFIG_SM8350=y +CONFIG_MOTOROLA_TUNDRA=y +CONFIG_TEXT_BASE=0x87000000 +CONFIG_PAYLOAD_ENTRY=0x90000000 +CONFIG_RAMDISK_ENTRY=0xaeba8000