/* Copyright 2000-2010 Broadcom Corporation Unless you and Broadcom execute a separate written software license agreement governing use of this software, this software is licensed to you under the terms of the GNU General Public License version 2 (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php, with the following added to such license: As a special exception, the copyright holders of this software give you permission to link this software with independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from this software. The special exception does not apply to any modifications of the software. Notwithstanding the above, under no circumstances may you combine this software in any way with any other Broadcom software provided under a license other than the GPL, without Broadcom's express prior written consent. */ #ifndef __BCM6368_MAP_H #define __BCM6368_MAP_H #ifdef __cplusplus extern "C" { #endif #include "bcmtypes.h" #define PERF_BASE 0xb0000000 /* chip control registers */ #define TIMR_BASE 0xb0000040 /* timer registers */ #define GPIO_BASE 0xb0000080 /* gpio registers */ #define UART_BASE 0xb0000100 /* uart registers */ #define UART1_BASE 0xb0000120 /* uart registers */ #define NAND_REG_BASE 0xb0000200 /* NAND registers */ #define NAND_CACHE_BASE 0xb0000600 #define SPI_BASE 0xb0000800 /* SPI master controller registers */ #define MPI_BASE 0xb0001000 /* MPI control registers */ #define MEMC_BASE 0xb0001200 /* Memory control registers */ #define DDR_BASE 0xb0001280 /* DDR IO Buf Control registers */ #define USB_EHCI_BASE 0x10001500 /* USB host registers */ #define USB_OHCI_BASE 0x10001600 /* USB host registers */ #define USBH_CFG_BASE 0xb0001700 #define SAR_DMA_BASE 0xb0005000 /* ATM SAR DMA control registers */ typedef struct MemoryControl { uint32 Control; /* (00) */ #define MEMC_SELF_REFRESH (1<<6) // enable self refresh mode #define MEMC_MRS (1<<4) // generate a mode register select cycle #define MEMC_PRECHARGE (1<<3) // generate a precharge cycle #define MEMC_REFRESH (1<<2) // generate an auto refresh cycle #define MEMC_SEQUENCE_ENABLE (1<<1) // enable memory controller sequencer #define MEMC_MASTER_ENABLE (1<<0) // enable accesses to external sdram uint32 Config; /* (04) */ #define MEMC_EARLY_HDR_CNT_SHFT 25 #define MEMC_EARLY_HDR_CNT_MASK (0x7< thresh, txfifo