source: svn/newcon3bcm2_21bu/rockford/bsp/bcm97552/no-os/src/sde/chipcfg.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 6.3 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2012-2011, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: chipcfg.h $
11 * $brcm_Revision: Hydra_Software_Devel/1 $
12 * $brcm_Date: 4/28/11 1:39p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /rockford/bsp/bcm97358/no-os/src/sde/chipcfg.h $
19 *
20 * Hydra_Software_Devel/1   4/28/11 1:39p jkim
21 * SWCFE-507: Initial file
22 *
23 * Hydra_Software_Devel/1   11/9/10 4:53p jkim
24 * SWCFE-399: initial files
25 *
26 * Bsp_Software_Devel/2   3/16/10 1:30p jkim
27 * SW7340-135: 1.  Add SPI flash support.
28 *
29 * Bsp_Software_Devel/6   12/19/07 11:17a farshidf
30 * PR36839: SATA
31 *
32 * Bsp_Software_Devel/5   12/18/07 6:50p farshidf
33 * PR36869: Fix warning
34 *
35 * Bsp_Software_Devel/4   12/18/07 3:02p farshidf
36 * PR36869: remove warning
37 *
38 * Bsp_Software_Devel/3   12/18/07 2:56p farshidf
39 * PR36869: Add Sata
40 *
41 * Bsp_Software_Devel/2   11/13/07 12:35p farshidf
42 * PR36869: 7335 CFE
43 *
44 * Bsp_Software_Devel/2   10/31/07 3:47p farshidf
45 * PR36360: new CFE/BSP code
46 *
47 * Bsp_Software_Devel/1   10/22/07 4:41p farshidf
48 * PR36360: New BSP code
49 *
50
51***************************************************************************/
52
53#ifndef __CHIPCFG_H__
54#define __CHIPCFG_H__
55
56
57/*****************************************************************************/
58/*                   CPU to PCI Bridge Memory Map                            */
59/*****************************************************************************/
60
61#define CPU2PCI_CPU_PHYS_MEM_WIN_BASE     0xd0000000
62
63/* Allow CPU to access PCI memory addresses 0xd0000000 to 0xdfffffff */
64#define CPU2PCI_PCI_PHYS_MEM_WIN0_BASE    0xd0000000 /* Not used in A0 */
65#define CPU2PCI_PCI_PHYS_MEM_WIN1_BASE    0xd8000000 /* Not used in A0 */
66#define CPU2PCI_PCI_PHYS_MEM_WIN2_BASE    0xe0000000
67#define CPU2PCI_PCI_PHYS_MEM_WIN3_BASE    0xe8000000
68
69/* Allow CPU to access PCI I/O addresses 0xe0000000 to 0xe05fffff */
70#if (BRCM_ENDIAN_LITTLE == 1)
71#define CPU2PCI_PCI_PHYS_IO_WIN0_BASE     0x00000000
72#define CPU2PCI_PCI_PHYS_IO_WIN1_BASE     0x00200000
73#define CPU2PCI_PCI_PHYS_IO_WIN2_BASE     0x00400000
74#else
75#define CPU2PCI_PCI_PHYS_IO_WIN0_BASE     0x00000002
76#define CPU2PCI_PCI_PHYS_IO_WIN1_BASE     0x00200002
77#define CPU2PCI_PCI_PHYS_IO_WIN2_BASE     0x00400002
78#endif
79
80
81/*****************************************************************************/
82/*                      PCI Physical Memory Map                              */
83/*****************************************************************************/
84
85/* PCI physical memory map */
86#define PCI_PHYS_ISB_WIN_BASE    0x10000000
87#define PCI_PHYS_MEM_WIN0_BASE   0x00000000
88#define PCI_PHYS_MEM_WIN1_BASE   0x02000000
89#define PCI_PHYS_MEM_WIN2_BASE   0x04000000
90
91#define PCI_1394_PHYS_MEM_WIN0_BASE   0xd0000000
92
93
94#define PCI_3255_PHYS_REG_WIN0_BASE   0xd1000000
95#define PCI_3255_PHYS_MEM_WIN0_BASE   0xd8000000
96#define PCI_3255_PHYS_MEM_WIN1_BASE   0xd9000000
97
98
99#define PCI_DEVICE_ID_EXT       0x0d
100#define PCI_DEVICE_ID_1394      0x0e
101#define PCI_DEVICE_ID_MINI      0x04
102#define PCI_DEVICE_ID_SATA      0 /* On 2ndary PCI bus */
103
104#define PCI_DEVICE_ID_3255              0x7 /* PCI AD23; PCI AD16=0, AD17=1... */
105
106
107#define PCI_IDSEL_EXT           (0x10000 << PCI_DEVICE_ID_EXT)
108#define PCI_IDSEL_1394          (0x10000 << PCI_DEVICE_ID_1394)
109#define PCI_IDSEL_MINI          (0x10000 << PCI_DEVICE_ID_MINI)
110#define PCI_IDSEL_SATA          (0x10000 << PCI_DEVICE_ID_SATA)
111
112#define PCI_DEV_NUM_EXT         (PCI_DEVICE_ID_EXT  << 11)
113#define PCI_DEV_NUM_1394        (PCI_DEVICE_ID_1394 << 11)
114#define PCI_DEV_NUM_MINI        (PCI_DEVICE_ID_MINI << 11)
115#define PCI_DEV_NUM_SATA        (PCI_DEVICE_ID_SATA << 11)
116
117#define PCI_DEV_NUM_3255        (PCI_DEVICE_ID_3255 << 11)
118
119
120/* SATA device */
121#define PCS0_OFS                                0x200
122#define PCS1_OFS                                0x240
123#define SCS0_OFS                                0x280
124#define SCS1_OFS                                0x2c0
125#define BM_OFS                                  0x300
126#define MMIO_OFS                                0xb0510000
127#define PCI_SATA_PHYS_REG_BASE  (0xb0520000 + PCS0_OFS)
128
129#define PCI_MEM_WIN_BASE    0xd0000000
130#define PCI_MEM_WIN_SIZE    0x10000000
131#define PCI_IO_WIN_BASE     0xf0000000
132#define PCI_IO_WIN_SIZE     0x00600000
133
134#define PCI_BUS_MASTER  BCHP_PCI_CFG_STATUS_COMMAND_BUS_MASTER_MASK
135#define PCI_IO_ENABLE   BCHP_PCI_CFG_STATUS_COMMAND_MEMORY_SPACE_MASK
136#define PCI_MEM_ENABLE  BCHP_PCI_CFG_STATUS_COMMAND_IO_SPACE_MASK
137
138#define BCHP_SATA_PHYSICAL_OFFSET         0x10500000
139#define BCHP_SATA_PCI_BRIDGE_PCI_CTRL     0x204
140#define PCI_SATA_MEM_ENABLE               1
141#define PCI_SATA_BUS_MASTER_ENABLE        2
142#define PCI_SATA_PERR_ENABLE              0x10
143#define PCI_SATA_SERR_ENABLE              0x20
144
145
146#define  BCHP_PCI_SATA_CFG_SLV_MEMORY_BASE_W0 0x210
147#define  BCHP_PCI_SATA_CFG_SLV_MEMORY_BASE_W0_MODE 0x214
148#define BCHP_PCI_SATA_CFG_CPU_2_PCI_MEM_WIN0 0x218
149#define BCHP_PCI_SATA_CFG_CPU_2_PCI_IO_WIN0  0x21c
150#define CPU2PCI_PCI_SATA_PHYS_MEM_WIN0_BASE  0xB0510000
151#define CPU2PCI_PCI_SATA_PHYS_IO_WIN0_BASE   0xB0520000
152
153/*****************************************************************************/
154/*                    PCI device init                                        */
155/*****************************************************************************/
156#define MIPS_PCI_XCFG_INDEX     0xf0600004
157#define MIPS_PCI_XCFG_DATA      0xf0600008
158#define PCI_CMD_IO_ENABLE               0x00000001
159#define PCI_CMD_MEM_ENABLE              0x00000002
160#define PCI_CMD_MASTER_ENABLE   0x00000004
161
162#define MIPS_PCI_SATA_XCFG_INDEX     0xB0500208
163#define MIPS_PCI_SATA_XCFG_DATA      0xB050020c
164/*****************************************************************************/
165/*                    MIPS Physical Memory Map                               */
166/*****************************************************************************/
167#define CPU_PHYS_SDRAM_BASE             0x00000000      /* SDRAM Base */
168#define DRAM_SIZE                                       (256*1024*1024)
169
170/*****************************************************************************/
171/*                      MIPS Virtual Memory Map                              */
172/*****************************************************************************/
173#define DRAM_BASE_CACHE         PHYS_TO_K0(CPU_PHYS_SDRAM_BASE)   /* cached DRAM */
174
175
176
177#endif
Note: See TracBrowser for help on using the repository browser.