board: seco: dynamic board configuration for peripheral/video device support
In order to set board configuration there are 2 ways:
- dynamic configuration -> Board get peripheral/video configuration from strap
- static configuration -> Board get peripheral/video configutation from seco_config command
This patch first implement dynamic configuration. Uboot check board strap configuration and populate new two variables:
- fdt_overlay_per_dynamic_cmd
- fdt_overlay_video_dynamic_cmd
These variables contains the list of dtbo's selected from board strap. On the other side seco_config cmd populate the following variables that contains the list of dtbo's selected by seco_config:
- fdt_overlay_per_cmd
- fdt_overlay_video_cmd
Before boot we check if we use seco_config selection (static) or board strap selection (dynamic), for both video and peripheral devices, checking the following variables (if seco_config cmd is used per_use_seco_config/video_use_seco_config are set to 1):
- per_use_seco_config (default 0) | 0 -> use board strap cfg (dynamic) | 1 -> use seco_config sel (static) | peripheral
- video_use_seco_config (default 0) | 0 -> use board strap cfg (dynamic) | 1 -> use seco_config sel (static) | video
seco_config fdtoverlay cmd is used against choosen static/dynamic list before boot to create _cmd list.
- fdt_overlay_video_dynamic_list
- fdt_overlay_per_dynamic_list
Note:
Command:
- seco_config fdtoverlay
Create uboot env variable in witch there is a series of commands to run a list of dtbo against dtb file. The list is given by dynamic or static configuration.