Changeset d11ea4eb in rtems


Ignore:
Timestamp:
Nov 18, 2008, 12:10:48 PM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
c51adc79
Parents:
9151ec6
Message:

include/bsp.h, include/hwreg_vals.h, network/network.c:
correct some init values for HSC_CM01 boards
change strategy to determine MAC address

Location:
c/src/lib/libbsp/powerpc/gen83xx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

    r9151ec6 rd11ea4eb  
     12008-11-18      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * include/bsp.h, include/hwreg_vals.h, network/network.c:
     4        correct some init values for HSC_CM01 boards
     5        change strategy to determine MAC address
     6
    172008-11-13      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • c/src/lib/libbsp/powerpc/gen83xx/include/bsp.h

    r9151ec6 rd11ea4eb  
    118118#define PRINTK_MINOR BSP_UART1_MINOR
    119119
    120 #if defined(MPC8249EAMDS)
     120#if defined(MPC8249EAMDS) || defined(HSC_CM01)
    121121#define BSP_USE_UART2 TRUE
    122122#else
  • c/src/lib/libbsp/powerpc/gen83xx/include/hwreg_vals.h

    r9151ec6 rd11ea4eb  
    250250#define DDR_SDRAM_MODE_VAL           0x44521632
    251251#define DDR_SDRAM_CLK_CNTL_VAL       0x01800000
    252 #define DDR_SDRAM_CFG_VAL            0x43000008
     252#define DDR_SDRAM_CFG_VAL            0x63000008
    253253
    254254#define DDR_ERR_DISABLE_VAL          0x0000008D
  • c/src/lib/libbsp/powerpc/gen83xx/network/network.c

    r9151ec6 rd11ea4eb  
    124124   */
    125125  if (config->hardware_address == NULL) {
     126#if !defined(HAS_UBOOT)
     127    static char hw_addr [M83xx_TSEC_NIFACES][6];
     128    m83xxTSEC_Registers_t  *reg_ptr;
    126129
    127 #ifdef HAS_UBOOT
     130    /* read MAC address from hardware register */
     131    /* we expect it htere from the boot loader */
     132    reg_ptr = &mpc83xx.tsec[unitNumber - 1];
     133    config->hardware_address = hw_addr[unitNumber-1];
     134   
     135    hw_addr[unitNumber-1][5] = (reg_ptr->macstnaddr[0] >> 24) & 0xff;
     136    hw_addr[unitNumber-1][4] = (reg_ptr->macstnaddr[0] >> 16) & 0xff;
     137    hw_addr[unitNumber-1][3] = (reg_ptr->macstnaddr[0] >>  8) & 0xff;
     138    hw_addr[unitNumber-1][2] = (reg_ptr->macstnaddr[0] >>  0) & 0xff;
     139    hw_addr[unitNumber-1][1] = (reg_ptr->macstnaddr[1] >> 24) & 0xff;
     140    hw_addr[unitNumber-1][0] = (reg_ptr->macstnaddr[1] >> 16) & 0xff;
     141#endif
    128142
     143#if defined(HAS_UBOOT)
    129144    switch (unitNumber) {
    130145      case 1:
     
    154169    }
    155170
    156 #else /* HAS_UBOOT */
    157 
    158     char hw_addr [6] = { 0x00, 0x04, 0x9f, 0x00, 0x2f, 0xcb};
    159 
    160     config->hardware_address = hw_addr;
    161 
    162171#endif /* HAS_UBOOT */
    163172
Note: See TracChangeset for help on using the changeset viewer.