board: Add support for Xiaomi 17 Ultra (nezha)
Header version V4. Gunyah. Snapdragon 8 Elite Gen5. Xiaomeme. ``` make -j32 nezha_defconfig make -j32 mkbootimg --kernel uniLoader.gz --header_version 4 --out uniBoot.img fastboot boot uniBoot.img ```
This commit is contained in:
1 parent
88db4b53c0
commit
34f294cdd9
5 files changed
+50
No files matched your search
@@ -82,6 +82,7 @@ environment in case of a forced and buggy bootloader.
|
||||
- Begonia
|
||||
- Blossom
|
||||
- Camellia
|
||||
- Nezha
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -308,6 +308,13 @@ menu "Device Support"
|
||||
depends on MT6833
|
||||
help
|
||||
Say Y if you want to include support for Poco M3 Pro 5G
|
||||
|
||||
config XIAOMI_NEZHA
|
||||
bool "Support for Xiaomi 17 Ultra"
|
||||
default n
|
||||
depends on SM8850
|
||||
help
|
||||
Say Y if you want to include support for Xiaomi 17 Ultra
|
||||
endmenu
|
||||
|
||||
menu "Device Specific Addresses"
|
||||
|
||||
@@ -40,3 +40,4 @@ lib-$(CONFIG_VOLLA_ALGIZ) += volla/board-algiz.o
|
||||
lib-$(CONFIG_XIAOMI_BEGONIA) += xiaomi/board-begonia.o
|
||||
lib-$(CONFIG_XIAOMI_BLOSSOM) += xiaomi/board-blossom.o
|
||||
lib-$(CONFIG_XIAOMI_CAMELLIA) += xiaomi/board-camellia.o
|
||||
lib-$(CONFIG_XIAOMI_NEZHA) += xiaomi/board-nezha.o
|
||||
@@ -0,0 +1,34 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2026, Igor Belwon <igor.belwon@mentallysanemainliners.org>
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <util.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/debug.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
static struct video_info nezha_fb = {
|
||||
.format = FB_FORMAT_ARGB8888,
|
||||
.width = 1200,
|
||||
.height = 2608,
|
||||
.stride = 4,
|
||||
.address = (void *)0xfc800000,
|
||||
|
||||
// The scale that is set by default is extremely large.
|
||||
.scale = 2
|
||||
};
|
||||
|
||||
static const struct device nezha_devices[] = {
|
||||
{ "simplefb", &nezha_fb, "fb" },
|
||||
};
|
||||
|
||||
struct board_data board_ops = {
|
||||
.name = "xiaomi-nezha",
|
||||
.ops = {
|
||||
},
|
||||
.devices = nezha_devices,
|
||||
.num_devices = ARRAY_SIZE(nezha_devices),
|
||||
.quirks = 0
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
CONFIG_POSITION_INDEPENDENT=y
|
||||
CONFIG_LINUX_KRNL_HEADER_IMG=y
|
||||
CONFIG_SM8850=y
|
||||
CONFIG_XIAOMI_NEZHA=y
|
||||
CONFIG_TEXT_BASE=0xa6980000
|
||||
CONFIG_PAYLOAD_ENTRY=0xc4800000
|
||||
CONFIG_RAMDISK_ENTRY=0xd9900000
|
||||
Reference in new issue
Block a user