Commit 120d4c0e authored by Thomas Schäfer's avatar Thomas Schäfer
Browse files

pitx-imx8m: introduce CONFIG_LOG support



- Enable CONFIG_LOG in pitx-imx8m defconfig.
- CONFIG_LOG support available in emb_eep driver so far.
- Set pitx-imx8m log format to 'm' (=0x20): log message only.
Signed-off-by: Thomas Schäfer's avatarThomas Schaefer <thomas.schaefer@kontron.com>
parent ad5acbd6
......@@ -469,6 +469,11 @@ int board_gpio_init(void)
int board_init(void)
{
/*
* adapt log format: show only log messages ('m' is the 5th element
* in the log_fmt_chars array defined in cmd/log.c
*/
gd->log_fmt = 1<<5;
board_qspi_init();
#ifdef CONFIG_FEC_MXC
......
......@@ -25,6 +25,8 @@ CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-imx/mkimage_fit_atf.sh"
CONFIG_OF_BOARD_SETUP=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/imx8m/imximage.cfg"
CONFIG_BOOTCOMMAND="run legacy_boot || run distro_bootcmd"
CONFIG_LOG_MAX_LEVEL=6
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_VERSION_VARIABLE=y
CONFIG_ARCH_MISC_INIT=y
CONFIG_SPL_BOARD_INIT=y
......@@ -49,6 +51,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_CMD_WDT=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_LOG=y
# CONFIG_ISO_PARTITION is not set
CONFIG_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="pitx-imx8mq"
......
......@@ -29,7 +29,6 @@
#undef CONFIG_USB_TCPC
#endif
#ifdef CONFIG_CMD_KBOARDINFO
#define CONFIG_KBOARDINFO_MODULE
#define CONFIG_EMB_EEP_I2C_EEPROM
......@@ -40,6 +39,7 @@
#define CONFIG_EMB_EEP_I2C_EEPROM_OFFSET_1 0x0
#define CONFIG_EMB_EEP_I2C_EEPROM_SIZE 0x1000
#ifdef CONFIG_CMD_KBOARDINFO
#define CONFIG_HAS_ETH0
#define CONFIG_HAS_ETH1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment