qemu-mips64.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2003
  4. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. */
  6. /*
  7. * This file contains the configuration parameters for qemu-mips64 target.
  8. */
  9. #ifndef __CONFIG_H
  10. #define __CONFIG_H
  11. #define CONFIG_QEMU_MIPS
  12. #define CONFIG_TIMESTAMP /* Print image info with timestamp */
  13. #define CONFIG_EXTRA_ENV_SETTINGS \
  14. "addmisc=setenv bootargs ${bootargs} " \
  15. "console=ttyS0,${baudrate} " \
  16. "panic=1\0" \
  17. "bootfile=/tftpboot/vmlinux\0" \
  18. "load=tftp ffffffff80500000 ${u-boot}\0" \
  19. ""
  20. #define CONFIG_BOOTCOMMAND "bootp;bootelf"
  21. /*
  22. * BOOTP options
  23. */
  24. #define CONFIG_BOOTP_BOOTFILESIZE
  25. /*
  26. * Command line configuration.
  27. */
  28. #define CONFIG_DRIVER_NE2000
  29. #define CONFIG_DRIVER_NE2000_BASE 0xffffffffb4000300
  30. #define CONFIG_SYS_NS16550_SERIAL
  31. #define CONFIG_SYS_NS16550_REG_SIZE 1
  32. #define CONFIG_SYS_NS16550_CLK 115200
  33. #define CONFIG_SYS_NS16550_COM1 0xffffffffb40003f8
  34. #ifdef CONFIG_SYS_BIG_ENDIAN
  35. #define CONFIG_IDE_SWAP_IO
  36. #endif
  37. #define CONFIG_SYS_IDE_MAXBUS 2
  38. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0
  39. #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170
  40. #define CONFIG_SYS_ATA_DATA_OFFSET 0
  41. #define CONFIG_SYS_ATA_REG_OFFSET 0
  42. #define CONFIG_SYS_ATA_BASE_ADDR 0xffffffffb4000000
  43. #define CONFIG_SYS_IDE_MAXDEVICE 4
  44. /*
  45. * Miscellaneous configurable options
  46. */
  47. #define CONFIG_SYS_MALLOC_LEN (256 << 10)
  48. #define CONFIG_SYS_BOOTPARAMS_LEN 128*1024
  49. #define CONFIG_SYS_MHZ 132
  50. #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
  51. /* Cached addr */
  52. #define CONFIG_SYS_SDRAM_BASE 0xffffffff80000000
  53. /* default load address */
  54. #define CONFIG_SYS_LOAD_ADDR 0xffffffff81000000
  55. #define CONFIG_SYS_MEMTEST_START 0xffffffff80100000
  56. #define CONFIG_SYS_MEMTEST_END 0xffffffff80800000
  57. /*-----------------------------------------------------------------------
  58. * FLASH and environment organization
  59. */
  60. /* The following #defines are needed to get flash environment right */
  61. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  62. #define CONFIG_SYS_INIT_SP_OFFSET 0x400000
  63. /* We boot from this flash, selected with dip switch */
  64. #define CONFIG_SYS_FLASH_BASE 0xffffffffbfc00000
  65. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  66. #define CONFIG_SYS_MAX_FLASH_SECT 128
  67. /* Address and size of Primary Environment Sector */
  68. #define CONFIG_ENV_OVERWRITE 1
  69. #define MEM_SIZE 128
  70. #endif /* __CONFIG_H */