board: samsung: add initial support for coreprimevelte board
authorDuje Mihanović <duje.mihanovic@skole.hr>
Fri, 24 Jan 2025 15:47:50 +0000 (16:47 +0100)
committerStefan Roese <sr@denx.de>
Tue, 28 Jan 2025 08:08:44 +0000 (09:08 +0100)
Samsung Galaxy Core Prime VE LTE is an entry-level PXA1908-based
smartphone. It has 1GB of DRAM, 8GB eMMC and USB connectivity.

Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/Makefile
arch/arm/dts/pxa1908-samsung-coreprimevelte.dts [new file with mode: 0644]
arch/arm/mach-mmp/Kconfig
board/samsung/coreprimevelte/Kconfig [new file with mode: 0644]
board/samsung/coreprimevelte/MAINTAINERS [new file with mode: 0644]
configs/coreprimevelte_defconfig [new file with mode: 0644]

index b7df724..0bf3697 100644 (file)
@@ -1226,6 +1226,8 @@ dtb-$(CONFIG_ARCH_QEMU) += qemu-arm.dtb qemu-arm64.dtb
 dtb-$(CONFIG_TARGET_CORSTONE1000) += corstone1000-mps3.dtb \
                                corstone1000-fvp.dtb
 
+dtb-$(CONFIG_TARGET_COREPRIMEVELTE) += pxa1908-samsung-coreprimevelte.dtb
+
 include $(srctree)/scripts/Makefile.dts
 
 # Add any required device tree compiler flags here
diff --git a/arch/arm/dts/pxa1908-samsung-coreprimevelte.dts b/arch/arm/dts/pxa1908-samsung-coreprimevelte.dts
new file mode 100644 (file)
index 0000000..588e39e
--- /dev/null
@@ -0,0 +1,74 @@
+// SPDX-License-Identifier: GPL-2.0-only
+#include "pxa1908.dtsi"
+
+/ {
+       pxa,rev-id = <3928 2>;
+       model = "Samsung Galaxy Core Prime VE LTE";
+       compatible = "samsung,coreprimevelte", "marvell,pxa1908";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               stdout-path = "serial0:115200n8";
+
+               /* S-Boot places the initramfs here */
+               linux,initrd-start = <0x4d70000>;
+               linux,initrd-end = <0x5000000>;
+
+               fb0: framebuffer@17177000 {
+                       compatible = "simple-framebuffer";
+                       reg = <0 0x17177000 0 (480 * 800 * 4)>;
+                       width = <480>;
+                       height = <800>;
+                       stride = <(480 * 4)>;
+                       format = "a8r8g8b8";
+               };
+       };
+
+       memory {
+               device_type = "memory";
+               reg = <0 0x1000000 0 0x3f000000>;
+       };
+
+       reserved-memory {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               framebuffer@17000000 {
+                       reg = <0 0x17000000 0 0x1800000>;
+                       no-map;
+               };
+
+               gpu@9000000 {
+                       reg = <0 0x9000000 0 0x1000000>;
+               };
+
+               /* Communications processor, aka modem */
+               cp@5000000 {
+                       reg = <0 0x5000000 0 0x3000000>;
+               };
+
+               cm3@a000000 {
+                       reg = <0 0xa000000 0 0x80000>;
+               };
+
+               seclog@8000000 {
+                       reg = <0 0x8000000 0 0x100000>;
+               };
+
+               ramoops@8100000 {
+                       compatible = "ramoops";
+                       reg = <0 0x8100000 0 0x40000>;
+                       record-size = <0x8000>;
+                       console-size = <0x20000>;
+                       max-reason = <5>;
+               };
+       };
+};
index b9438c6..889f127 100644 (file)
@@ -1,6 +1,12 @@
 if ARCH_MMP
 
+config TARGET_COREPRIMEVELTE
+       bool "Support coreprimevelte"
+       select LINUX_KERNEL_IMAGE_HEADER
+
 config LNX_KRNL_IMG_TEXT_OFFSET_BASE
        default TEXT_BASE
 
+source "board/samsung/coreprimevelte/Kconfig"
+
 endif
diff --git a/board/samsung/coreprimevelte/Kconfig b/board/samsung/coreprimevelte/Kconfig
new file mode 100644 (file)
index 0000000..78a8037
--- /dev/null
@@ -0,0 +1,12 @@
+if TARGET_COREPRIMEVELTE
+
+config SYS_BOARD
+       default "coreprimevelte"
+
+config SYS_VENDOR
+       default "samsung"
+
+config SYS_CONFIG_NAME
+       default "pxa1908"
+
+endif
diff --git a/board/samsung/coreprimevelte/MAINTAINERS b/board/samsung/coreprimevelte/MAINTAINERS
new file mode 100644 (file)
index 0000000..0902117
--- /dev/null
@@ -0,0 +1,6 @@
+Samsung Galaxy Core Prime VE LTE support
+M:     Duje Mihanović <duje.mihanovic@skole.hr>
+S:     Maintained
+T:     git git://git.dujemihanovic.xyz/u-boot.git
+F:     board/samsung/coreprimevelte/
+F:     configs/coreprimevelte_defconfig
diff --git a/configs/coreprimevelte_defconfig b/configs/coreprimevelte_defconfig
new file mode 100644 (file)
index 0000000..0511666
--- /dev/null
@@ -0,0 +1,18 @@
+CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_COUNTER_FREQUENCY=26000000
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_ARCH_MMP=y
+CONFIG_TEXT_BASE=0x1000000
+CONFIG_NR_DRAM_BANKS=2
+CONFIG_DEFAULT_DEVICE_TREE="pxa1908-samsung-coreprimevelte"
+CONFIG_TARGET_COREPRIMEVELTE=y
+CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_ARMV8_PSCI=y
+CONFIG_FIT=y
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_DM=y
+CONFIG_OF_BOARD=y
+CONFIG_SYS_NS16550=y
+CONFIG_SYS_NS16550_MEM32=y