Ignore:
Timestamp:
Oct 5, 2018, 12:20:34 AM (6 years ago)
Author:
alain
Message:

Introduce the cluster_info[x][y] in the boot_info.h structure for the TSAR architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot_tty_driver.c

    r556 r572  
    4343#endif
    4444
    45 #ifndef TXT_TGT_CLUSTER
    46 # error "The TXT_TGT_CLUSTER value should be defined in the 'hard_config.h' file"
    47 #endif
    48 
    4945/////////////////////////////////////////////////////////////////////////////
    5046// This function returns the value contained in a TTY0 register.
     
    5450static uint32_t boot_tty_get_register( uint32_t reg )
    5551{
    56     cxy_t      cxy = TXT_TGT_CLUSTER;
     52    cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
    5753    uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg;
    5854   
     
    6965                                   uint32_t val )
    7066{
    71     cxy_t      cxy = TXT_TGT_CLUSTER;
     67    cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
    7268    uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg;
    7369
     
    7672} // boot_tty_set_register()
    7773
    78 //////////////////////////////////
     74/////////////////////////////////////
    7975int boot_tty_write( const char * buf,
    8076                    uint32_t     nbytes )
Note: See TracChangeset for help on using the changeset viewer.