blob: c411e8cfe7bb49b0c41b0cf35471d31e67522f92 [file] [log] [blame]
wdenk0bc4a1a2002-09-18 11:09:59 +00001/*
Wolfgang Denkea882ba2010-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 Denk1a459662013-07-08 09:37:19 +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 Denkd87080b2006-03-31 18:32:53 +020016DECLARE_GLOBAL_DATA_PTR;
17
Igor Grinbergdcfe6e62011-11-07 01:14:00 +000018env_t *env_ptr;
wdenk0bc4a1a2002-09-18 11:09:59 +000019
Wolfgang Denkea882ba2010-06-20 23:33:59 +020020void env_relocate_spec(void)
wdenk0bc4a1a2002-09-18 11:09:59 +000021{
22}
23
Wolfgang Denkea882ba2010-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 Denkea882ba2010-06-20 23:33:59 +020029int env_init(void)
wdenk0bc4a1a2002-09-18 11:09:59 +000030{
Igor Grinbergdcfe6e62011-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 Grinbergdcfe6e62011-11-07 01:14:00 +000034 return 0;
wdenk0bc4a1a2002-09-18 11:09:59 +000035}