2002-11-03 10:24:00 +00:00
|
|
|
/*----------------------------------------------------------------------------+
|
2009-08-07 17:53:20 +00:00
|
|
|
| This source code is dual-licensed. You may use it under the terms of the
|
|
|
|
| GNU General Public License version 2, or under the license below.
|
2002-11-03 10:24:00 +00:00
|
|
|
|
|
2008-05-20 14:00:29 +00:00
|
|
|
| This source code has been made available to you by IBM on an AS-IS
|
|
|
|
| basis. Anyone receiving this source is licensed under IBM
|
|
|
|
| copyrights to use it in any way he or she deems fit, including
|
|
|
|
| copying it, modifying it, compiling it, and redistributing it either
|
|
|
|
| with or without modifications. No license under IBM patents or
|
|
|
|
| patent applications is to be implied by the copyright license.
|
2002-11-03 10:24:00 +00:00
|
|
|
|
|
2008-05-20 14:00:29 +00:00
|
|
|
| Any user of this software should understand that IBM cannot provide
|
|
|
|
| technical support for this software and will not be responsible for
|
|
|
|
| any consequences resulting from the use of this software.
|
2002-11-03 10:24:00 +00:00
|
|
|
|
|
2008-05-20 14:00:29 +00:00
|
|
|
| Any person who transfers this source code or any derivative work
|
|
|
|
| must include the IBM copyright notice, this paragraph, and the
|
|
|
|
| preceding two paragraphs in the transferred software.
|
2002-11-03 10:24:00 +00:00
|
|
|
|
|
2008-05-20 14:00:29 +00:00
|
|
|
| COPYRIGHT I B M CORPORATION 1999
|
|
|
|
| LICENSED MATERIAL - PROGRAM PROPERTY OF I B M
|
2002-11-03 10:24:00 +00:00
|
|
|
+----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef __PPC405_H__
|
|
|
|
#define __PPC405_H__
|
|
|
|
|
2008-05-22 21:44:14 +00:00
|
|
|
/* Define bits and masks for real-mode storage attribute control registers */
|
|
|
|
#define PPC_128MB_SACR_BIT(addr) ((addr) >> 27)
|
|
|
|
#define PPC_128MB_SACR_VALUE(addr) PPC_REG_VAL(PPC_128MB_SACR_BIT(addr),1)
|
|
|
|
|
2007-10-31 16:55:58 +00:00
|
|
|
#ifndef CONFIG_IOP480
|
2009-10-04 18:04:22 +00:00
|
|
|
#define CONFIG_SYS_DCACHE_SIZE (16 << 10) /* For AMCC 405 CPUs */
|
2007-10-31 16:55:58 +00:00
|
|
|
#else
|
2009-10-04 18:04:22 +00:00
|
|
|
#define CONFIG_SYS_DCACHE_SIZE (2 << 10) /* For PLX IOP480(403)*/
|
2007-10-31 16:55:58 +00:00
|
|
|
#endif
|
|
|
|
|
2010-09-11 07:31:43 +00:00
|
|
|
/* DCR registers */
|
|
|
|
#define PLB0_ACR 0x0087
|
|
|
|
|
2010-09-12 04:21:37 +00:00
|
|
|
/* SDR registers */
|
|
|
|
#define SDR0_PINSTP 0x0040
|
2007-11-15 13:23:55 +00:00
|
|
|
|
2010-09-12 04:21:37 +00:00
|
|
|
/* CPR registers */
|
|
|
|
#define CPR0_CLKUPD 0x0020
|
|
|
|
#define CPR0_PLLC 0x0040
|
|
|
|
#define CPR0_PLLD 0x0060
|
|
|
|
#define CPR0_CPUD 0x0080
|
|
|
|
#define CPR0_PLBD 0x00a0
|
|
|
|
#define CPR0_OPBD0 0x00c0
|
|
|
|
#define CPR0_PERD 0x00e0
|
2007-10-05 15:10:59 +00:00
|
|
|
|
2008-07-09 23:31:36 +00:00
|
|
|
/*
|
2010-09-12 04:21:37 +00:00
|
|
|
* DMA
|
2008-07-09 23:31:36 +00:00
|
|
|
*/
|
2010-09-12 04:21:37 +00:00
|
|
|
#define DMA_DCR_BASE 0x0100
|
|
|
|
#define DMACR0 (DMA_DCR_BASE + 0x00) /* DMA channel control reg 0 */
|
|
|
|
#define DMACT0 (DMA_DCR_BASE + 0x01) /* DMA count reg 0 */
|
|
|
|
#define DMADA0 (DMA_DCR_BASE + 0x02) /* DMA destination address reg 0 */
|
|
|
|
#define DMASA0 (DMA_DCR_BASE + 0x03) /* DMA source address reg 0 */
|
|
|
|
#define DMASB0 (DMA_DCR_BASE + 0x04) /* DMA sg descriptor addr 0 */
|
|
|
|
#define DMACR1 (DMA_DCR_BASE + 0x08) /* DMA channel control reg 1 */
|
|
|
|
#define DMACT1 (DMA_DCR_BASE + 0x09) /* DMA count reg 1 */
|
|
|
|
#define DMADA1 (DMA_DCR_BASE + 0x0a) /* DMA destination address reg 1 */
|
|
|
|
#define DMASA1 (DMA_DCR_BASE + 0x0b) /* DMA source address reg 1 */
|
|
|
|
#define DMASB1 (DMA_DCR_BASE + 0x0c) /* DMA sg descriptor addr 1 */
|
|
|
|
#define DMACR2 (DMA_DCR_BASE + 0x10) /* DMA channel control reg 2 */
|
|
|
|
#define DMACT2 (DMA_DCR_BASE + 0x11) /* DMA count reg 2 */
|
|
|
|
#define DMADA2 (DMA_DCR_BASE + 0x12) /* DMA destination address reg 2 */
|
|
|
|
#define DMASA2 (DMA_DCR_BASE + 0x13) /* DMA source address reg 2 */
|
|
|
|
#define DMASB2 (DMA_DCR_BASE + 0x14) /* DMA sg descriptor addr 2 */
|
|
|
|
#define DMACR3 (DMA_DCR_BASE + 0x18) /* DMA channel control reg 3 */
|
|
|
|
#define DMACT3 (DMA_DCR_BASE + 0x19) /* DMA count reg 3 */
|
|
|
|
#define DMADA3 (DMA_DCR_BASE + 0x1a) /* DMA destination address reg 3 */
|
|
|
|
#define DMASA3 (DMA_DCR_BASE + 0x1b) /* DMA source address reg 3 */
|
|
|
|
#define DMASB3 (DMA_DCR_BASE + 0x1c) /* DMA sg descriptor addr 3 */
|
|
|
|
#define DMASR (DMA_DCR_BASE + 0x20) /* DMA status reg */
|
|
|
|
#define DMASGC (DMA_DCR_BASE + 0x23) /* DMA scatter/gather command reg*/
|
|
|
|
#define DMAADR (DMA_DCR_BASE + 0x24) /* DMA address decode reg */
|
2007-10-05 15:10:59 +00:00
|
|
|
|
2002-11-03 10:24:00 +00:00
|
|
|
#endif /* __PPC405_H__ */
|