diff --git a/.gitignore b/.gitignore index a39b910f..1d4fc0b1 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ lib/*.a* .config* *.cmd */*.cmd - +include/config/auto.conf +include/generated/autoconf.h +include/config diff --git a/board/Kconfig b/board/Kconfig index c057a69f..601de32f 100644 --- a/board/Kconfig +++ b/board/Kconfig @@ -7,15 +7,20 @@ menu "Device Support" help Say Y if you want to include support for iPhone 6 - config SAMSUNG_DREAMLTE bool "Support for Samsung Galaxy S8" default n depends on EXYNOS_8895 - #select EXYNOS_8895 help Say Y if you want to include support for Samsung Galaxy S8 + config SAMSUNG_STARLTE + bool "Support for Samsung Galaxy S9" + default n + depends on EXYNOS_9810 + help + Say Y if you want to include support for Samsung Galaxy S9 + endmenu menu "Device Specific Addresses" @@ -24,6 +29,7 @@ menu "Device Specific Addresses" hex "Payload Entry Address" default 0x830000000 if APPLE_N61AP default 0x090000000 if SAMSUNG_DREAMLTE + default 0x090000000 if SAMSUNG_STARLTE config PAYLOAD_SIZE hex "Payload Size" @@ -34,23 +40,27 @@ menu "Device Specific Addresses" depends on SIMPLE_FB default 0x83e900000 if APPLE_N61AP default 0x0cc000000 if SAMSUNG_DREAMLTE + default 0x0cc000000 if SAMSUNG_STARLTE config FRAMEBUFFER_WIDTH int "Framebuffer Width (for SimpleFB)" depends on SIMPLE_FB default 752 if APPLE_N61AP default 1440 if SAMSUNG_DREAMLTE + default 1440 if SAMSUNG_STARLTE config FRAMEBUFFER_HEIGHT int "Framebuffer Height (for SimpleFB)" depends on SIMPLE_FB default 1334 if APPLE_N61AP default 2960 if SAMSUNG_DREAMLTE + default 2960 if SAMSUNG_STARLTE config FRAMEBUFFER_STRIDE int "Framebuffer Stride (for SimpleFB)" depends on SIMPLE_FB default 4 if APPLE_N61AP default 4 if SAMSUNG_DREAMLTE + default 4 if SAMSUNG_STARLTE endmenu diff --git a/board/Makefile b/board/Makefile index f8e0466f..54e623d7 100644 --- a/board/Makefile +++ b/board/Makefile @@ -1,2 +1,3 @@ lib-$(CONFIG_APPLE_N61AP) += apple/board-n61ap.o lib-$(CONFIG_SAMSUNG_DREAMLTE) += samsung/board-dreamlte.o +lib-$(CONFIG_SAMSUNG_STARLTE) += samsung/board-starlte.o diff --git a/board/samsung/board-starlte.c b/board/samsung/board-starlte.c new file mode 100644 index 00000000..8f4ed013 --- /dev/null +++ b/board/samsung/board-starlte.c @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2022, Markuss Broks + */ + +void board_init(void) { + +} diff --git a/configs/starlte_defconfig b/configs/starlte_defconfig new file mode 100644 index 00000000..3d9f5023 --- /dev/null +++ b/configs/starlte_defconfig @@ -0,0 +1,3 @@ +CONFIG_CROSS_COMPILE="aarch64-linux-gnu-" +CONFIG_EXYNOS_9810=y +CONFIG_SAMSUNG_STARLTE=y diff --git a/include/config/apple/n61ap.h b/include/config/apple/n61ap.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/apple/silicon.h b/include/config/apple/silicon.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/apple/t7000.h b/include/config/apple/t7000.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/auto.conf b/include/config/auto.conf deleted file mode 100644 index 519a5639..00000000 --- a/include/config/auto.conf +++ /dev/null @@ -1,15 +0,0 @@ -# -# Automatically generated make config: don't edit -# uniLoader Configuration -# -CONFIG_PAYLOAD_SIZE=0x2000000 -CONFIG_PAYLOAD_ENTRY=0x090000000 -CONFIG_EXYNOS=y -CONFIG_SIMPLE_FB=y -CONFIG_EXYNOS_8895=y -CONFIG_SAMSUNG_DREAMLTE=y -CONFIG_FRAMEBUFFER_STRIDE=4 -CONFIG_FRAMEBUFFER_WIDTH=1440 -CONFIG_FRAMEBUFFER_HEIGHT=2960 -CONFIG_FRAMEBUFFER_BASE=0xcc000000 -CONFIG_CROSS_COMPILE="aarch64-linux-gnu-" diff --git a/include/config/auto.conf.cmd b/include/config/auto.conf.cmd deleted file mode 100644 index 15347d8d..00000000 --- a/include/config/auto.conf.cmd +++ /dev/null @@ -1,11 +0,0 @@ -deps_config := \ - board/Kconfig \ - soc/Kconfig \ - lib/Kconfig \ - Kconfig - -include/config/auto.conf: \ - $(deps_config) - - -$(deps_config): ; diff --git a/include/config/cross/compile.h b/include/config/cross/compile.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/default/loglevel.h b/include/config/default/loglevel.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/enable/logging.h b/include/config/enable/logging.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/exynos.h b/include/config/exynos.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/exynos/8895.h b/include/config/exynos/8895.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/framebuffer/base.h b/include/config/framebuffer/base.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/framebuffer/height.h b/include/config/framebuffer/height.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/framebuffer/stride.h b/include/config/framebuffer/stride.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/framebuffer/width.h b/include/config/framebuffer/width.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/logging/time.h b/include/config/logging/time.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/payload/entry.h b/include/config/payload/entry.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/payload/size.h b/include/config/payload/size.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/samsung/dreamlte.h b/include/config/samsung/dreamlte.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/simple/fb.h b/include/config/simple/fb.h deleted file mode 100644 index e69de29b..00000000 diff --git a/include/config/tristate.conf b/include/config/tristate.conf deleted file mode 100644 index f7292fe4..00000000 --- a/include/config/tristate.conf +++ /dev/null @@ -1,3 +0,0 @@ -# -# Automatically generated - do not edit - diff --git a/include/generated/autoconf.h b/include/generated/autoconf.h deleted file mode 100644 index a9fc2080..00000000 --- a/include/generated/autoconf.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Automatically generated C config: don't edit - * uniLoader Configuration - */ -#define CONFIG_PAYLOAD_SIZE 0x2000000 -#define CONFIG_PAYLOAD_ENTRY 0x090000000 -#define CONFIG_EXYNOS 1 -#define CONFIG_SIMPLE_FB 1 -#define CONFIG_EXYNOS_8895 1 -#define CONFIG_SAMSUNG_DREAMLTE 1 -#define CONFIG_FRAMEBUFFER_STRIDE 4 -#define CONFIG_FRAMEBUFFER_WIDTH 1440 -#define CONFIG_FRAMEBUFFER_HEIGHT 2960 -#define CONFIG_FRAMEBUFFER_BASE 0xcc000000 -#define CONFIG_CROSS_COMPILE "aarch64-linux-gnu-"