Skip to content

Integrate uboot-imx-kuk/trizeps8-spl-board-detection

Commit: seco-ne/3rd-party/kuk/uboot-imx-kuk@83809706

seco-mx8[mp|mm]: Use board detection in SPL to apply board specific SSC values

The 'pbb' board needs different settings, so these are applied depending on the board detection.

BCS 746-001402

--

Commit: seco-ne/3rd-party/kuk/uboot-imx-kuk@3c129085

baseboard_util: fix board detection in SPL

The current implementation of board detection calls gpio_lookup_name() which is not available in SPL:

aarch64-seconorth-linux-ld.bfd: board/keithkoep/common/built-in.o: in function `baseboard_get_gpio_value':
uboot-imx-kuk/board/keithkoep/common/baseboard_util.c:20: undefined reference to `gpio_lookup_name'
make[1]: *** [scripts/Makefile.spl:420: spl/u-boot-spl] Error 1
make: *** [Makefile:1865: spl/u-boot-spl] Error 2

The existing GPIO names are just simple numbers coded as strings (i.e. expanded IMX_GPIO_NR macro):

#define PFID_SOM_MARKER_PIN     "109"
...
// SBC imx6
#define PFID_SBC_IMX6_VERSION_BIT0    "37"
...
// SBC imx8m Mini
#define PFID_SBC_IMX8MM_VERSION_BIT0    "89"
...
// SBC imx8m Plus
#define PFID_SBC_IMX8MP_VERSION_BIT0    "102"
...
// SOM imx8m
#define PFID_SOM_VERSION_BIT0   "113"
...

The easiest way to fix baseboard_get_gpio_value() routine in SPL is replace gpio_lookup_name() call with simple_strtol(). This should work if we will follow this naming convention in future.

Merge request reports

Loading