blob: c58d299308641e3592327b7492e0a97913e6de74 [file] [log] [blame]
wdenk0bc4a1a2002-09-18 11:09:59 +00001/*
Wolfgang Denk460a9ff2010-06-20 23:33:59 +02002 * (C) Copyright 2000-2010
wdenk0bc4a1a2002-09-18 11:09:59 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>
6 * Andreas Heppel <aheppel@sysgo.de>
7
Wolfgang Denkbd8ec7e2013-10-07 13:07:26 +02008 * SPDX-License-Identifier: GPL-2.0+
wdenk0bc4a1a2002-09-18 11:09:59 +00009 */
10
11#include <common.h>
wdenk0bc4a1a2002-09-18 11:09:59 +000012#include <command.h>
13#include <environment.h>
14#include <linux/stddef.h>
wdenk0bc4a1a2002-09-18 11:09:59 +000015
Wolfgang Denk6405a152006-03-31 18:32:53 +020016DECLARE_GLOBAL_DATA_PTR;
17
Igor Grinberg2bb87bf2011-11-07 01:14:00 +000018env_t *env_ptr;
wdenk0bc4a1a2002-09-18 11:09:59 +000019
Wolfgang Denk460a9ff2010-06-20 23:33:59 +020020void env_relocate_spec(void)
wdenk0bc4a1a2002-09-18 11:09:59 +000021{
22}
23
Wolfgang Denk460a9ff2010-06-20 23:33:59 +020024/*
wdenk0bc4a1a2002-09-18 11:09:59 +000025 * Initialize Environment use
26 *
27 * We are still running from ROM, so data use is limited
28 */
Wolfgang Denk460a9ff2010-06-20 23:33:59 +020029int env_init(void)
wdenk0bc4a1a2002-09-18 11:09:59 +000030{
Igor Grinberg2bb87bf2011-11-07 01:14:00 +000031 gd->env_addr = (ulong)&default_environment[0];
32 gd->env_valid = 0;
wdenk0bc4a1a2002-09-18 11:09:59 +000033
Igor Grinberg2bb87bf2011-11-07 01:14:00 +000034 return 0;
wdenk0bc4a1a2002-09-18 11:09:59 +000035}
Simon Glassc10a88e2017-08-03 12:21:58 -060036
37U_BOOT_ENV_LOCATION(nowhere) = {
38 .location = ENVL_NOWHERE,
39 .load = env_relocate_spec,
40 .init = env_init,
41};