Changeset 144ad33 in rtems
- Timestamp:
- Sep 20, 2008, 9:39:02 PM (11 years ago)
- Branches:
- 4.10, 4.11, master
- Children:
- f044f9c
- Parents:
- bb573f7
- Location:
- c/src/lib/libbsp/powerpc/gen5200
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/gen5200/ChangeLog
rbb573f7 r144ad33 1 2008-09-20 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * Makefile.am, include/bsp.h, network_5200/network.c, start/start.S, 4 startup/bspstart.c, startup/cpuinit.c: Use top level shared 5 bsp_get_work_area() implementation. Augment it to know about U-Boot. 6 * startup/bspgetworkarea.c: Removed. 7 1 8 2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com> 2 9 -
c/src/lib/libbsp/powerpc/gen5200/Makefile.am
rbb573f7 r144ad33 106 106 ../shared/uboot_getenv.c \ 107 107 startup/bspclean.c \ 108 startup/bspgetworkarea.c \108 ../../shared/bspgetworkarea.c \ 109 109 startup/bspstart.c \ 110 110 startup/cpuinit.c \ -
c/src/lib/libbsp/powerpc/gen5200/include/bsp.h
rbb573f7 r144ad33 150 150 #include <u-boot.h> 151 151 152 extern bd_t *uboot_bdinfo_ptr; 153 extern bd_t uboot_bdinfo_copy; 152 extern bd_t bsp_uboot_board_info; 154 153 #endif 155 154 … … 206 205 /* clock settings */ 207 206 #if defined(HAS_UBOOT) 208 #define IPB_CLOCK ( uboot_bdinfo_ptr->bi_ipbfreq)209 #define XLB_CLOCK ( uboot_bdinfo_ptr->bi_busfreq)210 #define G2_CLOCK ( uboot_bdinfo_ptr->bi_intfreq)207 #define IPB_CLOCK (bsp_uboot_board_info.bi_ipbfreq) 208 #define XLB_CLOCK (bsp_uboot_board_info.bi_busfreq) 209 #define G2_CLOCK (bsp_uboot_board_info.bi_intfreq) 211 210 #else 212 211 #define IPB_CLOCK 33000000 /* 33 MHz */ … … 216 215 217 216 #if defined(HAS_UBOOT) 218 #define GEN5200_CONSOLE_BAUD ( uboot_bdinfo_ptr->bi_baudrate)217 #define GEN5200_CONSOLE_BAUD (bsp_uboot_board_info.bi_baudrate) 219 218 #else 220 219 #define GEN5200_CONSOLE_BAUD 9600 -
c/src/lib/libbsp/powerpc/gen5200/network_5200/network.c
rbb573f7 r144ad33 1770 1770 (sc->arpcom.ac_enaddr[1] == 0) && 1771 1771 (sc->arpcom.ac_enaddr[2] == 0)) { 1772 memcpy((void *)sc->arpcom.ac_enaddr, uboot_bdinfo_ptr->bi_enetaddr, ETHER_ADDR_LEN); 1772 memcpy( 1773 (void *)sc->arpcom.ac_enaddr, 1774 bsp_uboot_board_info.bi_enetaddr, 1775 ETHER_ADDR_LEN 1776 ); 1773 1777 } 1774 1778 #endif -
c/src/lib/libbsp/powerpc/gen5200/start/start.S
rbb573f7 r144ad33 168 168 #if defined(HAS_UBOOT) 169 169 /* store pointer to UBoot bd_info board info structure */ 170 LWI r31, uboot_bdinfo_ptr170 LWI r31,bsp_uboot_board_info_ptr 171 171 stw r3,0(r31) 172 172 #endif /* defined(HAS_UBOOT) */ -
c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
rbb573f7 r144ad33 108 108 109 109 #if defined(HAS_UBOOT) 110 bd_t *uboot_bdinfo_ptr = (bd_t *)1; /* will be overwritten from startup code */ 111 bd_t uboot_bdinfo_copy; /* will be overwritten with copy of bdinfo */ 110 /* will be overwritten from startup code */ 111 bd_t *bsp_uboot_board_info_ptr = (bd_t *)1; 112 /* will be overwritten with copy of board information */ 113 bd_t bsp_uboot_board_info; 112 114 #endif 113 115 … … 143 145 144 146 #if defined(HAS_UBOOT) 145 uboot_bdinfo_copy = *uboot_bdinfo_ptr; 146 uboot_bdinfo_ptr = &uboot_bdinfo_copy; 147 bsp_uboot_board_info = *bsp_uboot_board_info_ptr; 147 148 #endif 148 149 … … 150 151 { 151 152 void dumpUBootBDInfo( bd_t * ); 152 dumpUBootBDInfo( uboot_bdinfo_ptr );153 dumpUBootBDInfo( bsp_uboot_board_info_ptr ); 153 154 } 154 155 #endif -
c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c
rbb573f7 r144ad33 177 177 calc_dbat_regvals( 178 178 &dbat, 179 uboot_bdinfo_ptr->bi_memstart,180 uboot_bdinfo_ptr->bi_memsize,179 bsp_uboot_board_info.bi_memstart, 180 bsp_uboot_board_info.bi_memsize, 181 181 true, 182 182 false, … … 194 194 * corrects that. 195 195 */ 196 if (( uboot_bdinfo_ptr->bi_flashstart + uboot_bdinfo_ptr->bi_flashsize)197 < uboot_bdinfo_ptr->bi_flashstart) {198 start = 0 - uboot_bdinfo_ptr->bi_flashsize;196 if ((bsp_uboot_board_info.bi_flashstart + bsp_uboot_board_info.bi_flashsize) 197 < bsp_uboot_board_info.bi_flashstart) { 198 start = 0 - bsp_uboot_board_info.bi_flashsize; 199 199 } else { 200 start = uboot_bdinfo_ptr->bi_flashstart;200 start = bsp_uboot_board_info.bi_flashstart; 201 201 } 202 202 calc_dbat_regvals( 203 203 &dbat, 204 204 start, 205 uboot_bdinfo_ptr->bi_flashsize,205 bsp_uboot_board_info.bi_flashsize, 206 206 true, 207 207 false, … … 230 230 * If there is SRAM, program BAT3 for that memory 231 231 */ 232 if ( uboot_bdinfo_ptr->bi_sramsize != 0) {232 if (bsp_uboot_board_info.bi_sramsize != 0) { 233 233 calc_dbat_regvals( 234 234 &dbat, 235 uboot_bdinfo_ptr->bi_sramstart,236 uboot_bdinfo_ptr->bi_sramsize,235 bsp_uboot_board_info.bi_sramstart, 236 bsp_uboot_board_info.bi_sramsize, 237 237 false, 238 238 true,
Note: See TracChangeset
for help on using the changeset viewer.