Changeset 740abbd in rtems


Ignore:
Timestamp:
Apr 17, 2013, 1:57:20 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5e920ceb
Parents:
d5587f9f
git-author:
Sebastian Huber <sebastian.huber@…> (04/17/13 13:57:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/23/13 07:59:55)
Message:

bsp/mpc5200: Add and use enable_bat_4_to_7()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c

    rd5587f9f r740abbd  
    113113}
    114114
     115static inline enable_bat_4_to_7(void)
     116{
     117  PPC_SET_SPECIAL_PURPOSE_REGISTER_BITS(HID2, BSP_BBIT32(13));
     118}
     119
    115120static void cpu_init_bsp(void)
    116121{
    117 #if defined (MPC5200_BOARD_BRS5L)
    118122  BAT dbat;
    119123
     124#if defined(MPC5200_BOARD_BRS5L)
    120125  calc_dbat_regvals(
    121126    &dbat,
     
    166171  SET_DBAT(3,dbat.batu,dbat.batl);
    167172#elif defined (HAS_UBOOT)
    168   BAT dbat;
    169173  uint32_t start = 0;
    170174
     
    253257
    254258#if defined(MPC5200_BOARD_DP2)
    255   /* Enable BAT4-7 */
    256   PPC_SET_SPECIAL_PURPOSE_REGISTER_BITS(HID2, BSP_BBIT32(13));
     259  enable_bat_4_to_7();
    257260
    258261  /* FPGA */
     
    269272  SET_DBAT(4, dbat.batu, dbat.batl);
    270273#elif defined(MPC5200_BOARD_PM520_ZE30)
    271   /* Enable BAT4-7 */
    272   PPC_SET_SPECIAL_PURPOSE_REGISTER_BITS(HID2, BSP_BBIT32(13));
     274  enable_bat_4_to_7();
    273275
    274276  /* External CC770 CAN controller available in version 2 */
Note: See TracChangeset for help on using the changeset viewer.