Changeset f3a51d62 in rtems
- Timestamp:
- 03/21/18 07:11:33 (5 years ago)
- Branches:
- 5, master
- Children:
- bb22a3f3
- Parents:
- a7fa9e91
- git-author:
- Sebastian Huber <sebastian.huber@…> (03/21/18 07:11:33)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (03/22/18 06:01:35)
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
bsps/powerpc/virtex/include/bsp.h
ra7fa9e91 rf3a51d62 62 62 #define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN 63 63 64 /* miscellaneous stuff assumed to exist */65 extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */66 67 64 /* Network Defines */ 68 65 #if 1 /* EB/doe changes */ -
bsps/powerpc/virtex4/include/bsp.h
ra7fa9e91 rf3a51d62 64 64 #endif 65 65 66 /* miscellaneous stuff assumed to exist */67 extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */68 69 #endif /* ASM */70 71 66 void BSP_ask_for_reset(void); 72 67 … … 80 75 #endif 81 76 77 #endif /* ASM */ 78 82 79 #endif -
bsps/powerpc/virtex5/include/bsp.h
ra7fa9e91 rf3a51d62 64 64 #endif 65 65 66 /* miscellaneous stuff assumed to exist */67 extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */68 69 66 /* 70 67 * Bus Frequency -
c/src/lib/libbsp/powerpc/haleakala/startup/bspstart.c
ra7fa9e91 rf3a51d62 76 76 /* Expected by clock.c */ 77 77 uint32_t bsp_clicks_per_usec; 78 bool bsp_timer_internal_clock; /* true, when timer runs with CPU clk */79 78 uint32_t bsp_timer_least_valid; 80 79 uint32_t bsp_timer_average_overhead; … … 184 183 rtems_counter_initialize_converter(bsp_clicks_per_usec * 1000000); 185 184 186 bsp_timer_internal_clock = TRUE;187 185 bsp_timer_average_overhead = 2; 188 186 bsp_timer_least_valid = 3; -
c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
ra7fa9e91 rf3a51d62 71 71 uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */ 72 72 uint32_t bsp_timer_least_valid; /* Least valid number from timer */ 73 bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */74 73 75 74 extern char IntrStack_start []; -
c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c
ra7fa9e91 rf3a51d62 50 50 uint32_t bsp_timer_average_overhead; /* Average overhead of timer in ticks */ 51 51 uint32_t bsp_timer_least_valid; /* Least valid number from timer */ 52 bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */53 52 54 53 static const char *bsp_tqm_get_cib_string( const char *cib_id) -
c/src/lib/libbsp/powerpc/virtex/timer/timer-config.c
ra7fa9e91 rf3a51d62 57 57 /* Least valid number from timer */ 58 58 uint32_t bsp_timer_least_valid = 3; 59 60 /* TRUE, when timer runs with CPU clk */61 bool bsp_timer_internal_clock = true; -
c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
ra7fa9e91 rf3a51d62 97 97 /* Expected by clock.c */ 98 98 uint32_t bsp_clicks_per_usec; 99 bool bsp_timer_internal_clock; /* true, when timer runs with CPU clk */100 99 uint32_t bsp_timer_least_valid; 101 100 uint32_t bsp_timer_average_overhead; … … 169 168 /* Timebase register ticks/microsecond; The application may override these */ 170 169 bsp_clicks_per_usec = 350; 171 bsp_timer_internal_clock = true;172 170 bsp_timer_average_overhead = 2; 173 171 bsp_timer_least_valid = 3; -
c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
ra7fa9e91 rf3a51d62 98 98 /* Expected by clock.c */ 99 99 uint32_t bsp_clicks_per_usec; 100 bool bsp_timer_internal_clock; /* true, when timer runs with CPU clk */101 100 uint32_t bsp_timer_least_valid; 102 101 uint32_t bsp_timer_average_overhead; … … 191 190 BSP_bus_frequency / (BSP_time_base_divisor / 1000) 192 191 ); 193 bsp_timer_internal_clock = true;194 192 bsp_timer_average_overhead = 2; 195 193 bsp_timer_least_valid = 3; -
c/src/lib/libcpu/powerpc/ppc403/clock/clock.c
ra7fa9e91 rf3a51d62 54 54 55 55 extern uint32_t bsp_clicks_per_usec; 56 extern bool bsp_timer_internal_clock;57 56 58 57 volatile uint32_t Clock_driver_ticks; … … 172 171 #ifndef ppc405 /* this is a ppc403 */ 173 172 __asm__ volatile ("mfdcr %0, 0xa0" : "=r" (iocr)); /* IOCR */ 174 if (bsp_timer_internal_clock) { 175 iocr &= ~4; /* timer clocked from system clock */ 176 } else { 177 iocr |= 4; /* select external timer clock */ 178 } 173 iocr &= ~4; /* timer clocked from system clock */ 179 174 __asm__ volatile ("mtdcr 0xa0, %0" : "=r" (iocr) : "0" (iocr)); /* IOCR */ 180 175 … … 195 190 #else /* ppc405 */ 196 191 __asm__ volatile ("mfdcr %0, 0x0b2" : "=r" (iocr)); /*405GP CPC0_CR1 */ 197 if (bsp_timer_internal_clock) { 198 iocr &=~0x800000; /* timer clocked from system clock CETE*/ 199 } else { 200 iocr |= 0x800000; /* select external timer clock CETE*/ 201 } 192 iocr &=~0x800000; /* timer clocked from system clock CETE*/ 202 193 __asm__ volatile ("mtdcr 0x0b2, %0" : "=r" (iocr) : "0" (iocr)); /* 405GP CPC0_CR1 */ 203 194
Note: See TracChangeset
for help on using the changeset viewer.