summaryrefslogtreecommitdiff
path: root/board/toradex/common/common-imx.c
blob: 0fa3402eed29616400bfd1232e6d28e2aa6ce315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (c) 2016 Toradex, Inc.
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <common.h>

int should_load_env(void)
{
	/* Do not load environment from eMMC/NAND, it could be hostile */
	if (is_boot_from_usb()) {
		puts("Serial Downloader mode, not loading environment\n");
		return 0;
	}

	return 1;
}