qemu-x86.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
  4. */
  5. /*
  6. * board/config.h - configuration options, board specific
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #include <linux/sizes.h>
  11. #define BOOT_TARGET_DEVICES(func) \
  12. func(USB, usb, 0) \
  13. func(SCSI, scsi, 0) \
  14. func(VIRTIO, virtio, 0) \
  15. func(IDE, ide, 0) \
  16. func(DHCP, dhcp, na)
  17. #include <config_distro_bootcmd.h>
  18. #include <configs/x86-common.h>
  19. #define CONFIG_SYS_MONITOR_LEN (1 << 20)
  20. #define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,i8042-kbd\0" \
  21. "stdout=serial,vidconsole\0" \
  22. "stderr=serial,vidconsole\0"
  23. /*
  24. * ATA/SATA support for QEMU x86 targets
  25. * - Only legacy IDE controller is supported for QEMU '-M pc' target
  26. * - AHCI controller is supported for QEMU '-M q35' target
  27. */
  28. #define CONFIG_SYS_IDE_MAXBUS 2
  29. #define CONFIG_SYS_IDE_MAXDEVICE 4
  30. #define CONFIG_SYS_ATA_BASE_ADDR 0
  31. #define CONFIG_SYS_ATA_DATA_OFFSET 0
  32. #define CONFIG_SYS_ATA_REG_OFFSET 0
  33. #define CONFIG_SYS_ATA_ALT_OFFSET 0
  34. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0
  35. #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170
  36. #define CONFIG_ATAPI
  37. #define CONFIG_SPL_BOARD_LOAD_IMAGE
  38. #endif /* __CONFIG_H */