diff --git a/README.md b/README.md index 4af1acf..a2bc20d 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ environment in case of a forced and buggy bootloader. - ZEROFLTE ### Sony +- PDX245 - PSVITA ### Volla diff --git a/board/Kconfig b/board/Kconfig index 4fed500..ce6eec2 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -242,6 +242,13 @@ menu "Device Support" help Say Y if you want to include support for Samsung Galaxy S6 + config SONY_PDX245 + bool "Support for Sony Xperia 1 VI" + default n + depends on SM8650 + help + Say Y if you want to include support for Sony Xperia 1 VI + config SONY_PSVITA bool "Support for Sony PlayStation Vita" default n diff --git a/board/Makefile b/board/Makefile index ce57b79..8be1857 100644 --- a/board/Makefile +++ b/board/Makefile @@ -31,6 +31,7 @@ lib-$(CONFIG_SAMSUNG_R8S) += samsung/board-r8s.o lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o lib-$(CONFIG_SAMSUNG_X1S) += samsung/board-x1s.o lib-$(CONFIG_SAMSUNG_ZEROFLTE) += samsung/board-zeroflte.o +lib-$(CONFIG_SONY_PDX245) += sony/board-pdx245.o lib-$(CONFIG_SONY_PSVITA) += sony/board-vita.o lib-$(CONFIG_VOLLA_ALGIZ) += volla/board-algiz.o lib-$(CONFIG_XIAOMI_BEGONIA) += xiaomi/board-begonia.o diff --git a/board/sony/board-pdx245.c b/board/sony/board-pdx245.c new file mode 100644 index 0000000..c0d1832 --- /dev/null +++ b/board/sony/board-pdx245.c @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2026, Igor Belwon + */ + +#include +#include +#include +#include + +#ifdef CONFIG_SIMPLE_FB +static struct video_info pdx245_fb = { + .format = FB_FORMAT_ARGB8888, + .width = 1080, + .height = 2340, + .stride = 4, + .address = (void *)0xd5100000, + + // The scale that is set by default is extremely large. + .scale = 2 +}; +#endif + +int pdx245_drv(void) +{ +#ifdef CONFIG_SIMPLE_FB + REGISTER_DRIVER("simplefb", simplefb_probe, &pdx245_fb); +#endif + return 0; +} + +struct board_data board_ops = { + .name = "sony-pdx245", + .ops = { + .drivers_init = pdx245_drv, + }, + .quirks = 0 +}; diff --git a/configs/pdx245_defconfig b/configs/pdx245_defconfig new file mode 100644 index 0000000..dbc9f79 --- /dev/null +++ b/configs/pdx245_defconfig @@ -0,0 +1,7 @@ +CONFIG_POSITION_INDEPENDENT=y +CONFIG_LINUX_KRNL_HEADER_IMG=y +CONFIG_SM8650=y +CONFIG_SONY_PDX245=y +CONFIG_TEXT_BASE=0xe1bb0000 +CONFIG_PAYLOAD_ENTRY=0xe5bb0000 +CONFIG_RAMDISK_ENTRY=0xefbb0000