Skip to content
Snippets Groups Projects
Commit 231c48d9 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[D18][ENV] add carrier overlay options

parent 3cafdf70
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,24 @@ data_boot_dev_t filesystem_dev_imx8_list [] = {
size_t filesystem_dev_imx8_size = sizeof( filesystem_dev_imx8_list ) / sizeof( filesystem_dev_imx8_list[0] );
#ifdef CONFIG_OF_LIBFDT_OVERLAY
/* Carrier Boards */
overlay_list_t overlay_carrier_list [] = {
{
.title = "Carrier Board",
.options = {
{ "not used", "" }, // default
{ "CSM-B79", "seco-imx8mp-d18-b79.dtbo" },
{ "CSM-E71", "seco-imx8mp-d18-e71.dtbo" },
{ "CSM-MV", "seco-imx8mp-d18-mv.dtbo" },
},
},
};
size_t overlay_carrier_size = sizeof( overlay_carrier_list ) / sizeof( overlay_carrier_list[0] );
#endif
/* HDMI, LVDS ChA + ChB */
video_mode_t video_mode_list_CFG_D1 [] = {
{
......@@ -253,7 +271,6 @@ touch_mode_t touch_mode_list [] = {
size_t touch_mode_size = sizeof( touch_mode_list ) / sizeof( touch_mode_list[0] );
#ifdef CONFIG_OF_LIBFDT_OVERLAY
/* *********************************** FDT OVERLAY *********************************** */
/* REV_A */
overlay_list_t overlay_peripheral_list_REVA [] = {
......
......@@ -527,6 +527,10 @@ int board_late_init(void)
gd->bsp_sources.ramfs_dev_num = ramfs_dev_imx8_size;
gd->bsp_sources.filesystem_dev_list = &filesystem_dev_imx8_list[0];
gd->bsp_sources.filesystem_dev_num = filesystem_dev_imx8_size;
#ifdef CONFIG_OF_LIBFDT_OVERLAY
gd->boot_setup.overlay_carrier_list = overlay_carrier_list;
gd->boot_setup.overlay_carrier_num = overlay_carrier_size;
#endif
if(!video_edp) {
gd->boot_setup.video_mode_list = video_mode_list_CFG_D1;
gd->boot_setup.video_mode_num = video_mode_size_CFG_D1;
......
......@@ -212,6 +212,7 @@
#define ENV_SYS_MMC_ROOTFS_PART 2
#define ENV_ROOT_DEV_ID 1
#define ENV_IS_MODULE 1
#define ENV_NUM_VIDEO_OUTPUT 1 /* configurable video output */
#define ENV_NUM_TOUCH 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment