diff --git a/board/Kconfig b/board/Kconfig index 1e7fac0..8587606 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -89,6 +89,13 @@ menu "Device Support" depends on EXYNOS_990 help Say Y if you want to include support for Samsung Galaxy S20 FE + + config VOLLA_ALGIZ + bool "Support for Volla Phone Quintus" + default n + depends on MT6877 + help + Say Y if you want to include support for Volla Phone Quintus endmenu menu "Device Specific Addresses" @@ -112,6 +119,7 @@ menu "Device Specific Addresses" default 0x090000000 if SAMSUNG_J5LTE default 0x090000000 if SAMSUNG_GTA4XL default 0x090000000 if SAMSUNG_R8S + default 0x60000000 if VOLLA_ALGIZ config RAMDISK_ENTRY hex "Ramdisk Entry Address" @@ -120,6 +128,7 @@ menu "Device Specific Addresses" default 0x084000000 if SAMSUNG_G0S default 0x084000000 if SAMSUNG_X1S default 0x084000000 if SAMSUNG_R8S + default 0x51100000 if VOLLA_ALGIZ config FRAMEBUFFER_BASE hex "Framebuffer Base Address (for SimpleFB)" @@ -137,6 +146,7 @@ menu "Device Specific Addresses" default 0x08e000000 if SAMSUNG_J5LTE default 0x0ca000000 if SAMSUNG_GTA4XL default 0x0f1000000 if SAMSUNG_R8S + default 0x7d010000 if VOLLA_ALGIZ config FRAMEBUFFER_WIDTH int "Framebuffer Width (for SimpleFB)" @@ -154,6 +164,7 @@ menu "Device Specific Addresses" default 720 if SAMSUNG_J5LTE default 1200 if SAMSUNG_GTA4XL default 1080 if SAMSUNG_R8S + default 1080 if VOLLA_ALGIZ config FRAMEBUFFER_HEIGHT int "Framebuffer Height (for SimpleFB)" @@ -171,6 +182,7 @@ menu "Device Specific Addresses" default 1280 if SAMSUNG_J5LTE default 2000 if SAMSUNG_GTA4XL default 2400 if SAMSUNG_R8S + default 2400 if VOLLA_ALGIZ config FRAMEBUFFER_STRIDE int "Framebuffer Stride (for SimpleFB)" @@ -188,6 +200,7 @@ menu "Device Specific Addresses" default 3 if SAMSUNG_J5LTE default 4 if SAMSUNG_GTA4XL default 4 if SAMSUNG_R8S + default 4 if VOLLA_ALGIZ config FRAMEBUFFER_BGRA bool "Framebuffer BGRA (for SimpleFB)" diff --git a/board/Makefile b/board/Makefile index c7a9e66..55af86e 100644 --- a/board/Makefile +++ b/board/Makefile @@ -11,3 +11,4 @@ lib-$(CONFIG_SAMSUNG_J5LTE) += samsung/board-j5lte.o lib-$(CONFIG_SAMSUNG_J4LTE) += samsung/board-j4lte.o lib-$(CONFIG_SAMSUNG_GTA4XL) += samsung/board-gta4xl.o lib-$(CONFIG_SAMSUNG_R8S) += samsung/board-r8s.o +lib-$(CONFIG_VOLLA_ALGIZ) += volla/board-algiz.o diff --git a/board/volla/board-algiz.c b/board/volla/board-algiz.c new file mode 100755 index 0000000..8efbf03 --- /dev/null +++ b/board/volla/board-algiz.c @@ -0,0 +1,52 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2025, Ivaylo Ivanov + */ +#include +#include +#include + +void init_board_funcs(void *board) +{ + /* + * Parsing the struct directly without restructing is + * broken as of Sep 29 2024 + */ + struct { + const char *name; + int ops[BOARD_OP_EXIT]; + } *board_restruct = board; + + board_restruct->name = "ALGIZ"; +} + +// Early initialization +int board_init(void) +{ + /* TODO: Deal with framebuffer refreshing here */ + return 0; +} + +// Late initialization +int board_late_init(void) +{ + return 0; +} + +int board_driver_setup(void) +{ + struct { + int width; + int height; + int stride; + void *address; + } simplefb_data = { + .width = 1080, + .height = 2400, + .stride = 4, + .address = (void *)0x7d010000 + }; + + REGISTER_DRIVER("simplefb", simplefb_probe, &simplefb_data); + return 0; +} diff --git a/soc/Kconfig b/soc/Kconfig index 9f0631a..969d28b 100644 --- a/soc/Kconfig +++ b/soc/Kconfig @@ -6,6 +6,10 @@ config EXYNOS bool default n +config MEDIATEK + bool + default n + config QUALCOMM bool default n @@ -83,6 +87,13 @@ config QUALCOMM help Say Y if your device uses Samsung Exynos990 SoC + config MT6877 + bool "Support for Mediatek MT6877" + default n + select MEDIATEK + help + Say Y if your device uses Mediatek MT6877 SoC + config QC32_8916 bool "Support for QUALCOMM MSM8916" default n