linkstation.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. /*
  2. * Copyright (C) 2006 Mihai Georgian <u-boot@linuxnotincluded.org.uk>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  17. * MA 02111-1307 USA
  18. */
  19. #ifndef __CONFIG_H
  20. #define __CONFIG_H
  21. #if 0
  22. #define DEBUG
  23. #endif
  24. #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
  25. /*-----------------------------------------------------------------------
  26. * User configurable settings:
  27. * Mandatory settings:
  28. * CONFIG_IPADDR_LS - the IP address of the LinkStation
  29. * CONFIG_SERVERIP_LS - the address of the server for NFS/TFTP/DHCP/BOOTP
  30. * Optional settins:
  31. * CONFIG_NCIP_LS - the adress of the computer running net console
  32. * if not configured, it will be set to
  33. * CONFIG_SERVERIP_LS
  34. */
  35. #define CONFIG_IPADDR_LS 192.168.11.150
  36. #define CONFIG_SERVERIP_LS 192.168.11.149
  37. #if !defined(CONFIG_IPADDR_LS) || !defined(CONFIG_SERVERIP_LS)
  38. #error Both CONFIG_IPADDR_LS and CONFIG_SERVERIP_LS must be defined
  39. #endif
  40. #if !defined(CONFIG_NCIP_LS)
  41. #define CONFIG_NCIP_LS CONFIG_SERVERIP_LS
  42. #endif
  43. /*----------------------------------------------------------------------
  44. * DO NOT CHANGE ANYTHING BELOW, UNLESS YOU KNOW WHAT YOU ARE DOING
  45. *---------------------------------------------------------------------*/
  46. #define CONFIG_MPC8245 1
  47. #define CONFIG_LINKSTATION 1
  48. /*---------------------------------------
  49. * Supported models
  50. *
  51. * LinkStation HDLAN /KuroBox Standard (CONFIG_HLAN)
  52. * LinkStation old model (CONFIG_LAN) - totally untested
  53. * LinkStation HGLAN / KuroBox HG (CONFIG_HGLAN)
  54. *
  55. * Models not supported yet
  56. * TeraStatin (CONFIG_HTGL)
  57. */
  58. #if defined(CONFIG_HLAN) || defined(CONFIG_LAN)
  59. #define CONFIG_IDENT_STRING " LinkStation / KuroBox"
  60. #elif defined(CONFIG_HGLAN)
  61. #define CONFIG_IDENT_STRING " LinkStation HG / KuroBox HG"
  62. #elif defined(CONFIG_HTGL)
  63. #define CONFIG_IDENT_STRING " TeraStation"
  64. #else
  65. #error No LinkStation model defined
  66. #endif
  67. #define CONFIG_BOOTDELAY 5
  68. #define CONFIG_ZERO_BOOTDELAY_CHECK
  69. #undef CONFIG_BOOT_RETRY_TIME
  70. #define CONFIG_AUTOBOOT_KEYED
  71. #define CONFIG_AUTOBOOT_PROMPT "Boot in %02d seconds ('s' to stop)..."
  72. #define CONFIG_AUTOBOOT_STOP_STR "s"
  73. #define CONFIG_CMD_IDE
  74. #define CONFIG_CMD_PCI
  75. #define CONFIG_CMD_DHCP
  76. #define CONFIG_CMD_PING
  77. #define CONFIG_CMD_EXT2
  78. #define CONFIG_BOOTP_MASK CONFIG_BOOTP_ALL
  79. #define CONFIG_OF_LIBFDT 1
  80. #define OF_CPU "PowerPC,603e"
  81. #define OF_SOC "soc10x@80000000"
  82. #define OF_STDOUT_PATH "/soc10x/serial@80004600"
  83. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  84. #include <config_cmd_default.h>
  85. /*
  86. * Miscellaneous configurable options
  87. */
  88. #define CFG_LONGHELP /* undef to save memory */
  89. #define CFG_PROMPT "=> " /* Monitor Command Prompt */
  90. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  91. #define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
  92. #define CFG_MAXARGS 16 /* Max number of command args */
  93. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  94. #define CFG_LOAD_ADDR 0x00800000 /* Default load address: 8 MB */
  95. #define CONFIG_BOOTCOMMAND "run bootcmd1"
  96. #define CONFIG_BOOTARGS "root=/dev/sda1 console=ttyS1,57600 netconsole=@192.168.1.7/eth0,@192.168.1.1/00:50:BF:A4:59:71 rtc-rs5c372.probe=0,0x32 debug"
  97. #define CONFIG_NFSBOOTCOMMAND "bootp;run nfsargs;bootm"
  98. #define CFG_CONSOLE_IS_IN_ENV
  99. #define XMK_STR(x) #x
  100. #define MK_STR(x) XMK_STR(x)
  101. #if defined(CONFIG_HLAN) || defined(CONFIG_LAN)
  102. #define UBFILE "share/u-boot/u-boot-hd.flash.bin"
  103. #elif defined(CONFIG_HGLAN)
  104. #define UBFILE "share/u-boot/u-boot-hg.flash.bin"
  105. #elif defined(CONFIG_HTGL)
  106. #define UBFILE "share/u-boot/u-boot-ht.flash.bin"
  107. #else
  108. #error No LinkStation model defined
  109. #endif
  110. #define CONFIG_EXTRA_ENV_SETTINGS \
  111. "autoload=no\0" \
  112. "stdin=nc\0" \
  113. "stdout=nc\0" \
  114. "stderr=nc\0" \
  115. "ipaddr="MK_STR(CONFIG_IPADDR_LS)"\0" \
  116. "netmask=255.255.255.0\0" \
  117. "serverip="MK_STR(CONFIG_SERVERIP_LS)"\0" \
  118. "ncip="MK_STR(CONFIG_NCIP_LS)"\0" \
  119. "netretry=no\0" \
  120. "nc=setenv stdin nc;setenv stdout nc;setenv stderr nc\0" \
  121. "ser=setenv stdin serial;setenv stdout serial;setenv stderr serial\0" \
  122. "ldaddr=800000\0" \
  123. "hdpart=0:1\0" \
  124. "hdfile=boot/uImage\0" \
  125. "hdload=echo Loading ${hdpart}:${hdfile};ext2load ide ${hdpart} ${ldaddr} ${hdfile};ext2load ide ${hdpart} 7f0000 boot/kuroboxHG.dtb\0" \
  126. "boothd=setenv bootargs " CONFIG_BOOTARGS ";bootm ${ldaddr} - 7f0000\0" \
  127. "hdboot=run hdload;run boothd\0" \
  128. "flboot=setenv bootargs root=/dev/hda1;bootm ffc00000\0" \
  129. "emboot=setenv bootargs root=/dev/ram0;bootm ffc00000\0" \
  130. "nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} " \
  131. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off\0" \
  132. "bootretry=30\0" \
  133. "bootcmd1=run hdboot;run flboot\0" \
  134. "bootcmd2=run flboot\0" \
  135. "bootcmd3=run emboot\0" \
  136. "writeng=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4e474e47 1;cp.b 800000 fff70000 4\0" \
  137. "writeok=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4f4b4f4b 1;cp.b 800000 fff70000 4\0" \
  138. "ubpart=0:3\0" \
  139. "ubfile="UBFILE"\0" \
  140. "ubload=echo Loading ${ubpart}:${ubfile};ext2load ide ${ubpart} ${ldaddr} ${ubfile}\0" \
  141. "ubsaddr=fff00000\0" \
  142. "ubeaddr=fff2ffff\0" \
  143. "ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldaddr} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize}\0" \
  144. "upgrade=run ubload ubflash\0"
  145. /*-----------------------------------------------------------------------
  146. * PCI stuff
  147. */
  148. #define CONFIG_PCI
  149. /* Verified: CONFIG_PCI_PNP doesn't work */
  150. #undef CONFIG_PCI_PNP
  151. #define CONFIG_PCI_SCAN_SHOW
  152. #ifndef CONFIG_PCI_PNP
  153. /* Keep the following defines in sync with the BAT mappings */
  154. #define PCI_ETH_IOADDR 0xbfff00
  155. #define PCI_ETH_MEMADDR 0xbffffc00
  156. #define PCI_IDE_IOADDR 0xbffed0
  157. #define PCI_IDE_MEMADDR 0xbffffb00
  158. #define PCI_USB0_IOADDR 0
  159. #define PCI_USB0_MEMADDR 0xbfffe000
  160. #define PCI_USB1_IOADDR 0
  161. #define PCI_USB1_MEMADDR 0xbfffd000
  162. #define PCI_USB2_IOADDR 0
  163. #define PCI_USB2_MEMADDR 0xbfffcf00
  164. #endif
  165. /*-----------------------------------------------------------------------
  166. * Ethernet stuff
  167. */
  168. #define CONFIG_NET_MULTI
  169. #if defined(CONFIG_LAN) || defined(CONFIG_HLAN)
  170. #define CONFIG_TULIP
  171. #define CONFIG_TULIP_USE_IO
  172. #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
  173. #define CONFIG_RTL8169
  174. #endif
  175. #define CONFIG_NET_RETRY_COUNT 5
  176. #define CONFIG_NETCONSOLE
  177. /*-----------------------------------------------------------------------
  178. * Start addresses for the final memory configuration
  179. * (Set up by the startup code)
  180. * Please note that CFG_SDRAM_BASE _must_ start at 0
  181. */
  182. #define CFG_SDRAM_BASE 0x00000000
  183. #define CFG_FLASH_BASE 0xFFC00000
  184. #define CFG_FLASH_SIZE 0x00400000
  185. #define CFG_MONITOR_BASE TEXT_BASE
  186. #define CFG_RESET_ADDRESS 0xFFF00100
  187. #define CFG_EUMB_ADDR 0x80000000
  188. #define CFG_PCI_MEM_ADDR 0xB0000000
  189. #define CFG_MISC_REGION_ADDR 0xFE000000
  190. #define CFG_MONITOR_LEN 0x00040000 /* 256 kB */
  191. #define CFG_MALLOC_LEN (512 << 10) /* Reserve some kB for malloc() */
  192. #define CFG_MEMTEST_START 0x00100000 /* memtest works on */
  193. #define CFG_MEMTEST_END 0x00800000 /* 1M ... 8M in DRAM */
  194. /* Maximum amount of RAM */
  195. #if defined(CONFIG_HLAN) || defined(CONFIG_LAN)
  196. #define CFG_MAX_RAM_SIZE 0x04000000 /* 64MB of SDRAM */
  197. #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
  198. #define CFG_MAX_RAM_SIZE 0x08000000 /* 128MB of SDRAM */
  199. #else
  200. #error Unknown LinkStation type
  201. #endif
  202. /*-----------------------------------------------------------------------
  203. * Change TEXT_BASE in bord/linkstation/config.mk to get a RAM build
  204. *
  205. * RAM based builds are for testing purposes. A Linux module, uloader.o,
  206. * exists to load U-Boot and pass control to it
  207. *
  208. * Always do "make clean" after changing the build type
  209. */
  210. #if CFG_MONITOR_BASE < CFG_FLASH_BASE
  211. #define CFG_RAMBOOT
  212. #endif
  213. /*-----------------------------------------------------------------------
  214. * Definitions for initial stack pointer and data area
  215. */
  216. #if 1 /* RAM is available when the first C function is called */
  217. #define CFG_INIT_RAM_ADDR (CFG_SDRAM_BASE + CFG_MAX_RAM_SIZE - 0x1000)
  218. #else
  219. #define CFG_INIT_RAM_ADDR 0x40000000
  220. #endif
  221. #define CFG_INIT_RAM_END 0x1000
  222. #define CFG_GBL_DATA_SIZE 128
  223. #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  224. /*----------------------------------------------------------------------
  225. * Serial configuration
  226. */
  227. #define CONFIG_CONS_INDEX 1
  228. #define CONFIG_BAUDRATE 57600
  229. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  230. #define CFG_NS16550
  231. #define CFG_NS16550_SERIAL
  232. #define CFG_NS16550_REG_SIZE 1
  233. #define CFG_NS16550_CLK get_bus_freq(0)
  234. #define CFG_NS16550_COM1 (CFG_EUMB_ADDR + 0x4600) /* Console port */
  235. #define CFG_NS16550_COM2 (CFG_EUMB_ADDR + 0x4500) /* AVR port */
  236. /*
  237. * Low Level Configuration Settings
  238. * (address mappings, register initial values, etc.)
  239. * You should know what you are doing if you make changes here.
  240. * For the detail description refer to the MPC8245 user's manual.
  241. *
  242. * Unless indicated otherwise, the values are
  243. * taken from the orignal Linkstation boot code
  244. *
  245. * Most of the low level configuration setttings are normally used
  246. * in cpu/mpc824x/cpu_init.c which is NOT used by this implementation.
  247. * Low level initialisation is done in board/linkstation/early_init.S
  248. * The values below are included for reference purpose only
  249. */
  250. /* FIXME: 32.768 MHz is the crystal frequency but */
  251. /* the real frequency is lower by about 0.75% */
  252. #define CONFIG_SYS_CLK_FREQ 32768000
  253. #define CFG_HZ 1000
  254. /* Bit-field values for MCCR1. */
  255. #define CFG_ROMNAL 0
  256. #define CFG_ROMFAL 11
  257. #define CFG_BANK0_ROW 2 /* Only bank 0 used: 13 x n x 4 */
  258. #define CFG_BANK1_ROW 0
  259. #define CFG_BANK2_ROW 0
  260. #define CFG_BANK3_ROW 0
  261. #define CFG_BANK4_ROW 0
  262. #define CFG_BANK5_ROW 0
  263. #define CFG_BANK6_ROW 0
  264. #define CFG_BANK7_ROW 0
  265. /* Bit-field values for MCCR2. */
  266. #define CFG_TSWAIT 0
  267. #if defined(CONFIG_LAN) || defined(CONFIG_HLAN)
  268. #define CFG_REFINT 0x15e0
  269. #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
  270. #define CFG_REFINT 0x1580
  271. #endif
  272. /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4. */
  273. #define CFG_BSTOPRE 0x91c
  274. /* Bit-field values for MCCR3. */
  275. #define CFG_REFREC 7
  276. /* Bit-field values for MCCR4. */
  277. #define CFG_PRETOACT 2
  278. #define CFG_ACTTOPRE 2 /* Original value was 2 */
  279. #define CFG_ACTORW 2
  280. #if defined(CONFIG_LAN) || defined(CONFIG_HLAN)
  281. #define CFG_SDMODE_CAS_LAT 2 /* For 100MHz bus */
  282. /*#define CFG_SDMODE_BURSTLEN 3*/
  283. #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
  284. #define CFG_SDMODE_CAS_LAT 3 /* For 133MHz bus */
  285. /*#define CFG_SDMODE_BURSTLEN 2*/
  286. #endif
  287. #define CFG_REGISTERD_TYPE_BUFFER 1
  288. #define CFG_EXTROM 1 /* Original setting but there is no EXTROM */
  289. #define CFG_REGDIMM 0
  290. #define CFG_DBUS_SIZE2 1
  291. #define CFG_SDMODE_WRAP 0
  292. #define CFG_PGMAX 0x32 /* All boards use this setting. Original 0x92 */
  293. #define CFG_SDRAM_DSCD 0x30
  294. /* Memory bank settings.
  295. * Only bits 20-29 are actually used from these vales to set the
  296. * start/end addresses. The upper two bits will always be 0, and the lower
  297. * 20 bits will be 0x00000 for a start address, or 0xfffff for an end
  298. * address. Refer to the MPC8240 book.
  299. */
  300. #define CFG_BANK0_START 0x00000000
  301. #define CFG_BANK0_END (CFG_MAX_RAM_SIZE - 1)
  302. #define CFG_BANK0_ENABLE 1
  303. #define CFG_BANK1_START 0x3ff00000
  304. #define CFG_BANK1_END 0x3fffffff
  305. #define CFG_BANK1_ENABLE 0
  306. #define CFG_BANK2_START 0x3ff00000
  307. #define CFG_BANK2_END 0x3fffffff
  308. #define CFG_BANK2_ENABLE 0
  309. #define CFG_BANK3_START 0x3ff00000
  310. #define CFG_BANK3_END 0x3fffffff
  311. #define CFG_BANK3_ENABLE 0
  312. #define CFG_BANK4_START 0x3ff00000
  313. #define CFG_BANK4_END 0x3fffffff
  314. #define CFG_BANK4_ENABLE 0
  315. #define CFG_BANK5_START 0x3ff00000
  316. #define CFG_BANK5_END 0x3fffffff
  317. #define CFG_BANK5_ENABLE 0
  318. #define CFG_BANK6_START 0x3ff00000
  319. #define CFG_BANK6_END 0x3fffffff
  320. #define CFG_BANK6_ENABLE 0
  321. #define CFG_BANK7_START 0x3ff00000
  322. #define CFG_BANK7_END 0x3fffffff
  323. #define CFG_BANK7_ENABLE 0
  324. #define CFG_ODCR 0x15
  325. /*----------------------------------------------------------------------
  326. * Initial BAT mappings
  327. */
  328. /* NOTES:
  329. * 1) GUARDED and WRITETHROUGH not allowed in IBATS
  330. * 2) CACHEINHIBIT and WRITETHROUGH not allowed together in same BAT
  331. */
  332. /* SDRAM */
  333. #define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
  334. #define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
  335. #define CFG_DBAT0L CFG_IBAT0L
  336. #define CFG_DBAT0U CFG_IBAT0U
  337. /* EUMB: 1MB of address space */
  338. #define CFG_IBAT1L (CFG_EUMB_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
  339. #define CFG_IBAT1U (CFG_EUMB_ADDR | BATU_BL_1M | BATU_VS | BATU_VP)
  340. #define CFG_DBAT1L (CFG_IBAT1L | BATL_GUARDEDSTORAGE)
  341. #define CFG_DBAT1U CFG_IBAT1U
  342. /* PCI Mem: 256MB of address space */
  343. #define CFG_IBAT2L (CFG_PCI_MEM_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
  344. #define CFG_IBAT2U (CFG_PCI_MEM_ADDR | BATU_BL_256M | BATU_VS | BATU_VP)
  345. #define CFG_DBAT2L (CFG_IBAT2L | BATL_GUARDEDSTORAGE)
  346. #define CFG_DBAT2U CFG_IBAT2U
  347. /* PCI and local ROM/Flash: last 32MB of address space */
  348. #define CFG_IBAT3L (CFG_MISC_REGION_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
  349. #define CFG_IBAT3U (CFG_MISC_REGION_ADDR | BATU_BL_32M | BATU_VS | BATU_VP)
  350. #define CFG_DBAT3L (CFG_IBAT3L | BATL_GUARDEDSTORAGE)
  351. #define CFG_DBAT3U CFG_IBAT3U
  352. /*
  353. * For booting Linux, the board info and command line data
  354. * have to be in the first 8 MB of memory, since this is
  355. * the maximum mapped by the Linux kernel during initialization.
  356. *
  357. * FIXME: This doesn't appear to be true for the newer kernels
  358. * which map more that 8 MB
  359. */
  360. #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
  361. /*-----------------------------------------------------------------------
  362. * FLASH organization
  363. */
  364. #define CFG_FLASH_CFI /* The flash is CFI compatible */
  365. #define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
  366. #undef CFG_FLASH_PROTECTION
  367. #define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
  368. #define CFG_MAX_FLASH_BANKS 1 /* Max number of flash banks */
  369. #define CFG_MAX_FLASH_SECT 72 /* Max number of sectors per flash */
  370. #define CFG_FLASH_ERASE_TOUT 12000
  371. #define CFG_FLASH_WRITE_TOUT 1000
  372. #define CFG_FLASH_USE_BUFFER_WRITE 1 /* use buffered writes (20x faster) */
  373. #define CFG_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
  374. #define CFG_FLASH_QUIET_TEST 1 /* don't warn upon unknown flash */
  375. #define CFG_ENV_IS_IN_FLASH
  376. /*
  377. * The original LinkStation flash organisation uses
  378. * 448 kB (0xFFF00000 - 0xFFF6FFFF) for the boot loader
  379. * We use the last sector of this area to store the environment
  380. * which leaves max. 384 kB for the U-Boot itself
  381. */
  382. #define CFG_ENV_ADDR 0xFFF60000
  383. #define CFG_ENV_SIZE 0x00010000
  384. #define CFG_ENV_SECT_SIZE 0x00010000
  385. /*-----------------------------------------------------------------------
  386. * Cache Configuration
  387. */
  388. #define CFG_CACHELINE_SIZE 32
  389. #ifdef CONFIG_CMD_KGDB
  390. #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  391. #endif
  392. /*-----------------------------------------------------------------------
  393. * IDE/ATA definitions
  394. */
  395. #undef CONFIG_IDE_LED /* No IDE LED */
  396. #define CONFIG_IDE_RESET /* no reset for ide supported */
  397. #define CONFIG_IDE_PREINIT /* check for units */
  398. #define CONFIG_LBA48 /* 48 bit LBA supported */
  399. #if defined(CONFIG_LAN) || defined(CONFIG_HLAN) || defined(CONFIG_HGLAN)
  400. #define CFG_IDE_MAXBUS 1 /* Scan only 1 IDE bus */
  401. #define CFG_IDE_MAXDEVICE 1 /* Only 1 drive per IDE bus */
  402. #elif defined(CONFIG_HGTL)
  403. #define CFG_IDE_MAXBUS 2 /* Max. 2 IDE busses */
  404. #define CFG_IDE_MAXDEVICE 2 /* max. 2 drives per IDE bus */
  405. #else
  406. #error Config IDE: Unknown LinkStation type
  407. #endif
  408. #define CFG_ATA_BASE_ADDR 0
  409. #define CFG_ATA_DATA_OFFSET 0 /* Offset for data I/O */
  410. #define CFG_ATA_REG_OFFSET 0 /* Offset for normal registers */
  411. #define CFG_ATA_ALT_OFFSET 0 /* Offset for alternate registers */
  412. /*-----------------------------------------------------------------------
  413. * Partitions and file system
  414. */
  415. #define CONFIG_DOS_PARTITION
  416. /*-----------------------------------------------------------------------
  417. * Internal Definitions
  418. *
  419. * Boot Flags
  420. */
  421. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  422. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  423. #endif /* __CONFIG_H */