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

Gather LETI-specific macros into hard_config.h

File:
1 edited

Legend:

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

    r541 r556  
    4343#endif
    4444
    45 #ifdef IS_LETI
    46   #define TARGET_CLUSTER    0
    47 #else
    48   #define TARGET_CLUSTER    ((X_IO << Y_WIDTH) + Y_IO)
     45#ifndef TXT_TGT_CLUSTER
     46# error "The TXT_TGT_CLUSTER value should be defined in the 'hard_config.h' file"
    4947#endif
    50 
    5148
    5249/////////////////////////////////////////////////////////////////////////////
     
    5754static uint32_t boot_tty_get_register( uint32_t reg )
    5855{
    59     cxy_t      cxy = TARGET_CLUSTER;
     56    cxy_t      cxy = TXT_TGT_CLUSTER;
    6057    uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg;
    6158   
     
    7269                                   uint32_t val )
    7370{
    74     cxy_t      cxy = TARGET_CLUSTER;
     71    cxy_t      cxy = TXT_TGT_CLUSTER;
    7572    uint32_t * ptr = (uint32_t *)SEG_TXT_BASE + reg;
    7673
Note: See TracChangeset for help on using the changeset viewer.