mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 00:50:43 +09:00
toradex: tdx-cfg-block: add Apalis iMX8X support
Add support for storing configuration for Apalis iMX8X SoM in Toradex config block. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
This commit is contained in:
parent
1c12b67023
commit
842ddf8eb5
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0+
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2019 Toradex, Inc.
|
* Copyright (c) 2016-2020 Toradex
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#if defined(CONFIG_TARGET_APALIS_IMX6) || \
|
#if defined(CONFIG_TARGET_APALIS_IMX6) || \
|
||||||
defined(CONFIG_TARGET_APALIS_IMX8) || \
|
defined(CONFIG_TARGET_APALIS_IMX8) || \
|
||||||
|
defined(CONFIG_TARGET_APALIS_IMX8X) || \
|
||||||
defined(CONFIG_TARGET_COLIBRI_IMX6) || \
|
defined(CONFIG_TARGET_COLIBRI_IMX6) || \
|
||||||
defined(CONFIG_TARGET_COLIBRI_IMX8X)
|
defined(CONFIG_TARGET_COLIBRI_IMX8X)
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
@ -112,6 +113,8 @@ const char * const toradex_modules[] = {
|
|||||||
[50] = "Colibri iMX8 QuadXPlus 2GB IT",
|
[50] = "Colibri iMX8 QuadXPlus 2GB IT",
|
||||||
[51] = "Colibri iMX8 DualX 1GB Wi-Fi / Bluetooth",
|
[51] = "Colibri iMX8 DualX 1GB Wi-Fi / Bluetooth",
|
||||||
[52] = "Colibri iMX8 DualX 1GB",
|
[52] = "Colibri iMX8 DualX 1GB",
|
||||||
|
[53] = "Apalis iMX8 QuadXPlus 2GB ECC IT",
|
||||||
|
[54] = "Apalis iMX8 DualXPlus 1GB",
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_TDX_CFG_BLOCK_IS_IN_MMC
|
#ifdef CONFIG_TDX_CFG_BLOCK_IS_IN_MMC
|
||||||
@ -307,6 +310,7 @@ static int get_cfgblock_interactive(void)
|
|||||||
it = console_buffer[0];
|
it = console_buffer[0];
|
||||||
|
|
||||||
#if defined(CONFIG_TARGET_APALIS_IMX8) || \
|
#if defined(CONFIG_TARGET_APALIS_IMX8) || \
|
||||||
|
defined(CONFIG_TARGET_APALIS_IMX8X) || \
|
||||||
defined(CONFIG_TARGET_COLIBRI_IMX6ULL) || \
|
defined(CONFIG_TARGET_COLIBRI_IMX6ULL) || \
|
||||||
defined(CONFIG_TARGET_COLIBRI_IMX8X)
|
defined(CONFIG_TARGET_COLIBRI_IMX8X)
|
||||||
sprintf(message, "Does the module have Wi-Fi / Bluetooth? [y/N] ");
|
sprintf(message, "Does the module have Wi-Fi / Bluetooth? [y/N] ");
|
||||||
@ -370,6 +374,16 @@ static int get_cfgblock_interactive(void)
|
|||||||
tdx_hw_tag.prodid = APALIS_IMX8QP;
|
tdx_hw_tag.prodid = APALIS_IMX8QP;
|
||||||
}
|
}
|
||||||
} else if (is_cpu_type(MXC_CPU_IMX8QXP)) {
|
} else if (is_cpu_type(MXC_CPU_IMX8QXP)) {
|
||||||
|
#ifdef CONFIG_TARGET_APALIS_IMX8X
|
||||||
|
if (it == 'y' || it == 'Y' || wb == 'y' || wb == 'Y') {
|
||||||
|
tdx_hw_tag.prodid = APALIS_IMX8QXP_WIFI_BT_IT;
|
||||||
|
} else {
|
||||||
|
if (gd->ram_size == 0x40000000)
|
||||||
|
tdx_hw_tag.prodid = APALIS_IMX8DXP;
|
||||||
|
else
|
||||||
|
tdx_hw_tag.prodid = APALIS_IMX8QXP;
|
||||||
|
}
|
||||||
|
#elif CONFIG_TARGET_COLIBRI_IMX8X
|
||||||
if (it == 'y' || it == 'Y') {
|
if (it == 'y' || it == 'Y') {
|
||||||
if (wb == 'y' || wb == 'Y')
|
if (wb == 'y' || wb == 'Y')
|
||||||
tdx_hw_tag.prodid = COLIBRI_IMX8QXP_WIFI_BT_IT;
|
tdx_hw_tag.prodid = COLIBRI_IMX8QXP_WIFI_BT_IT;
|
||||||
@ -381,6 +395,7 @@ static int get_cfgblock_interactive(void)
|
|||||||
else
|
else
|
||||||
tdx_hw_tag.prodid = COLIBRI_IMX8DX;
|
tdx_hw_tag.prodid = COLIBRI_IMX8DX;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} else if (!strcmp("tegra20", soc)) {
|
} else if (!strcmp("tegra20", soc)) {
|
||||||
if (it == 'y' || it == 'Y')
|
if (it == 'y' || it == 'Y')
|
||||||
if (gd->ram_size == 0x10000000)
|
if (gd->ram_size == 0x10000000)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2016 Toradex, Inc.
|
* Copyright (c) 2016-2020 Toradex
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TDX_CFG_BLOCK_H
|
#ifndef _TDX_CFG_BLOCK_H
|
||||||
@ -73,6 +73,8 @@ enum {
|
|||||||
COLIBRI_IMX8QXP_IT, /* 50 */
|
COLIBRI_IMX8QXP_IT, /* 50 */
|
||||||
COLIBRI_IMX8DX_WIFI_BT,
|
COLIBRI_IMX8DX_WIFI_BT,
|
||||||
COLIBRI_IMX8DX,
|
COLIBRI_IMX8DX,
|
||||||
|
APALIS_IMX8QXP,
|
||||||
|
APALIS_IMX8DXP,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const char * const toradex_modules[];
|
extern const char * const toradex_modules[];
|
||||||
|
Loading…
Reference in New Issue
Block a user