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

4.11
Last change on this file since 6c454104 was 6c454104, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 13, 2012 at 10:50:38 AM

bsp/mpc55xx: Fix no-cache section load

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