Changeset 39dfbe16 in rtems


Ignore:
Timestamp:
Sep 9, 2008, 1:18:58 PM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, master
Children:
85e87f1
Parents:
ae52c9c
Message:

minor additions
i2c-driver: wait, 'til stop executed

Location:
c/src/lib/libcpu/powerpc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    rae52c9c r39dfbe16  
     12008-09-09      Thomas Doerfler <thomas.doerfler@embedded-brains.de>
     2
     3        * mpc8xx/mpc8xx.h, mpc8xx/timer/timer.c: minor additions
     4
     5        * mpc83xx/i2c/mpc83xx_i2cdrv.c: wait, 'til STOP has been executed
     6
    172008-09-08      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
     
    1016
    1117        * mpc8xx/cpm/cp.c: use correct type for interrupt level
    12        
     18
    13192008-09-06      Ralf Corsépius <ralf.corsepius@rtems.org>
    1420
  • c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c

    rae52c9c r39dfbe16  
    425425#endif
    426426  softc_ptr->reg_ptr->i2ccr &= ~MPC83XX_I2CCR_MSTA;
    427 
     427  /*
     428   * wait, 'til stop has been executed
     429   */
     430  while (0 != (softc_ptr->reg_ptr->i2csr & MPC83XX_I2CSR_MBB)) {
     431    rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
     432  }
    428433#if defined(DEBUG)
    429434  printk("... exit OK\r\n");
  • c/src/lib/libcpu/powerpc/mpc8xx/include/mpc8xx.h

    rae52c9c r39dfbe16  
    279279#define M8xx_FEC_IMASK_EBERREN (1 << 22)
    280280
     281  /*
     282   * access macros to write to mii_data register
     283   */
     284#define M8xx_FEC_MII_DATA_ST       ( 1           << (31- 1))
     285#define M8xx_FEC_MII_DATA_OP_RD    ( 2           << (31- 3))
     286#define M8xx_FEC_MII_DATA_OP_WR    ( 1           << (31- 3))
     287#define M8xx_FEC_MII_DATA_PHYAD(n) (((n) & 0x3f) << (31- 8))
     288#define M8xx_FEC_MII_DATA_PHYRA(n) (((n) & 0x3f) << (31-13))
     289#define M8xx_FEC_MII_DATA_TA       ( 2           << (31-15))
     290#define M8xx_FEC_MII_DATA_WDATA(n) ((n) & 0xffff           )
     291#define M8xx_FEC_MII_DATA_RDATA(reg) ((reg) & 0xffff       )
     292  /*
     293   * bits for FEC X_CNTRL register
     294   */
     295#define M8xx_FEC_X_CNTRL_FDEN       ( 1           << (31-29))
     296#define M8xx_FEC_X_CNTRL_HBC        ( 1           << (31-30))
     297#define M8xx_FEC_X_CNTRL_GTS        ( 1           << (31-31))
    281298/*
    282299*************************************************************************
  • c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c

    rae52c9c r39dfbe16  
    8383  if ( benchmark_timer_find_average_overhead == 1 )
    8484    return total;          /* in XXX microsecond units */
    85 
    8685  else {
    8786    if ( total < bsp_timer_least_valid ) {
Note: See TracChangeset for help on using the changeset viewer.