📄 acadia.h
字号:
"addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\ "flash_nfs=run nfsargs addip addtty;" \ "bootm ${kernel_addr}\0" \ "flash_self=run ramargs addip addtty;" \ "bootm ${kernel_addr} ${ramdisk_addr}\0" \ "net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;" \ "bootm\0" \ "rootpath=/opt/eldk/ppc_4xx\0" \ "bootfile=acadia/uImage\0" \ "kernel_addr=fff10000\0" \ "ramdisk_addr=fff20000\0" \ "initrd_high=30000000\0" \ "load=tftp 200000 acadia/u-boot.bin\0" \ "update=protect off fffc0000 ffffffff;era fffc0000 ffffffff;" \ "cp.b ${fileaddr} fffc0000 ${filesize};" \ "setenv filesize;saveenv\0" \ "upd=run load update\0" \ "nload=tftp 200000 acadia/u-boot-nand.bin\0" \ "nupdate=nand erase 0 60000;nand write 200000 0 60000;" \ "setenv filesize;saveenv\0" \ "nupd=run nload nupdate\0" \ "kozio=bootm ffc60000\0" \ ""#define CONFIG_BOOTCOMMAND "run flash_self"#if 0#define CONFIG_BOOTDELAY -1 /* autoboot disabled */#else#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */#endif#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */#define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */#define CONFIG_USB_OHCI#define CONFIG_USB_STORAGE/* Partitions */#define CONFIG_MAC_PARTITION#define CONFIG_DOS_PARTITION#define CONFIG_ISO_PARTITION#define CONFIG_SUPPORT_VFAT/* * BOOTP options */#define CONFIG_BOOTP_BOOTFILESIZE#define CONFIG_BOOTP_BOOTPATH#define CONFIG_BOOTP_GATEWAY#define CONFIG_BOOTP_HOSTNAME/* * Command line configuration. */#include <config_cmd_default.h>#define CONFIG_CMD_ASKENV#define CONFIG_CMD_DHCP#define CONFIG_CMD_DTT#define CONFIG_CMD_DIAG#define CONFIG_CMD_EEPROM#define CONFIG_CMD_ELF#define CONFIG_CMD_FAT#define CONFIG_CMD_I2C#define CONFIG_CMD_IRQ#define CONFIG_CMD_MII#define CONFIG_CMD_NAND#define CONFIG_CMD_NET#define CONFIG_CMD_NFS#define CONFIG_CMD_PCI#define CONFIG_CMD_PING#define CONFIG_CMD_REGINFO#define CONFIG_CMD_USB/* * No NOR on Acadia when NAND-booting */#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)#undef CONFIG_CMD_FLASH#undef CONFIG_CMD_IMLS#endif#undef CONFIG_WATCHDOG /* watchdog disabled *//*----------------------------------------------------------------------- * Miscellaneous configurable options *----------------------------------------------------------------------*/#define CFG_LONGHELP /* undef to save memory */#define CFG_PROMPT "=> " /* Monitor Command Prompt */#if defined(CONFIG_CMD_KGDB)#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */#else#define CFG_CBSIZE 256 /* Console I/O Buffer Size */#endif#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */#define CFG_MAXARGS 16 /* max number of command args */#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */#define CFG_MEMTEST_START 0x0400000 /* memtest works on */#define CFG_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */#define CFG_LOAD_ADDR 0x100000 /* default load address */#define CFG_EXTBDINFO 1 /* To use extended board_into (bd_t) */#define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */#define CONFIG_CMDLINE_EDITING 1 /* add command line history */#define CONFIG_LOOPW 1 /* enable loopw command */#define CONFIG_MX_CYCLIC 1 /* enable mdc/mwc commands */#define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */#define CONFIG_VERSION_VARIABLE 1 /* include version env variable *//* * For booting Linux, the board info and command line data * have to be in the first 8 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux *//*----------------------------------------------------------------------- * NAND FLASH *----------------------------------------------------------------------*/#define CFG_MAX_NAND_DEVICE 1#define NAND_MAX_CHIPS 1#define CFG_NAND_BASE (CFG_NAND_ADDR + CFG_NAND_CS)#define CFG_NAND_SELECT_DEVICE 1 /* nand driver supports mutipl. chips *//*----------------------------------------------------------------------- * Cache Configuration */#define CFG_DCACHE_SIZE 16384 /* For AMCC 405EZ CPU */#define CFG_CACHELINE_SIZE 32 /* ... */#if defined(CONFIG_CMD_KGDB)#define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value*/#endif/*----------------------------------------------------------------------- * External Bus Controller (EBC) Setup *----------------------------------------------------------------------*/#if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)#define CFG_NAND_CS 3/* Memory Bank 0 (Flash) initialization */#define CFG_EBC_PB0AP 0x03337200#define CFG_EBC_PB0CR 0xfe0bc000/* Memory Bank 3 (NAND-FLASH) initialization */#define CFG_EBC_PB3AP 0x018003c0#define CFG_EBC_PB3CR (CFG_NAND_ADDR | 0x1c000)/* Just initial configuration for CRAM. Will be changed in memory.c to sync mode*//* Memory Bank 1 (CRAM) initialization */#define CFG_EBC_PB1AP 0x030400c0#define CFG_EBC_PB1CR 0x000bc000/* Memory Bank 2 (CRAM) initialization */#define CFG_EBC_PB2AP 0x030400c0#define CFG_EBC_PB2CR 0x020bc000#else#define CFG_NAND_CS 0 /* NAND chip connected to CSx *//* Memory Bank 0 (NAND-FLASH) initialization */#define CFG_EBC_PB0AP 0x018003c0#define CFG_EBC_PB0CR (CFG_NAND_ADDR | 0x1c000)/* * When NAND-booting the CRAM EBC setup must be done in sync mode, since the * NAND-SPL already initialized the CRAM and EBC to sync mode. *//* Memory Bank 1 (CRAM) initialization */#define CFG_EBC_PB1AP 0x9C0201C0#define CFG_EBC_PB1CR 0x000bc000/* Memory Bank 2 (CRAM) initialization */#define CFG_EBC_PB2AP 0x9C0201C0#define CFG_EBC_PB2CR 0x020bc000#endif/* Memory Bank 4 (CPLD) initialization */#define CFG_EBC_PB4AP 0x04006000#define CFG_EBC_PB4CR (CFG_CPLD_BASE | 0x18000)#define CFG_EBC_CFG 0xf8400000/*----------------------------------------------------------------------- * GPIO Setup *----------------------------------------------------------------------*/#define CFG_GPIO_CRAM_CLK 8#define CFG_GPIO_CRAM_WAIT 9 /* GPIO-In */#define CFG_GPIO_CRAM_ADV 10#define CFG_GPIO_CRAM_CRE (32 + 21) /* GPIO-Out *//*----------------------------------------------------------------------- * Definitions for GPIO_0 setup (PPC405EZ specific) * * GPIO0[0-2] - External Bus Controller CS_4 - CS_6 Outputs * GPIO0[3] - NAND FLASH Controller CE3 (NFCE3) Output * GPIO0[4] - External Bus Controller Hold Input * GPIO0[5] - External Bus Controller Priority Input * GPIO0[6] - External Bus Controller HLDA Output * GPIO0[7] - External Bus Controller Bus Request Output * GPIO0[8] - CRAM Clk Output * GPIO0[9] - External Bus Controller Ready Input * GPIO0[10] - CRAM Adv Output * GPIO0[11-24] - NAND Flash Control Data -> Bypasses GPIO when enabled * GPIO0[25] - External DMA Request Input * GPIO0[26] - External DMA EOT I/O * GPIO0[25] - External DMA Ack_n Output * GPIO0[17-23] - External Interrupts IRQ0 - IRQ6 inputs * GPIO0[28-30] - Trace Outputs / PWM Inputs * GPIO0[31] - PWM_8 I/O */#define CFG_GPIO0_TCR 0xC0A00000#define CFG_GPIO0_OSRL 0x50004400#define CFG_GPIO0_OSRH 0x02000055#define CFG_GPIO0_ISR1L 0x00001000#define CFG_GPIO0_ISR1H 0x00000055#define CFG_GPIO0_TSRL 0x02000000#define CFG_GPIO0_TSRH 0x00000055/*----------------------------------------------------------------------- * Definitions for GPIO_1 setup (PPC405EZ specific) * * GPIO1[0-6] - PWM_9 to PWM_15 I/O * GPIO1[7] - PWM_DIV_CLK (Out) / IRQ4 Input * GPIO1[8] - TS5 Output / DAC_IP_TRIG Input * GPIO1[9] - TS6 Output / ADC_IP_TRIG Input * GPIO1[10-12] - UART0 Control Inputs * GPIO1[13] - UART0_DTR_N Output/IEEE_1588_TS Output/TMRCLK Input * GPIO1[14] - UART0_RTS_N Output/SPI_SS_2_N Output * GPIO1[15] - SPI_SS_3_N Output/UART0_RI_N Input * GPIO1[16] - SPI_SS_1_N Output * GPIO1[17-20] - Trace Output/External Interrupts IRQ0 - IRQ3 inputs */#define CFG_GPIO1_TCR 0xFFFF8414#define CFG_GPIO1_OSRL 0x40000110#define CFG_GPIO1_OSRH 0x55455555#define CFG_GPIO1_ISR1L 0x15555445#define CFG_GPIO1_ISR1H 0x00000000#define CFG_GPIO1_TSRL 0x00000000#define CFG_GPIO1_TSRH 0x00000000/* * Internal Definitions * * Boot Flags */#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */#define BOOTFLAG_WARM 0x02 /* Software reboot */#if defined(CONFIG_CMD_KGDB) #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */#endif#endif /* __CONFIG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -