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