source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu-early.c @ c8d78ee

4.115
Last change on this file since c8d78ee was c8d78ee, checked in by Sebastian Huber <sebastian.huber@…>, on 07/02/13 at 08:37:13

bsp/mpc55xx: Add MPC5668G support

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief MMU early configuration.
7 */
8
9/*
10 * Copyright (c) 2011-2013 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
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.com/license/LICENSE.
21 */
22
23#include <bsp/mpc55xx-config.h>
24
25const struct MMU_tag mpc55xx_start_config_mmu_early [] = {
26#if (defined(MPC55XX_BOARD_MPC5674F_ECU508) \
27  || defined(MPC55XX_BOARD_MPC5674F_RSM6)) \
28    && !defined(MPC55XX_NEEDS_LOW_LEVEL_INIT)
29  /* Used as cache-inhibited area later (ADC, DSPI queues) */
30  MPC55XX_MMU_TAG_INITIALIZER(14, 0x4003c000, MPC55XX_MMU_16K, 0, 1, 1, 0)
31#elif MPC55XX_CHIP_FAMILY == 555
32  /* Internal SRAM 96k */
33  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_256K, 1, 1, 1, 0),
34#elif MPC55XX_CHIP_FAMILY == 556
35  /* Internal SRAM 128k */
36  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_64K, 1, 1, 1, 0),
37  MPC55XX_MMU_TAG_INITIALIZER(5, 0x40010000, MPC55XX_MMU_64K, 0, 1, 1, 0),
38#elif MPC55XX_CHIP_FAMILY == 564
39  /* Internal flash 1M */
40  MPC55XX_MMU_TAG_INITIALIZER(0, 0x00000000, MPC55XX_MMU_1M, 1, 0, 1, 1),
41  /* IO */
42  MPC55XX_MMU_TAG_INITIALIZER(1, 0xffe00000, MPC55XX_MMU_2M, 0, 1, 1, 1),
43  MPC55XX_MMU_TAG_INITIALIZER(2, 0xc3f00000, MPC55XX_MMU_1M, 0, 1, 1, 1),
44  /* Internal SRAM 64k + 64k */
45  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_64K, 1, 1, 1, 0),
46  MPC55XX_MMU_TAG_INITIALIZER(4, 0x50000000, MPC55XX_MMU_64K, 0, 1, 1, 0)
47#elif MPC55XX_CHIP_FAMILY == 566
48  /* Internal flash 2M */
49  MPC55XX_MMU_TAG_INITIALIZER(1, 0x00000000, MPC55XX_MMU_1M, 1, 0, 1, 0),
50  MPC55XX_MMU_TAG_INITIALIZER(4, 0x00100000, MPC55XX_MMU_1M, 1, 0, 1, 0),
51  /* IO */
52  MPC55XX_MMU_TAG_INITIALIZER(2, 0xc3f00000, MPC55XX_MMU_1M, 0, 1, 1, 1),
53  /* Internal SRAM 512k */
54  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_256K, 1, 1, 1, 0),
55  MPC55XX_MMU_TAG_INITIALIZER(5, 0x40040000, MPC55XX_MMU_256K, 1, 1, 1, 0)
56#elif MPC55XX_CHIP_FAMILY == 567
57  /* Internal SRAM 256k */
58  MPC55XX_MMU_TAG_INITIALIZER(3, 0x40000000, MPC55XX_MMU_256K, 1, 1, 1, 0)
59#endif
60};
61
62const size_t mpc55xx_start_config_mmu_early_count [] = {
63  RTEMS_ARRAY_SIZE(mpc55xx_start_config_mmu_early)
64};
Note: See TracBrowser for help on using the repository browser.