summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSamin Guo <samin.guo@starfivetech.com>2023-07-19 06:06:27 +0300
committerSamin Guo <samin.guo@starfivetech.com>2023-07-19 13:13:48 +0300
commit1539d6e71eed3c2ad420ae4344ae7d37226b3ec5 (patch)
tree0de222865e60d7d57da582581856a47b53cb290d /board
parentee703a5e8cfb6a98090c6f3ecb1dba4670101213 (diff)
downloadu-boot-1539d6e71eed3c2ad420ae4344ae7d37226b3ec5.tar.xz
board: starfive: evb: Add dynamic CMA adjustment scheme
Synchronize from vf2 to the dynamic CMA scheme Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Diffstat (limited to 'board')
-rw-r--r--board/starfive/evb/starfive_evb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c
index 493f4394ca..3fdbb29b6c 100644
--- a/board/starfive/evb/starfive_evb.c
+++ b/board/starfive/evb/starfive_evb.c
@@ -289,6 +289,14 @@ int board_late_init(void)
struct udevice *dev;
int ret;
+ /*
+ * save the memory info by environment variable in u-boot,
+ * It will used to update the memory configuration in dts,
+ * which passed to kernel lately.
+ */
+ env_set_hex("memory_addr", gd->ram_base);
+ env_set_hex("memory_size", gd->ram_size);
+
ret = uclass_get_device(UCLASS_VIDEO, 0, &dev);
if (ret)
return ret;