powerpc: Do not use the ATB for e500 multilib

The e500v1 has no support for the ATB.

Update #2369.
This commit is contained in:
Sebastian Huber
2015-07-15 10:51:12 +02:00
parent e2fcb7dc64
commit 93f5adb644
2 changed files with 8 additions and 2 deletions

View File

@@ -90,7 +90,13 @@ void bsp_start(void)
BSP_bus_frequency = bsp_uboot_board_info.bi_busfreq
/ QORIQ_BUS_CLOCK_DIVIDER;
bsp_clicks_per_usec = BSP_bus_frequency / 8000000;
rtems_counter_initialize_converter(bsp_uboot_board_info.bi_intfreq);
rtems_counter_initialize_converter(
#ifdef __PPC_CPU_E6500__
bsp_uboot_board_info.bi_intfreq
#else
BSP_bus_frequency / 8
#endif
);
#endif /* HAS_UBOOT */
/* Initialize some console parameters */

View File

@@ -838,7 +838,7 @@ static inline CPU_Counter_ticks _CPU_Counter_read( void )
{
CPU_Counter_ticks value;
#if defined(ppc8540) || defined(__PPC_CPU_E6500__)
#if defined(__PPC_CPU_E6500__)
/* Use Alternate Time Base */
__asm__ volatile( "mfspr %0, 526" : "=r" (value) );
#else