blob: f02c7ca31389fc00e055b206c9f9436f03ec07f8 [file] [log] [blame]
/*
* Copyright Codito Technologies (www.codito.com)
*
* include/asm-arc/global_data.h
*
* Copyright (C)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Authors : Sandeep Patil (sandeep.patil@codito.com)
* Pradeep Sawlani (pradeep.sawlani@codito.com)
*/
#ifndef __ASM_GBL_DATA_H
#define __ASM_GBL_DATA_H
#include<asm/u-boot.h>
typedef struct {
bd_t *bd;
unsigned long flags;
unsigned long baudrate;
unsigned long have_console; /* serial_init() was called */
unsigned long reloc_off; /* Relocation Offset */
unsigned long env_addr; /* Address of Environment struct */
unsigned long env_valid; /* Checksum of Environment valid? */
unsigned long file_area_base; /* Base address of config files area */
unsigned long cpu_clk; /* CPU clock in Hz! */
unsigned long bus_clk; /* Bus clock in Hz! */
void **jt; /* jump table */
} gd_t;
extern gd_t *global_data;
/*
* Global Data Flags
*/
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */
#define GD_FLG_SILENT 0x00004 /* Silent mode */
#define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd /* defined in lib_arc/board.c */
#endif /* __ASM_GBL_DATA_H */