source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 3.7 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief EBI chip-select configuration.
7 */
8
9/*
10 * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <bsp/mpc55xx-config.h>
24
25#ifdef MPC55XX_HAS_EBI
26
27const struct EBI_CS_tag mpc55xx_start_config_ebi_cs [] = {
28#if defined(MPC55XX_BOARD_GWLCFM)
29        /* CS0: External SRAM (16 bit, 1 wait states, 512kB, no burst) */
30        {
31        {
32            .B.BA = 0x20000000>>15,
33            .B.PS = 1,
34            .B.AD_MUX = 1,
35            .B.WEBS = 1,
36            .B.TBDIP = 0,
37            .B.BI = 1,
38            .B.V = 1
39        },
40        {
41            .B.AM = 0x1fff0,
42            .B.SCY = 1,
43            .B.BSCY = 0
44        }
45    },
46        /* CS1: External USB controller (16 bit, 3 wait states, 32kB, no burst) */
47        {
48        {
49            .B.BA = 0x22000000>>15,
50            .B.PS = 1,
51            .B.AD_MUX = 1,
52            .B.WEBS = 0,
53            .B.TBDIP = 0,
54            .B.BI = 1,
55            .B.V = 1
56        },
57        {
58            .B.AM = 0x1ffff,
59            .B.SCY = 3,
60            .B.BSCY = 0
61        }
62    },
63        /* CS2: Ethernet (16 bit, 2 wait states, 32kB, no burst) */
64        {
65        {
66            .B.BA = 0x22800000>>15,
67            .B.PS = 1,
68            .B.AD_MUX = 1,
69            .B.WEBS = 1,
70            .B.TBDIP = 0,
71            .B.BI = 1,
72            .B.V = 1
73        },
74        {
75            .B.AM = 0x1ffff,
76            .B.SCY = 1,
77            .B.BSCY = 0
78        }
79    },
80    {                           /* CS3: MOST Companion. */
81        {
82            .B.BA = 0x23000000>>15,
83            .B.PS = 1,
84            .B.AD_MUX = 1,
85            .B.WEBS = 0,
86            .B.TBDIP = 0,
87            .B.BI = 1,
88            .B.V = 1
89        },
90
91        {
92            .B.AM = 0x1fff0,
93            .B.SCY = 1,
94            .B.BSCY = 0
95        }
96    }
97#elif defined(MPC55XX_BOARD_PHYCORE_MPC5554)
98    /* CS0: External flash. */
99    {
100        { .R = 0x20000003 },   /* Base 0x2000000, Burst Inhibit, Valid */
101        { .R = 0xff000050 }
102    },
103    /* CS1: External synchronous burst mode SRAM. */
104    {
105        { .R = 0x21000051 },   /* Base 0x2100000, 4-word Burst Enabled, Valid */
106        { .R = 0xff000000 }    /* No wait states. */
107    },
108    /* CS2: External LAN91C111 */
109    {
110        { .R = 0x22000003 },   /* Base 0x22000000, Burst inhibit, valid */
111        { .R = 0xff000010 }
112    },
113
114    /* CS3: External FPGA */
115    {
116        { .R = 0x23000003 },   /* Base 0x23000000, Burst inhibit, valid. */
117        { .R = 0xff000020 }
118    }
119#elif defined(MPC55XX_BOARD_MPC5566EVB)
120        /* CS0: External SRAM (2 wait states, 512kB, 4 word burst) */
121    {
122        {
123            .B.BA = 0,
124            .B.PS = 1,
125            .B.BL = 1,
126            .B.WEBS = 0,
127            .B.TBDIP = 0,
128            .B.BI = 1, /* TODO: Enable burst */
129            .B.V = 1
130        },
131
132        {
133            .B.AM = 0x1fff0,
134            .B.SCY = 0,
135            .B.BSCY = 0
136        }
137    },
138    { { .R = 0 }, { .R = 0 } },   /* CS1: Unused. */
139    { { .R = 0 }, { .R = 0 } },   /* CS2: Unused. */
140    {   /* CS3: ethernet? */
141        {
142            .B.BA = 0x7fff,
143            .B.PS = 1,
144            .B.BL = 0,
145            .B.WEBS = 0,
146            .B.TBDIP = 0,
147            .B.BI = 1,
148            .B.V = 1
149        },
150
151        {
152            .B.AM = 0x1ffff,
153            .B.SCY = 1,
154            .B.BSCY = 0
155        }
156    }
157#endif
158};
159
160const size_t mpc55xx_start_config_ebi_cs_count [] = {
161  RTEMS_ARRAY_SIZE(mpc55xx_start_config_ebi_cs)
162};
163
164#endif /* MPC55XX_HAS_EBI */
Note: See TracBrowser for help on using the repository browser.