sysdrv:source:mcu:.gitignore:Cancel compiler synchronization to the repository
sysdrv:tools:board:kernel:rv1106-luckfox-pico-pro-max-fastboot.dts:Add kernel LED blinking configuration sysdrv:tools:board:luckfox_config:luckfox-config:Add conflict warnings for SDMMC pin multiplexing on Luckfox Pico Plus, optimize I2C4 multiplexing checks Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
parent
bcec08c396
commit
b41667589a
2
sysdrv/source/mcu/.gitignore
vendored
2
sysdrv/source/mcu/.gitignore
vendored
|
|
@ -1 +1 @@
|
||||||
./prebuilts/*
|
prebuilts
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,15 @@
|
||||||
chosen {
|
chosen {
|
||||||
bootargs = "loglevel=0 rootfstype=erofs rootflags=dax console=ttyFIQ0 root=/dev/rd0 snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 driver_async_probe=dwmmc_rockchip";
|
bootargs = "loglevel=0 rootfstype=erofs rootflags=dax console=ttyFIQ0 root=/dev/rd0 snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 driver_async_probe=dwmmc_rockchip";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds: leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
work_led: work{
|
||||||
|
gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||||
|
linux,default-trigger = "activity";
|
||||||
|
default-state = "on";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/delete-node/ &thunder_boot_spi_nor;
|
/delete-node/ &thunder_boot_spi_nor;
|
||||||
|
|
|
||||||
|
|
@ -208,26 +208,19 @@ function luckfox_load_cfg() {
|
||||||
|
|
||||||
# SDMMC
|
# SDMMC
|
||||||
value=$(luckfox_get_pin_cfg "SDMMC_ENABLE")
|
value=$(luckfox_get_pin_cfg "SDMMC_ENABLE")
|
||||||
if [ -z "$value" ] && [ "$LUCKFOX_CHIP_MEDIA_CLASS" == "spi_nand" ] && [ "$LUCKFOX_CHIP_MEDIA" == "Luckfox Pico Plus" ]; then
|
|
||||||
luckfox_set_pin_mark "GPIO3_A1" 1
|
if [ -z "$value" ]; then
|
||||||
luckfox_set_pin_mark "GPIO3_A3" 1
|
if [ "$LUCKFOX_CHIP_MODEL" == "Luckfox Pico Plus" ]; then
|
||||||
luckfox_set_pin_mark "GPIO3_A2" 1
|
luckfox_set_pin_mark "GPIO3_A1" 1
|
||||||
luckfox_set_pin_mark "GPIO3_A4" 1
|
luckfox_set_pin_mark "GPIO3_A3" 1
|
||||||
luckfox_set_pin_mark "GPIO3_A5" 1
|
luckfox_set_pin_mark "GPIO3_A2" 1
|
||||||
luckfox_set_pin_mark "GPIO3_A7" 1
|
luckfox_set_pin_mark "GPIO3_A4" 1
|
||||||
luckfox_set_pin_mark "GPIO3_A6" 1
|
luckfox_set_pin_mark "GPIO3_A5" 1
|
||||||
elif [ "$LUCKFOX_CHIP_MEDIA_CLASS" == "sdmmc" ] && [ "$LUCKFOX_CHIP_MEDIA" == "Luckfox Pico Plus" ]; then
|
luckfox_set_pin_mark "GPIO3_A7" 1
|
||||||
luckfox_set_pin_mark "GPIO3_A1" 1
|
luckfox_set_pin_mark "GPIO3_A6" 1
|
||||||
luckfox_set_pin_mark "GPIO3_A3" 1
|
|
||||||
luckfox_set_pin_mark "GPIO3_A2" 1
|
|
||||||
luckfox_set_pin_mark "GPIO3_A4" 1
|
|
||||||
luckfox_set_pin_mark "GPIO3_A5" 1
|
|
||||||
luckfox_set_pin_mark "GPIO3_A7" 1
|
|
||||||
luckfox_set_pin_mark "GPIO3_A6" 1
|
|
||||||
else
|
|
||||||
if [ -n "$value" ]; then
|
|
||||||
luckfox_sdmmc_app "$value"
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
luckfox_sdmmc_app "$value"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create global variables by comparing cfg files
|
# Create global variables by comparing cfg files
|
||||||
|
|
@ -1274,6 +1267,16 @@ function luckfox_check_i2c() {
|
||||||
#check CSI status
|
#check CSI status
|
||||||
if [ "$i2c_main" == 4 ]; then
|
if [ "$i2c_main" == 4 ]; then
|
||||||
csi_status=$(luckfox_get_pin_cfg "CSI_ENABLE")
|
csi_status=$(luckfox_get_pin_cfg "CSI_ENABLE")
|
||||||
|
# process default status
|
||||||
|
if [ -z "$csi_status" ]; then
|
||||||
|
# CSI I2C is not enabled on Ultra models by default
|
||||||
|
if [ "$LUCKFOX_CHIP_MODEL" == "Luckfox Pico Ultra" ] || [ "$LUCKFOX_CHIP_MODEL" == "Luckfox Pico Ultra W" ]; then
|
||||||
|
"$csi_status" = 0
|
||||||
|
else
|
||||||
|
"$csi_status" = 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$csi_status" == 1 ]; then
|
if [ "$csi_status" == 1 ]; then
|
||||||
luckfox_result_handle "$LF_ERR" "CSI is enable,Can't config I2C4"
|
luckfox_result_handle "$LF_ERR" "CSI is enable,Can't config I2C4"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user