diff --git a/device/main/u-boot-pinephone/0001-common-expose-DRAM-clock-speed.patch b/device/main/u-boot-pinephone/0001-common-expose-DRAM-clock-speed.patch index eff3a2d10..149656448 100644 --- a/device/main/u-boot-pinephone/0001-common-expose-DRAM-clock-speed.patch +++ b/device/main/u-boot-pinephone/0001-common-expose-DRAM-clock-speed.patch @@ -1,40 +1,32 @@ -From a568d5efe609fec974d44fec4cba31288ab0f621 Mon Sep 17 00:00:00 2001 +From 4061bf81c366ccb309e2e597c5012ca246809b3a Mon Sep 17 00:00:00 2001 From: Bobby The Builder -Date: Mon, 29 Mar 2021 16:42:07 -0400 -Subject: [PATCH 4/5] common: expose DRAM clock speed +Date: Thu, 12 Jan 2023 10:23:39 -0500 +Subject: [PATCH] common: expose DRAM clock speed -add memory/ram_freq --- - common/board_f.c | 6 ++++-- - common/main.c | 7 +++++++ - 2 files changed, 11 insertions(+), 2 deletions(-) + common/board_f.c | 3 +++ + common/main.c | 6 ++++++ + 2 files changed, 9 insertions(+) diff --git a/common/board_f.c b/common/board_f.c -index 0cddf0359d..e481c70ef0 100644 +index e6117a7ba5..1fcfd3da86 100644 --- a/common/board_f.c +++ b/common/board_f.c -@@ -227,12 +227,14 @@ static int show_dram_config(void) - print_size(gd->bd->bi_dram[i].size, "\n"); - #endif - } -- debug("\nDRAM: "); -+ debug("\nDRAM Size: "); +@@ -251,6 +251,9 @@ static int show_dram_config(void) + debug("\nDRAM: "); - print_size(size, ""); - board_add_ram_info(0); - putc('\n'); -- + print_size(gd->ram_size, ""); +#if defined(CONFIG_DRAM_CLK) -+ printf("DRAM Clock: %d MHz\n", CONFIG_DRAM_CLK); ++ printf(" @ %d MHz", CONFIG_DRAM_CLK); +#endif - return 0; - } - + if (!sizes_near(gd->ram_size, size)) { + printf(" (effective "); + print_size(size, ")"); diff --git a/common/main.c b/common/main.c -index ae5bcdb32f..85adcc6c13 100644 +index 682f3359ea..877df4c858 100644 --- a/common/main.c +++ b/common/main.c -@@ -46,6 +46,13 @@ void main_loop(void) +@@ -46,6 +46,12 @@ void main_loop(void) if (IS_ENABLED(CONFIG_VERSION_VARIABLE)) env_set("ver", version_string); /* set version variable */ @@ -42,12 +34,11 @@ index ae5bcdb32f..85adcc6c13 100644 + char ram_clk_string[11]; + sprintf(ram_clk_string, "%d", CONFIG_DRAM_CLK); + env_set("ram_freq", ram_clk_string); -+ printf("Set ram_freq : %s\n", ram_clk_string); +#endif + cli_init(); if (IS_ENABLED(CONFIG_USE_PREBOOT)) -- -2.31.1 +2.38.1 diff --git a/device/main/u-boot-pinephone/APKBUILD b/device/main/u-boot-pinephone/APKBUILD index ee1f736be..add70510c 100644 --- a/device/main/u-boot-pinephone/APKBUILD +++ b/device/main/u-boot-pinephone/APKBUILD @@ -4,8 +4,8 @@ # Co-Maintainer: Dylan Van Assche # U-boot with patches to make the PinePhone boot faster and have control over the ddr clock speed pkgname=u-boot-pinephone -pkgver=2022.07 -pkgrel=1 +pkgver=2023.01 +pkgrel=0 pkgdesc="U-Boot bootloader for the PINE64 PinePhone" url="https://source.denx.de/u-boot" arch="aarch64" @@ -63,8 +63,8 @@ package() { } sha512sums=" -7cd524d5c4b692c99d61fae4e7d99287ce4bca06884dc02b62bd69dfdf594cc9232c13c5b8dbb3aeac125bf7907591dbc6a40e2ea3e39f024bd5a5d42aeaa4cd u-boot-v2022.07.tar.gz +c25aae1b0d2f677d295587c6d318f23d52bc3a79e968bed9093645943a9840c56b1f6f44e5649d236e76e3dc85f0473c1da4a5205c02dcf437bca820acaf6fb8 u-boot-v2023.01.tar.gz 8dc0a8847ed26d91d3acc9b7b9dd300f95a68049207b09c3cfca1ec485f6f976aa65e0d101a4b46ecc4e85e943cbdec35e81ab0da07b1d5d0b68b4b10858b44b update-u-boot -86d9587cb2b0ca99fb4090bd0daacd47c0043858654f6f7114c8d0ed6c660eb2b8bc0b37de6723e738df9b1137d62482f00764c284f4aa0a6054db9efe754db9 0001-common-expose-DRAM-clock-speed.patch +0a05291f5d544854b6e27c7c3290878c55382c50e0374c880d457e7c21425eaec23fd67047fd7e629dba3fa060aa041dec5880e7edc9e52dea897fb93af5d2aa 0001-common-expose-DRAM-clock-speed.patch 9b9a5bd2cb5c04715a5bb2d34bfc06e63817dba7ec40fa2b09000a0827590623e85ed5877d6b6bb39f2bb917e5e9d8e1379e3df9128e3304be06abc487c68df2 0002-disable-bootdelay.patch "