1.uboot适配S550
This commit is contained in:
parent
7622d6903e
commit
db1a616acf
4
BSP/u-boot/Makefile
Normal file → Executable file
4
BSP/u-boot/Makefile
Normal file → Executable 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user