piix4.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Carsten Langgaard, [email protected]
  4. * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
  5. * Copyright (C) 2013 Imagination Technologies Ltd.
  6. *
  7. * Register definitions for Intel PIIX4 South Bridge Device.
  8. */
  9. #ifndef __ASM_MIPS_BOARDS_PIIX4_H
  10. #define __ASM_MIPS_BOARDS_PIIX4_H
  11. /* PIRQX Route Control */
  12. #define PIIX4_FUNC0_PIRQRC 0x60
  13. #define PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_DISABLE (1 << 7)
  14. #define PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_MASK 0xf
  15. #define PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_MAX 16
  16. /* SERIRQ Control */
  17. #define PIIX4_FUNC0_SERIRQC 0x64
  18. #define PIIX4_FUNC0_SERIRQC_EN (1 << 7)
  19. #define PIIX4_FUNC0_SERIRQC_CONT (1 << 6)
  20. /* Top Of Memory */
  21. #define PIIX4_FUNC0_TOM 0x69
  22. #define PIIX4_FUNC0_TOM_TOP_OF_MEMORY_MASK 0xf0
  23. /* Deterministic Latency Control */
  24. #define PIIX4_FUNC0_DLC 0x82
  25. #define PIIX4_FUNC0_DLC_USBPR_EN (1 << 2)
  26. #define PIIX4_FUNC0_DLC_PASSIVE_RELEASE_EN (1 << 1)
  27. #define PIIX4_FUNC0_DLC_DELAYED_TRANSACTION_EN (1 << 0)
  28. /* General Configuration */
  29. #define PIIX4_FUNC0_GENCFG 0xb0
  30. #define PIIX4_FUNC0_GENCFG_SERIRQ (1 << 16)
  31. /* IDE Timing */
  32. #define PIIX4_FUNC1_IDETIM_PRIMARY_LO 0x40
  33. #define PIIX4_FUNC1_IDETIM_PRIMARY_HI 0x41
  34. #define PIIX4_FUNC1_IDETIM_PRIMARY_HI_IDE_DECODE_EN (1 << 7)
  35. #define PIIX4_FUNC1_IDETIM_SECONDARY_LO 0x42
  36. #define PIIX4_FUNC1_IDETIM_SECONDARY_HI 0x43
  37. #define PIIX4_FUNC1_IDETIM_SECONDARY_HI_IDE_DECODE_EN (1 << 7)
  38. /* Power Management Configuration Space */
  39. #define PIIX4_FUNC3_PMBA 0x40
  40. #define PIIX4_FUNC3_PMREGMISC 0x80
  41. #define PIIX4_FUNC3_PMREGMISC_EN (1 << 0)
  42. /* Power Management IO Space */
  43. #define PIIX4_FUNC3IO_PMSTS 0x00
  44. #define PIIX4_FUNC3IO_PMSTS_PWRBTN_STS (1 << 8)
  45. #define PIIX4_FUNC3IO_PMCNTRL 0x04
  46. #define PIIX4_FUNC3IO_PMCNTRL_SUS_EN (1 << 13)
  47. #define PIIX4_FUNC3IO_PMCNTRL_SUS_TYP (0x7 << 10)
  48. #define PIIX4_FUNC3IO_PMCNTRL_SUS_TYP_SOFF (0x0 << 10)
  49. #define PIIX4_FUNC3IO_PMCNTRL_SUS_TYP_STR (0x1 << 10)
  50. /* Data for magic special PCI cycle */
  51. #define PIIX4_SUSPEND_MAGIC 0x00120002
  52. #endif /* __ASM_MIPS_BOARDS_PIIX4_H */