summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2023-03-10 17:11:56 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2023-05-15 10:06:02 +0000
commite3009dcaed35313b540d7f9c09df03cec98c34ef (patch)
tree4c69bd744a31feb857bc6de6595f60ed533ccbd6 /board
parent2110ca7a2ec7920dba28515398f1419bc9d56354 (diff)
Revert "board: verdin-am62: allow dfu update"
Drop the the dfu update possibility in favour of a follow up Toradex Easy Installer procedure. This reverts commit 6d147efd19e42b03b812392c4bf8eee4e96b2d2d. Upstream-Status: Pending Initial U-Boot to be used for bring-up and validation of the V1.0 design, we'll decide on the step forward to mainline this once the bring-up and validation will be done. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'board')
-rw-r--r--board/toradex/verdin-am62/verdin-am62.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/board/toradex/verdin-am62/verdin-am62.c b/board/toradex/verdin-am62/verdin-am62.c
index e718eb0030b..a59466511cf 100644
--- a/board/toradex/verdin-am62/verdin-am62.c
+++ b/board/toradex/verdin-am62/verdin-am62.c
@@ -22,15 +22,6 @@
DECLARE_GLOBAL_DATA_PTR;
-/* from 5.8 Boot Memory Maps */
-#define BOOT_PARAMETER_TABLE 0x43c3f298
-/* from 5.6.1 Common Header */
-#define BOOT_PARAMETER_PRIMARY_PERIPHERAL (*(u16 *)(BOOT_PARAMETER_TABLE + 0x04))
-#define BOOT_PARAMETER_SECONDARY_PERIPHERAL (*(u16 *)(BOOT_PARAMETER_TABLE + 0x204))
-#define BOOT_PARAMETER_EMMC 101
-#define BOOT_PARAMETER_SD 100
-#define BOOT_PARAMETER_USB_DFU 70
-
#define PMIC_I2C_BUS 0x0
#define PMIC_I2C_ADDRESS 0x30
#define PMIC_BUCK1_VSET_850 0xa
@@ -135,42 +126,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
}
#endif
-#if !defined(CONFIG_SPL_BUILD)
-/* Should check if we were booted over dfu, and if so go to DFU / UMS for download */
-void decide_on_dfu(void)
-{
- /*
- * SD boot with sdcard, 7000f290: 00000000
- * SD boot without sdcard, dfu, 7000f290: 00000001
- * eMMC Boot, eMMC flashed 7000f290: 00000000
- * eMMC Boot, eMMC zeroed 7000f290: 00000001
- * DFU Boot 7000f290: 00000000
- *
- * If this Memory location will stay untouched in future versions is
- * unknown, so the code might break.
- * Compare with arch/arm/mach-k3/am625_init.c which however is SPL only
- */
- u32 bootindex = *(u32 *)(CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX);
- u32 bootmode = bootindex & 1 ? BOOT_PARAMETER_SECONDARY_PERIPHERAL :
- BOOT_PARAMETER_PRIMARY_PERIPHERAL;
-
- if (bootmode == BOOT_PARAMETER_USB_DFU) {
- printf("DFU boot mode detected, going to DFU again for further downloads\n");
- env_set("bootcmd", "setenv dfu_alt_info $dfu_alt_info_emmc;"
- "dfu 0 mmc 0; ums 0 mmc 0");
- }
-
- debug("Booting from %s boot device\n", bootindex & 1 ? "Secondary" :
- "Primary");
- debug("Primary boot device as read from boot parameters %hd\n",
- BOOT_PARAMETER_PRIMARY_PERIPHERAL);
- debug("Secondary boot device as read from boot parameters %hd\n",
- BOOT_PARAMETER_SECONDARY_PERIPHERAL);
-}
-#else
-void decide_on_dfu(void) {}
-#endif /* CONFIG_SPL_BUILD */
-
static void select_dt_from_module_version(void)
{
char variant[32];
@@ -200,9 +155,6 @@ int board_late_init(void)
{
select_dt_from_module_version();
- /* set bootcmd to start DFU and then UMS mode if booted from DFU */
- decide_on_dfu();
-
return 0;
}