board: phytec: phycore-imx8mm: Add EEPROM detection initialisation
Add EEPROM detection initialisation for phyCORE-i.MX8MM. Signed-off-by: Yunus Bas <y.bas@phytec.de>
This commit is contained in:
@@ -14,6 +14,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pinctrl_i2c1 {
|
||||||
|
bootph-pre-ram;
|
||||||
|
};
|
||||||
|
|
||||||
&pinctrl_uart3 {
|
&pinctrl_uart3 {
|
||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
};
|
};
|
||||||
@@ -54,6 +58,10 @@
|
|||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
bootph-pre-ram;
|
||||||
|
};
|
||||||
|
|
||||||
&uart3 {
|
&uart3 {
|
||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
};
|
};
|
||||||
|
@@ -12,4 +12,5 @@ config SYS_CONFIG_NAME
|
|||||||
config IMX_CONFIG
|
config IMX_CONFIG
|
||||||
default "board/phytec/phycore_imx8mm/imximage-8mm-sd.cfg"
|
default "board/phytec/phycore_imx8mm/imximage-8mm-sd.cfg"
|
||||||
|
|
||||||
|
source "board/phytec/common/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
@@ -17,8 +17,13 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
||||||
|
#include "../common/imx8m_som_detection.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
#define EEPROM_ADDR 0x51
|
||||||
|
#define EEPROM_ADDR_FALLBACK 0x59
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
switch (boot_dev_spl) {
|
switch (boot_dev_spl) {
|
||||||
@@ -39,6 +44,18 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
|
|||||||
|
|
||||||
static void spl_dram_init(void)
|
static void spl_dram_init(void)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = phytec_eeprom_data_setup_fallback(NULL, 0, EEPROM_ADDR,
|
||||||
|
EEPROM_ADDR_FALLBACK);
|
||||||
|
if (ret)
|
||||||
|
goto out;
|
||||||
|
|
||||||
|
ret = phytec_imx8m_detect(NULL);
|
||||||
|
if (!ret)
|
||||||
|
phytec_print_som_info(NULL);
|
||||||
|
|
||||||
|
out:
|
||||||
ddr_init(&dram_timing);
|
ddr_init(&dram_timing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,6 +11,7 @@ CONFIG_ENV_OFFSET=0x3C0000
|
|||||||
CONFIG_DM_GPIO=y
|
CONFIG_DM_GPIO=y
|
||||||
CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mm-phyboard-polis-rdk"
|
CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mm-phyboard-polis-rdk"
|
||||||
CONFIG_TARGET_PHYCORE_IMX8MM=y
|
CONFIG_TARGET_PHYCORE_IMX8MM=y
|
||||||
|
CONFIG_PHYTEC_SOM_DETECTION=y
|
||||||
CONFIG_DM_RESET=y
|
CONFIG_DM_RESET=y
|
||||||
CONFIG_SYS_MONITOR_LEN=524288
|
CONFIG_SYS_MONITOR_LEN=524288
|
||||||
CONFIG_SPL_MMC=y
|
CONFIG_SPL_MMC=y
|
||||||
|
Reference in New Issue
Block a user