mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-11-09 18:04:55 -06:00
perf: reclaim NanoKVM cvifb memory
* board: reclaim NanoKVM cvifb memory
This commit is contained in:
@@ -173,6 +173,7 @@
|
||||
/delete-property/ mute-gpio-r;
|
||||
};
|
||||
|
||||
#if (CVIMMAP_FRAMEBUFFER_SIZE > 0)
|
||||
&fb_reserved {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -180,6 +181,7 @@
|
||||
&cvi_fb {
|
||||
status = "okay";
|
||||
};
|
||||
#endif
|
||||
|
||||
&mipi_rx {
|
||||
snsr-reset = <&porte 1 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -56,9 +56,9 @@ class MemoryMap:
|
||||
|
||||
assert ISP_MEM_BASE_ADDR + ISP_MEM_BASE_SIZE <= ION_ADDR + ION_SIZE
|
||||
|
||||
# Boot logo is after the ION buffer
|
||||
# Framebuffer uses boot logo's reserved memory
|
||||
BOOTLOGO_SIZE = 8000 * SIZE_1K
|
||||
# NanoKVM has no display output, so do not reserve framebuffer/bootlogo
|
||||
# memory. Keeping this at zero returns the region to Linux.
|
||||
BOOTLOGO_SIZE = 0
|
||||
BOOTLOGO_ADDR = ION_ADDR - BOOTLOGO_SIZE
|
||||
FRAMEBUFFER_SIZE = BOOTLOGO_SIZE
|
||||
FRAMEBUFFER_ADDR = BOOTLOGO_ADDR
|
||||
|
||||
@@ -735,6 +735,11 @@ function cvi_setup_env()
|
||||
|
||||
PROJECT_FULLNAME="$CHIP"_"$BOARD"
|
||||
|
||||
# NanoKVM has no display output; do not build or load the vendor bootlogo.
|
||||
if [[ "$PROJECT_FULLNAME" == "sg2002_licheervnano_sd" ]]; then
|
||||
ENABLE_BOOTLOGO=0
|
||||
fi
|
||||
|
||||
# output folder path
|
||||
INSTALL_PATH="$TOP_DIR"/install
|
||||
OUTPUT_DIR="$INSTALL_PATH"/soc_"$PROJECT_FULLNAME"
|
||||
|
||||
Reference in New Issue
Block a user