pb1x00.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*
  2. * (C) Copyright 2003
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. /*
  8. * This file contains the configuration parameters for the dbau1x00 board.
  9. */
  10. #ifndef __CONFIG_H
  11. #define __CONFIG_H
  12. #define CONFIG_PB1X00 1
  13. #define CONFIG_SOC_AU1X00 1 /* alchemy series cpu */
  14. #ifdef CONFIG_PB1000
  15. #define CONFIG_SOC_AU1000 1
  16. #else
  17. #ifdef CONFIG_PB1100
  18. #define CONFIG_SOC_AU1100 1
  19. #else
  20. #ifdef CONFIG_PB1500
  21. #define CONFIG_SOC_AU1500 1
  22. #else
  23. #error "No valid board set"
  24. #endif
  25. #endif
  26. #endif
  27. #define CONFIG_BAUDRATE 115200
  28. #define CONFIG_TIMESTAMP /* Print image info with timestamp */
  29. #undef CONFIG_BOOTARGS
  30. #define CONFIG_EXTRA_ENV_SETTINGS \
  31. "addmisc=setenv bootargs ${bootargs} " \
  32. "console=ttyS0,${baudrate} " \
  33. "panic=1\0" \
  34. "bootfile=/vmlinux.img\0" \
  35. "load=tftp 80500000 ${u-boot}\0" \
  36. ""
  37. /* Boot from NFS root */
  38. #define CONFIG_BOOTCOMMAND "bootp; setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm"
  39. /*
  40. * Miscellaneous configurable options
  41. */
  42. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  43. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  44. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
  45. #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
  46. #define CONFIG_SYS_MALLOC_LEN 128*1024
  47. #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024
  48. #define CONFIG_SYS_MIPS_TIMER_FREQ 396000000
  49. #define CONFIG_SYS_SDRAM_BASE 0x80000000 /* Cached addr */
  50. #define CONFIG_SYS_LOAD_ADDR 0x81000000 /* default load address */
  51. #define CONFIG_SYS_MEMTEST_START 0x80100000
  52. #undef CONFIG_SYS_MEMTEST_START
  53. #define CONFIG_SYS_MEMTEST_START 0x80200000
  54. #define CONFIG_SYS_MEMTEST_END 0x83800000
  55. /*-----------------------------------------------------------------------
  56. * FLASH and environment organization
  57. */
  58. #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of memory banks */
  59. #define CONFIG_SYS_MAX_FLASH_SECT (128) /* max number of sectors on one chip */
  60. #define PHYS_FLASH_1 0xbec00000 /* Flash Bank #1 */
  61. #define PHYS_FLASH_2 0xbfc00000 /* Flash Bank #2 */
  62. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  63. #define CONFIG_SYS_MONITOR_LEN (192 << 10)
  64. #define CONFIG_SYS_INIT_SP_OFFSET 0x4000000
  65. /* We boot from this flash, selected with dip switch */
  66. #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_2
  67. /* timeout values are in ticks */
  68. #define CONFIG_SYS_FLASH_ERASE_TOUT (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
  69. #define CONFIG_SYS_FLASH_WRITE_TOUT (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
  70. #define CONFIG_ENV_IS_NOWHERE 1
  71. /* Address and size of Primary Environment Sector */
  72. #define CONFIG_ENV_ADDR 0xB0030000
  73. #define CONFIG_ENV_SIZE 0x10000
  74. #define CONFIG_FLASH_16BIT
  75. #define CONFIG_NR_DRAM_BANKS 2
  76. #define CONFIG_MEMSIZE_IN_BYTES
  77. /*---USB -------------------------------------------*/
  78. #if 0
  79. #define CONFIG_USB_OHCI
  80. #define CONFIG_DOS_PARTITION
  81. #endif
  82. /*---ATA PCMCIA ------------------------------------*/
  83. #if 0
  84. #define CONFIG_SYS_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
  85. #define CONFIG_SYS_PCMCIA_MEM_ADDR 0x20000000
  86. #define CONFIG_PCMCIA_SLOT_A
  87. #define CONFIG_ATAPI 1
  88. #define CONFIG_MAC_PARTITION 1
  89. /* We run CF in "true ide" mode or a harddrive via pcmcia */
  90. #define CONFIG_IDE_PCMCIA 1
  91. /* We only support one slot for now */
  92. #define CONFIG_SYS_IDE_MAXBUS 1 /* max. 1 IDE bus */
  93. #define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
  94. #undef CONFIG_IDE_LED /* LED for ide not supported */
  95. #undef CONFIG_IDE_RESET /* reset for ide not supported */
  96. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x0000
  97. #define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_PCMCIA_MEM_ADDR
  98. /* Offset for data I/O */
  99. #define CONFIG_SYS_ATA_DATA_OFFSET 8
  100. /* Offset for normal register accesses */
  101. #define CONFIG_SYS_ATA_REG_OFFSET 0
  102. /* Offset for alternate registers */
  103. #define CONFIG_SYS_ATA_ALT_OFFSET 0x0100
  104. #endif
  105. /*
  106. * BOOTP options
  107. */
  108. #define CONFIG_BOOTP_BOOTFILESIZE
  109. #define CONFIG_BOOTP_BOOTPATH
  110. #define CONFIG_BOOTP_GATEWAY
  111. #define CONFIG_BOOTP_HOSTNAME
  112. /*
  113. * Command line configuration.
  114. */
  115. #undef CONFIG_CMD_IDE
  116. #undef CONFIG_CMD_BEDBUG
  117. #endif /* __CONFIG_H */