1.uboot适配S550

This commit is contained in:
payton 2023-09-22 14:27:46 +08:00
parent 7622d6903e
commit db1a616acf
2 changed files with 7 additions and 1 deletions

4
BSP/u-boot/Makefile Normal file → Executable file
View File

@ -660,9 +660,11 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
include scripts/Makefile.extrawarn
# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
MODEL = $(shell echo $(NVT_PRJCFG_MODEL_CFG) | sed 's/.*\/configs\/Linux\/cfg_\([^\/]*\)\/ModelConfig.mk/\1/g')
KBUILD_CPPFLAGS += $(KCPPFLAGS)
KBUILD_AFLAGS += $(KAFLAGS)
KBUILD_CFLAGS += $(KCFLAGS)
KBUILD_CFLAGS += $(KCFLAGS) -D_$(MODEL)_
# Use UBOOTINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option

View File

@ -81,7 +81,11 @@
#define PWM_LED_ERASE 50
#define PWM_LED_PROGRAM 5
#else
#if defined(_565_HUNTING_EVB_LINUX_4G_S530_)
#define NVT_LED_PIN DSI_GPIO(9)
#elif defined(_565_HUNTING_EVB_LINUX_4G_S550_)
#define NVT_LED_PIN P_GPIO(10)
#endif
#define NVT_LED_ERASE_DURATION 30
#define NVT_LED_PROGRAM_DURATION 10
#endif