/* config.h - FT2000/4 configuration header */ /* * * This program is OPEN SOURCE software: you can redistribute it and/or modify it; * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ #ifndef __INCconfigh #define __INCconfigh #ifdef __cplusplus extern "C" { #endif /* BSP version/revision identification, before configAll.h */ #define BSP_VERSION "1.0" #define BSP_REV ".0" /* 0 for first revision */ #include #include #define SYS_MODEL "FT20004/KM02 BOARD" #define INCLUDE_VXBUS #ifdef INCLUDE_VXBUS #define INCLUDE_VXBUS_SHOW #define INCLUDE_HWMEM_ALLOC #define INCLUDE_PLB_BUS #define DRV_ARM_GICV3 #define DRV_SIO_PRIMECELL /* UART */ #define DRV_ARM_GEN_SYS_TIMER #define INCLUDE_AUX_CLK #undef DRV_ARM_GEN_AUX_TIMER #define INCLUDE_SYSCLK_INIT #define INCLUDE_PARAM_SYS #undef DRV_FTCAN #undef INCLUDE_FT_SD #undef DRV_FTI2C #define INCLUDE_SPI_BUS #define DRV_FTQSPI #define DRV_FTSPI #define DRV_SPIFLASH_SP25 #define DRV_SPIDEV_SM2130 #undef INCLUDE_YT8521PHY #define DRV_FTGPIO #if defined(INCLUDE_PC_CONSOLE)||defined(INCLUDE_WINDML) #define DRV_X100DC #endif /* ftpd */ /* #define INCLUDE_IPFTPS */ #define FTPS_AUTH_CALLBACK_HOOK bsp_ipftps_authenticate_nopasswd #define TFFS_FLASH_MOUNT_POINTOT "/tffs0" /* ARM PrimeCell SIO for VxBus */ #define INCLUDE_SIO_UTILS #undef INCLUDE_USB #ifdef INCLUDE_USB #define INCLUDE_USB_INIT #define INCLUDE_USB_XHCI_HCD #define INCLUDE_USB_XHCI_HCD_INIT #define INCLUDE_USB_GEN2_STORAGE #define INCLUDE_USB_GEN2_STORAGE_INIT #endif #undef INCLUDE_TFFS #define DRV_FS_LITTLEFS #undef INCLUDE_DRV_STORAGE_AHCI #if defined(INCLUDE_USB) || \ defined(INCLUDE_DRV_STORAGE_PIIX) || defined(INCLUDE_DRV_STORAGE_AHCI) #define INCLUDE_DOSFS #define INCLUDE_DOSFS_MAIN #define INCLUDE_DOSFS_CHKDSK #define INCLUDE_DOSFS_FMT #define INCLUDE_DOSFS_FAT #define INCLUDE_DOSFS_SHOW #define INCLUDE_DOSFS_DIR_VFAT #define INCLUDE_DOSFS_DIR_FIXED #endif #if defined(INCLUDE_USB) || \ defined(INCLUDE_DRV_STORAGE_PIIX) || defined(INCLUDE_TFFS) || defined(INCLUDE_DRV_STORAGE_AHCI) || defined(DRV_FS_LITTLEFS) #define INCLUDE_FS_MONITOR #define INCLUDE_FS_EVENT_UTIL #define INCLUDE_ERF #define INCLUDE_XBD #define INCLUDE_XBD_BLKDEV #define INCLUDE_XBD_TRANS #define INCLUDE_DEVICE_MANAGER #define INCLUDE_XBD_BLK_DEV #define INCLUDE_XBD_PART_LIB #define INCLUDE_DISK_UTIL #endif #if defined(DRV_FS_LITTLEFS) #endif /*#define INCLUDE_HRFS*/ #define DRV_VXBEND_FTGMAC #undef DRV_PCIBUS_FT #ifdef DRV_PCIBUS_FT # define INCLUDE_PCI_BUS # define INCLUDE_PCI_BUS_AUTOCONF # define INCLUDE_PCI_BUS_SHOW # define INCLUDE_GEI825XX_VXB_END # define INCLUDE_VXBUS_SHOW # define INCLUDE_VXB_LEGACY_INTERRUPTS #endif /* DRV_PCIBUS_FT */ #if defined(INCLUDE_GEI825XX_VXB_END) || defined(DRV_VXBEND_FTGMAC) # define INCLUDE_GENERICPHY # define INCLUDE_MII_BUS # define INCLUDE_IFCONFIG /* old coreip stack ifconfig command line/API */ # define INCLUDE_PING /* old coreip stack ping client */ # define INCLUDE_ISR_SHOW # define INCLUDE_WATCHDOGS # define INCLUDE_NETWORK # define INCLUDE_NET_INIT # define INCLUDE_BOOT_LINE_INIT #endif /* ARM Versatile EB Generic Interrupt Controller for VxBus */ #define INCLUDE_INTCTLR_LIB /* ARM AMBA timer for VxBus */ #define INCLUDE_TIMER_SYS #define INCLUDE_TIMESTAMP /* time stamp for benchmark */ #define HWMEM_POOL_SIZE 500000 #define INCLUDE_VXB_CMDLINE #endif /* INCLUDE_VXBUS */ #undef FORCE_DEFAULT_BOOT_LINE #define DEFAULT_BOOT_LINE \ "gmac(0,0) host:/vxWorks " \ "h=192.168.4.162 e=192.168.4.127:ffffff00 u=user pw=pwd tn=target" /* Memory configuration */ #define USER_RESERVED_MEM 0 /* see sysMemTop() */ /* * bootapp speed ups. */ #define BSP_COPY_LONGS bcopyLongs #define BSP_FILL_LONGS bfillLongs #define INCLUDE_BOOT_D_CACHE_ENABLE /* Enable Data Cache for bootrom */ /* * Local-to-Bus memory address constants: * the local memory address always appears at 0 locally; * it is not dual ported. */ #define LOCAL_MEM_LOCAL_ADRS 0x80000000 #define LOCAL_MEM_BUS_ADRS 0x80000000 #define LOCAL_MEM_SIZE 0x7ff00000 #define LOCAL_MEM_END_ADRS (LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE) #define ROM_BASE_ADRS 0x40000000 /* base of NOR Flash/EPROM */ #define ROM_TEXT_ADRS 0x44040000 /* code start addr in ROM */ #define ROM_SIZE 0x00100000 /* size of ROM holding VxWorks*/ #define ROM_COPY_SIZE ROM_SIZE #define ROM_SIZE_TOTAL 0x04000000 /* total size of ROM */ /* Flash memory configuration */ #define SPI_FLASH_DEVICE_NAME "spiFlash_sp25probe" #define SZ_32M (0x02000000) #define SZ_64K (0x00010000) #define SPI_FLASH_SIZE (SZ_32M) #define SPI_FLASH_SECTOR_SIZE (SZ_64K) #define SPI_FLASH_PAGE_SIZE (0x100) #define SPI_FLASH_BASE_ADRS 0 #define SPI_FLASH_SECTOR_NUM ((SPI_FLASH_SIZE) / (SPI_FLASH_SECTOR_SIZE)) #define SPI_BOOTROM_SIZE (0x400000) #define SPI_KERNEL_SIZE (0x600000) #define QSPI_PROTECT_SIZE (0x2A0000) #define QSPI_ENV_OFFSET (0x2f0000) #if defined(INCLUDE_TFFS) #define INCLUDE_TFFS_MOUNT #define INCLUDE_TFFS_SHOW #define INCLUDE_HRFS_FORMAT #define INCLUDE_HRFS_CHKDSK /* TFFS stub to vxBus Flash interface */ #define INCLUDE_TFFS_STUB_VXBFLASH #define TFFS_FORMAT_PRINT /* print the tffs format process */ #endif #if defined(INCLUDE_TFFS) || defined(DRV_FS_LITTLEFS) /* TrueFFS partition 0 */ #define TFFS_PART0_NAME "RFA0" #define TFFS_PART0_FLASH_NAME SPI_FLASH_DEVICE_NAME #define TFFS_PART0_FLASH_UNIT 0 #define TFFS_PART0_FLASH_BASE_ADRS SPI_FLASH_BASE_ADRS #define TFFS_PART0_FLASH_OFFSET 0 #define TFFS_PART0_FLASH_SIZE SPI_FLASH_SIZE #define TFFS_PART0_FLASH_BOOT_SIZE (SPI_BOOTROM_SIZE + SPI_KERNEL_SIZE) #endif /* INCLUDE_TFFS */ /* * -> sysTffsFormat 0 formating * -> usrTffsConfig 0,0,"/tffs0" creating device * -> devs show /tffs0 * -> dosFsVolFormat("/tffs0",0,0) formating to DOS */ /* clock rate configuration*/ #define SYS_CLK_RATE_MIN 10 #define SYS_CLK_RATE_MAX 15000 #define AUX_CLK_RATE_MIN 10 #define AUX_CLK_RATE_MAX 15000 /* Serial port configuration */ #undef NUM_TTY #define NUM_TTY 4 #define DEFAULT_BAUD 115200 #undef CONSOLE_BAUD_RATE #define CONSOLE_BAUD_RATE 115200 #undef CONSOLE_TTY #define CONSOLE_TTY 1 #undef INCLUDE_WDB #undef USER_I_CACHE_MODE #define USER_I_CACHE_MODE (CACHE_COPYBACK) #undef USER_D_CACHE_MODE #define USER_D_CACHE_MODE (CACHE_COPYBACK) /* * Include MMU BASIC and CACHE support for command line and project builds */ # define INCLUDE_MMU_BASIC # define INCLUDE_MMU_FULL # define INCLUDE_CACHE_SUPPORT /* * Vector Floating Point Support */ #define INCLUDE_VFP /* * miscellaneous definitions * Note: ISR_STACK_SIZE is defined here rather than in ../all/configAll.h * (as is more usual) because the stack size depends on the interrupt * structure of the BSP. */ #define ISR_STACK_SIZE 0x2000 /* size of ISR stack, in bytes */ #define INCLUDE_PCI_OLD_CONFIG_ROUTINES #define INCLUDE_SYS_HW_INIT_0 #define SYS_HW_INIT_0() (sysHwInit0()) #ifdef _WRS_CONFIG_SMP # define INCLUDE_VXIPI #endif /* _WRS_CONFIG_SMP */ #define INCLUDE_SHELL #define INCLUDE_SYM_TBL #define INCLUDE_SYM_TBL_INIT /*#define INCLUDE_STANDALONE_SYM_TBL*/ #define INCLUDE_ISR_OBJECTS #ifdef __cplusplus } #endif #endif /* __INCconfigh */ #if defined(PRJ_BUILD) #include "prjParams.h" #endif /* PRJ_BUILD */