Ignore:
Timestamp:
Apr 26, 2017, 2:14:33 PM (7 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_hba_driver.c

    r1 r6  
    77
    88#include <boot_config.h>
     9#include <hard_config.h>
    910#include <boot_hba_driver.h>
    1011#include <boot_mmc_driver.h>
     
    1516#endif
    1617
    17 #ifndef IO_CXY
    18 # error "The IO_CXY value should be defined in the 'boot_config.h' file"
     18#ifndef Y_IO
     19# error "The Y_IO value should be defined in the 'hard_config.h' file"
     20#endif
     21
     22#ifndef X_IO
     23# error "The X_IO value should be defined in the 'hard_config.h' file"
     24#endif
     25
     26#ifndef Y_WIDTH
     27# error "The Y_WIDTH value should be defined in the 'hard_config.h' file"
    1928#endif
    2029
     
    4756static uint32_t boot_hba_get_register(uint32_t reg)
    4857{
    49     cxy_t      cxy = IO_CXY;
     58    cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
    5059    uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg;
    5160   
     
    6170void boot_hba_set_register(uint32_t reg, uint32_t val)
    6271{
    63     cxy_t      cxy = IO_CXY;
     72    cxy_t      cxy = (X_IO << Y_WIDTH) + Y_IO;
    6473    uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg;
    6574
Note: See TracChangeset for help on using the changeset viewer.