Changeset 537 for trunk/hal


Ignore:
Timestamp:
Sep 21, 2018, 10:21:16 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

TTY MUX 2 : Make mtty driver only address chan. 0

The physical vci_multi_tty on TSAR LETI has only 1 channel,
so one quatuor of registers to address.
Addressing registers on other channels, at further addresses,
would result in a bus error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_mtty.c

    r534 r537  
    7878
    7979    // enable interruptions for RX but not for TX
    80     reg_xp = XPTR( tty_cxy , tty_ptr + (channel * MTTY_SPAN) + MTTY_CONFIG );
     80    reg_xp = XPTR( tty_cxy , tty_ptr + MTTY_CONFIG );
    8181    hal_remote_sw( reg_xp , MTTY_CONFIG_RX_ENABLE );
    8282
     
    133133    // get TTY channel index and channel base address
    134134    uint32_t   channel = hal_remote_lw( XPTR( dev_cxy , &dev_ptr->channel ) );
    135     uint32_t * base    = tty_ptr + MTTY_SPAN * channel;
     135    uint32_t * base    = tty_ptr;
    136136
    137137    ///////////////////////
     
    298298
    299299    // get channel base address
    300     base    = tty_ptr + MTTY_SPAN * channel;
     300    base    = tty_ptr;
    301301
    302302    // get extended pointer on TTY registers
Note: See TracChangeset for help on using the changeset viewer.