|
|
@ -18,12 +18,12 @@ extern "C" { |
|
|
|
/* BSP version/revision identification, before configAll.h */ |
|
|
|
|
|
|
|
#define BSP_VERSION "1.0" |
|
|
|
#define BSP_REV "/0" /* 0 for first revision */ |
|
|
|
#define BSP_REV ".0" /* 0 for first revision */ |
|
|
|
|
|
|
|
#include <vsbConfig.h> |
|
|
|
#include <configAll.h> |
|
|
|
|
|
|
|
#define SYS_MODEL "FT2000/4 BOARD" |
|
|
|
#define SYS_MODEL "FT20004/KM02 BOARD" |
|
|
|
|
|
|
|
#define INCLUDE_VXBUS |
|
|
|
|
|
|
@ -38,16 +38,23 @@ extern "C" { |
|
|
|
#undef DRV_ARM_GEN_AUX_TIMER |
|
|
|
#define INCLUDE_SYSCLK_INIT |
|
|
|
#define INCLUDE_PARAM_SYS |
|
|
|
#define DRV_FTCAN |
|
|
|
#define INCLUDE_FT_SD |
|
|
|
#define DRV_FTI2C |
|
|
|
#undef DRV_FTCAN |
|
|
|
#undef INCLUDE_FT_SD |
|
|
|
#undef DRV_FTI2C |
|
|
|
#define DRV_FTQSPI |
|
|
|
#define INCLUDE_SPI_BUS |
|
|
|
#define DRV_SPIFLASH_SP25 |
|
|
|
#undef INCLUDE_YT8521PHY |
|
|
|
#define 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 usr_ipftps_authenticate_nopasswd |
|
|
|
#define TFFS_FLASH_MOUNT_POINTOT "/tffs0" |
|
|
|
|
|
|
|
/* ARM PrimeCell SIO for VxBus */ |
|
|
|
#define INCLUDE_SIO_UTILS |
|
|
|
|
|
|
@ -60,7 +67,9 @@ extern "C" { |
|
|
|
#define INCLUDE_USB_GEN2_STORAGE_INIT |
|
|
|
#endif |
|
|
|
|
|
|
|
#define INCLUDE_DRV_STORAGE_AHCI |
|
|
|
#define INCLUDE_TFFS |
|
|
|
|
|
|
|
#undef INCLUDE_DRV_STORAGE_AHCI |
|
|
|
#if defined(INCLUDE_USB) || defined(INCLUDE_TFFS) || \ |
|
|
|
defined(INCLUDE_DRV_STORAGE_PIIX) || defined(INCLUDE_DRV_STORAGE_AHCI) |
|
|
|
#define INCLUDE_DOSFS |
|
|
@ -86,7 +95,7 @@ extern "C" { |
|
|
|
/*#define INCLUDE_HRFS*/ |
|
|
|
#define DRV_VXBEND_FTGMAC |
|
|
|
|
|
|
|
#define DRV_PCIBUS_FT |
|
|
|
#undef DRV_PCIBUS_FT |
|
|
|
|
|
|
|
#ifdef DRV_PCIBUS_FT |
|
|
|
# define INCLUDE_PCI_BUS |
|
|
@ -122,7 +131,7 @@ extern "C" { |
|
|
|
#define INCLUDE_VXB_CMDLINE |
|
|
|
#endif /* INCLUDE_VXBUS */ |
|
|
|
|
|
|
|
#define FORCE_DEFAULT_BOOT_LINE |
|
|
|
#undef FORCE_DEFAULT_BOOT_LINE |
|
|
|
|
|
|
|
#define DEFAULT_BOOT_LINE \ |
|
|
|
"gmac(0,0) host:/vxWorks " \ |
|
|
@ -149,7 +158,7 @@ extern "C" { |
|
|
|
|
|
|
|
#define LOCAL_MEM_LOCAL_ADRS 0x80000000 |
|
|
|
#define LOCAL_MEM_BUS_ADRS 0x80000000 |
|
|
|
#define LOCAL_MEM_SIZE 0x70000000 |
|
|
|
#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 */ |
|
|
@ -169,10 +178,9 @@ extern "C" { |
|
|
|
#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 (0x500000) |
|
|
|
|
|
|
|
#define INCLUDE_TFFS |
|
|
|
#define SPI_BOOTROM_SIZE (0x400000) |
|
|
|
|
|
|
|
#define SPI_KERNEL_SIZE (0x600000) |
|
|
|
#ifdef INCLUDE_TFFS |
|
|
|
# define INCLUDE_TFFS_MOUNT |
|
|
|
# define INCLUDE_TFFS_SHOW |
|
|
@ -190,10 +198,16 @@ extern "C" { |
|
|
|
# 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 |
|
|
|
# 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*/ |
|
|
|
|
|
|
|