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)
This commit is contained in:
1 parent
999374b9cc
commit
84bc0d3d74
5 files changed
+54
No files matched your search
@@ -67,6 +67,9 @@ environment in case of a forced and buggy bootloader.
|
||||
- X1S
|
||||
- ZEROFLTE
|
||||
|
||||
### Sony
|
||||
- PSVITA
|
||||
|
||||
### Volla
|
||||
- Algiz
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2026, Igor Belwon <igor.belwon@mentallysanemainliners.org>
|
||||
*/
|
||||
|
||||
#include <board.h>
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/debug.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
#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
|
||||
};
|
||||
@@ -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
|
||||
Reference in new issue
Block a user