source: rtems/bsps/powerpc/mpc55xxevb/start/start-config-ebi-cs.c @ e560ee85

Last change on this file since e560ee85 was e560ee85, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:55

bsps/powerpc/: Scripted embedded brains header file clean up

Updates #4625.

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