blob: bdc1ed5e6769ec7873d29117ea4d7b6f9c5eac1c [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 Denk3765b3e2013-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 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}