Ignore:
Timestamp:
Apr 26, 2017, 2:14:33 PM (8 years ago)
Author:
alain
Message:

Modify the boot_info_t struct to describe external peripherals in all clusters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bootloader_tsar/boot_bdv_driver.c

    r1 r6  
    1212
    1313#ifndef SEG_IOC_BASE
    14 # error "The SEG_IOC_BASE value should be defined in the 'boot_config.h' file"
     14# error "The SEG_IOC_BASE value should be defined in the 'hard_config.h' file"
    1515#endif
    1616
    17 #ifndef IO_CXY
    18 # error "The IO_CXY value should be defined in the 'boot_config.h' file"
     17#ifndef X_IO
     18# error "The X_IO value should be defined in the 'hard_config.h' file"
     19#endif
     20
     21#ifndef Y_IO
     22# error "The Y_IO value should be defined in the 'hard_config.h' file"
     23#endif
     24
     25#ifndef Y_WIDTH
     26# error "The Y_WIDTH value should be defined in the 'hard_config.h' file"
    1927#endif
    2028
     
    3139static uint32_t boot_bdv_get_register( uint32_t reg )
    3240{
    33     cxy_t      cxy = IO_CXY;
     41    cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
    3442    uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg;
    3543   
     
    4654                                   uint32_t val )
    4755{
    48     cxy_t      cxy = IO_CXY;
     56    cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
    4957    uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg;
    5058
Note: See TracChangeset for help on using the changeset viewer.