2003-02-28 00:49:47 +00:00
|
|
|
/*
|
2010-07-24 18:22:02 +00:00
|
|
|
* (C) Copyright 2002-2010
|
2003-02-28 00:49:47 +00:00
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_GBL_DATA_H
|
|
|
|
#define __ASM_GBL_DATA_H
|
|
|
|
|
|
|
|
#include <asm/regdef.h>
|
|
|
|
|
2012-12-13 20:48:30 +00:00
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
|
|
|
};
|
|
|
|
|
2003-02-28 00:49:47 +00:00
|
|
|
/*
|
|
|
|
* The following data structure is placed in some memory wich is
|
|
|
|
* available very early after boot (like DPRAM on MPC8xx/MPC82xx, or
|
|
|
|
* some locked parts of the data cache) to allow for a minimum set of
|
|
|
|
* global variables during system initialization (until we have set
|
|
|
|
* up the memory controller so that we can use RAM).
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct global_data {
|
|
|
|
bd_t *bd;
|
|
|
|
unsigned long flags;
|
MIPS: Ingenic XBurst Jz4740 processor support
Jz4740 is a multimedia application processor targeting for mobile
devices like e-Dictionary, eBook, portable media player (PMP) and
GPS navigator. Jz4740 is powered by Ingenic 360 MHz XBurst CPU core
(JzRISC), in which RISC/SIMD/DSP hybrid instruction set architecture
provides high integration, high performance and low power consumption.
JzRISC incorporated in Jz4740 is the advanced and power-efficient
32-bit RISC core, compatible with MIPS32, with 16K I-Cache and 16K
D-Cache, and can operate at speeds up to 400 MHz.
On-chip modules such as LCD controller, embedded audio codec, multi-
channel SAR-ADC, AC97/I2S controller and camera I/F offer a rich
suite of peripherals for multimedia application. NAND controller
(SLC/MLC), USB (host 1.1 and device 2.0), UART, I2C, SPI, etc. are
also available.
For more info about Ingenic XBurst Jz4740:
http://en.ingenic.cn/eng/
http://www.linux-mips.org/wiki/Ingenic
This patch introduces XBurst CPU support in U-Boot. It's compatible
with MIPS32, but requires a bit different cache maintenance, timer
routines, and boot mechanism using USB boot tool, so XBurst support
can go into a separate new home, cpu/xburst/.
Signed-off-by: Xiangfu Liu <xiangfu@openmobilefree.net>
Acked-by: Daniel <zpxu@ingenic.cn>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
2011-10-12 04:24:06 +00:00
|
|
|
#ifdef CONFIG_JZSOC
|
|
|
|
/* There are other clocks in the jz4740 */
|
|
|
|
unsigned long cpu_clk; /* CPU core clock */
|
|
|
|
unsigned long sys_clk; /* System bus clock */
|
|
|
|
unsigned long per_clk; /* Peripheral bus clock */
|
|
|
|
unsigned long mem_clk; /* Memory bus clock */
|
|
|
|
unsigned long dev_clk; /* Device clock */
|
|
|
|
/* "static data" needed by most of timer.c */
|
|
|
|
unsigned long tbl;
|
|
|
|
unsigned long lastinc;
|
|
|
|
#endif
|
2012-10-12 14:21:18 +00:00
|
|
|
unsigned int baudrate;
|
2003-02-28 00:49:47 +00:00
|
|
|
unsigned long have_console; /* serial_init() was called */
|
2011-09-01 00:48:27 +00:00
|
|
|
#ifdef CONFIG_PRE_CONSOLE_BUFFER
|
|
|
|
unsigned long precon_buf_idx; /* Pre-Console buffer index */
|
|
|
|
#endif
|
2008-06-10 01:37:16 +00:00
|
|
|
phys_size_t ram_size; /* RAM size */
|
2003-02-28 00:49:47 +00:00
|
|
|
unsigned long reloc_off; /* Relocation Offset */
|
|
|
|
unsigned long env_addr; /* Address of Environment struct */
|
|
|
|
unsigned long env_valid; /* Checksum of Environment valid? */
|
2003-07-24 23:38:38 +00:00
|
|
|
void **jt; /* jump table */
|
2010-07-24 18:22:02 +00:00
|
|
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
2012-12-13 20:48:30 +00:00
|
|
|
struct arch_global_data arch; /* architecture-specific data */
|
2003-02-28 00:49:47 +00:00
|
|
|
} gd_t;
|
|
|
|
|
2012-03-18 14:31:24 +00:00
|
|
|
#include <asm-generic/global_data_flags.h>
|
2003-02-28 00:49:47 +00:00
|
|
|
|
2003-07-24 23:38:38 +00:00
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
|
2003-02-28 00:49:47 +00:00
|
|
|
|
|
|
|
#endif /* __ASM_GBL_DATA_H */
|