From 84bc0d3d74580bf4c9d2e091e89a710d4ada236d Mon Sep 17 00:00:00 2001 From: Igor Belwon Date: Mon, 4 May 2026 23:03:51 +0200 Subject: [PATCH] board: Add support for the Sony PlayStation Vita This commit adds support for the PSVita 1xxx/2xxx variants, which have: - 4x Cortex A9 - OLED/LCD display (both types get init. by libbaremetal before) - 512MB RAM (ew) - Some PowerVR custom GPU (ew) --- README.md | 3 +++ board/Kconfig | 8 ++++++++ board/Makefile | 1 + board/sony/board-vita.c | 36 ++++++++++++++++++++++++++++++++++++ configs/vita_defconfig | 6 ++++++ 5 files changed, 54 insertions(+) create mode 100644 board/sony/board-vita.c create mode 100644 configs/vita_defconfig diff --git a/README.md b/README.md index 3365cba..4af1acf 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,9 @@ environment in case of a forced and buggy bootloader. - X1S - ZEROFLTE +### Sony +- PSVITA + ### Volla - Algiz diff --git a/board/Kconfig b/board/Kconfig index e6333d5..df9045f 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -235,6 +235,14 @@ menu "Device Support" help Say Y if you want to include support for Samsung Galaxy S6 + config SONY_PSVITA + bool "Support for Sony PlayStation Vita" + default n + depends on SONY_KERMIT + help + Say Y if you want to include support for Sony PlayStation + Vita. + config VOLLA_ALGIZ bool "Support for Volla Phone Quintus" default n diff --git a/board/Makefile b/board/Makefile index b53759b..8878c1f 100644 --- a/board/Makefile +++ b/board/Makefile @@ -30,6 +30,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_PSVITA) += sony/board-vita.o lib-$(CONFIG_VOLLA_ALGIZ) += volla/board-algiz.o lib-$(CONFIG_XIAOMI_BEGONIA) += xiaomi/board-begonia.o lib-$(CONFIG_XIAOMI_BLOSSOM) += xiaomi/board-blossom.o diff --git a/board/sony/board-vita.c b/board/sony/board-vita.c new file mode 100644 index 0000000..a66e4b5 --- /dev/null +++ b/board/sony/board-vita.c @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2026, Igor Belwon + */ + +#include +#include +#include +#include + +#ifdef CONFIG_SIMPLE_FB +static struct video_info vita12k_fb = { + .format = FB_FORMAT_BGRA8888, + .width = 960, + .height = 544, + .stride = 4, + .address = (void *)0x20000000 +}; +#endif + +int vita_drv(void) +{ +#ifdef CONFIG_SIMPLE_FB + // for now only vita1k/vita2k is supported, PSTV would need more config :/ + REGISTER_DRIVER("simplefb", simplefb_probe, &vita12k_fb); +#endif + return 0; +} + +struct board_data board_ops = { + .name = "sony-psvita", + .ops = { + .drivers_init = vita_drv, + }, + .quirks = 0 +}; diff --git a/configs/vita_defconfig b/configs/vita_defconfig new file mode 100644 index 0000000..cc5d0fb --- /dev/null +++ b/configs/vita_defconfig @@ -0,0 +1,6 @@ +# CONFIG_COMPRESS_GZIP is not set +CONFIG_SONY_KERMIT=y +CONFIG_SONY_PSVITA=y +CONFIG_TEXT_BASE=0x44000000 +CONFIG_PAYLOAD_ENTRY=0x45000000 +CONFIG_RAMDISK_ENTRY=0x4A000000