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

    r1 r6  
    1 /****************************************************************************
    2  * This file defines various hardware and configuration parameters for the  *
    3  * ALMOS-MKH boot-loader.                                                    *
    4  ****************************************************************************/
     1/*********************************************************************************
     2 * This file defines various configuration parameters for ALMOS-MKH boot-loader.
     3 ********************************************************************************/
    54
    65#ifndef _BOOT_CONFIG_H
     
    87
    98// Debug options
    10 #define DEBUG_BOOT_INFO     1
    11 #define DEBUG_BOOT_ELF      1
     9#define DEBUG_BOOT_INFO     0
     10#define DEBUG_BOOT_ELF      0
    1211#define DEBUG_BOOT_IOC      0
    13 #define DEBUG_BOOT_FAT32    1
    14 #define USE_FIXED_FORMAT    0
     12#define DEBUG_BOOT_WAKUP    1
     13#define DEBUG_BOOT_FAT32    0
    1514
    16 // io_cluster identifier
    17 #define IO_CXY              0
     15// Core identifier format
     16#define USE_FIXED_FORMAT    1
    1817
    19 // Peripheral base addresses (in io_cluster)
    20 #define SEG_IOC_BASE        0xb3000000
    21 #define SEG_TTY_BASE        0xb4000000
    22 #define SEG_MMC_BASE        0xb2000000
     18// cache line
     19#define CACHE_LINE_SIZE     64
     20
     21// Preloader temporary segment
     22#define PRELOADER_BASE      0x0             /* Preloader base address.      */
     23#define PRELOADER_MAX_SIZE  0x4000          /* Preloader max size.          */
    2324
    2425// boot code temporary segment
    2526#define BOOT_BASE           0x100000        /* 'boot.elf' base address.     */
    26 #define BOOT_MAX_SIZE       0x100000        /* 'boot.elf' max size.         */
     27#define BOOT_MAX_SIZE       0x010000        /* 'boot.elf' max size.         */
    2728
    2829// arch_info temporary segment
    29 #define ARCHINFO_BASE       0x200000        /* 'arch_info.bin' base address */
    30 #define ARCHINFO_MAX_SIZE   0x200000        /* 'arch_info.bin' max size.    */
     30#define ARCHINFO_BASE       0x200000        /* 'arch_info.bin' file base address */
     31#define ARCHINFO_MAX_SIZE   0x010000        /* 'arch_info.bin' file max size.    */
    3132
    3233// kernel code temporary segment
    33 #define KERN_BASE           0x400000        /* 'kernel.elf' base address    */
    34 #define KERN_MAX_SIZE       0x100000        /* 'kernel.elf' max size.       */
    35 
    36 // Preloader temporary segment
    37 #define PRELOADER_BASE      0x0             /* Preloader base address.      */
    38 #define PRELOADER_MAX_SIZE  0x100000        /* Preloader max size.          */
     34#define KERN_BASE           0x400000        /* 'kernel.elf' file base address    */
     35#define KERN_MAX_SIZE       0x100000        /* 'kernel.elf' file max size.       */
    3936
    4037// Temporary stacks segments
    4138#define BOOT_STACK_BASE     0x504000        /* Boot stack base address.     */
    42 #define BOOT_STACK_SIZE     0x1000          /* Boot stack size (4Kb)        */
    43 
    44 // Pas clair du tout TODO   [AG]
    45 #define KERN_IMG_TMP_BASE   0X600000
     39#define BOOT_STACK_SIZE     0x4000          /* Boot stack size (16Kb)       */
    4640
    4741#endif  // _BOOT_CONFIG_H
Note: See TracChangeset for help on using the changeset viewer.