Changeset 6a184ff in rtems
- Timestamp:
- 02/25/05 05:21:13 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 38ca736
- Parents:
- c743b48
- Location:
- c/src/lib/libbsp/arm/csb337
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/arm/csb337/ChangeLog
rc743b48 r6a184ff 1 2005-02-24 Jay Monkman <jtm@lopingdog.com> 2 3 PR 751/bsps 4 * startup/linkcmds: Cleanup. 5 * network/network.c: Added hardware initialization 6 code. 7 1 8 2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org> 2 9 -
c/src/lib/libbsp/arm/csb337/network/network.c
rc743b48 r6a184ff 13 13 #include <at91rm9200.h> 14 14 #include <at91rm9200_emac.h> 15 #include <at91rm9200_gpio.h> 16 #include <at91rm9200_pmc.h> 15 17 16 18 #include <stdio.h> … … 309 311 { 310 312 int i; 311 313 314 /* Configure shared pins for Ethernet, not GPIO */ 315 PIOA_REG(PIO_PDR) = ( BIT7 | /* tx clock */ 316 BIT8 | /* tx enable */ 317 BIT9 | /* tx data 0 */ 318 BIT10 | /* tx data 1 */ 319 BIT11 | /* carrier sense */ 320 BIT12 | /* rx data 0 */ 321 BIT13 | /* rx data 1 */ 322 BIT14 | /* rx error */ 323 BIT15 | /* MII clock */ 324 BIT16 ); /* MII data */ 325 326 PIOB_REG(PIO_PDR) = ( BIT12 | /* tx data 2 */ 327 BIT13 | /* tx data 3 */ 328 BIT14 | /* tx error */ 329 BIT15 | /* rx data 2 */ 330 BIT16 | /* rx data 3 */ 331 BIT17 | /* rx data valid */ 332 BIT18 | /* rx collistion */ 333 BIT19 ); /* rx clock */ 334 335 PIOB_REG(PIO_BSR) = ( BIT12 | /* tx data 2 */ 336 BIT13 | /* tx data 3 */ 337 BIT14 | /* tx error */ 338 BIT15 | /* rx data 2 */ 339 BIT16 | /* rx data 3 */ 340 BIT17 | /* rx data valid */ 341 BIT18 | /* rx collistion */ 342 BIT19 ); /* rx clock */ 343 344 345 /* Enable the clock to the EMAC */ 346 PMC_REG(PMC_PCER) |= PMC_PCR_PID_EMAC; 347 312 348 /* initialize our receive buffer descriptors */ 313 349 for (i = 0; i < NUM_RXBDS-1; i++) { … … 328 364 329 365 /* set the MII clock divder to MCK/64 */ 366 EMAC_REG(EMAC_CFG) &= EMAC_CFG_CLK_MASK; 330 367 EMAC_REG(EMAC_CFG) = (EMAC_CFG_CLK_64 | EMAC_CFG_BIG | EMAC_CFG_FD); 331 368 -
c/src/lib/libbsp/arm/csb337/startup/linkcmds
rc743b48 r6a184ff 63 63 . += (0x600); 64 64 65 /* 4receive buffers, 0x600 each */65 /* 8 receive buffers, 0x600 each */ 66 66 at91rm9200_emac_rxbufs = .; 67 67 . += (0x600 * 8);
Note: See TracChangeset
for help on using the changeset viewer.