scx200.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* linux/include/linux/scx200.h
  2. Copyright (c) 2001,2002 Christer Weinigel <wingel@nano-system.com>
  3. Defines for the National Semiconductor SCx200 Processors
  4. */
  5. /* Interesting stuff for the National Semiconductor SCx200 CPU */
  6. extern unsigned scx200_cb_base;
  7. #define scx200_cb_present() (scx200_cb_base!=0)
  8. /* F0 PCI Header/Bridge Configuration Registers */
  9. #define SCx200_DOCCS_BASE 0x78 /* DOCCS Base Address Register */
  10. #define SCx200_DOCCS_CTRL 0x7c /* DOCCS Control Register */
  11. /* GPIO Register Block */
  12. #define SCx200_GPIO_SIZE 0x2c /* Size of GPIO register block */
  13. /* General Configuration Block */
  14. #define SCx200_CB_BASE_FIXED 0x9000 /* Base fixed at 0x9000 according to errata? */
  15. /* Watchdog Timer */
  16. #define SCx200_WDT_OFFSET 0x00 /* offset within configuration block */
  17. #define SCx200_WDT_SIZE 0x05 /* size */
  18. #define SCx200_WDT_WDTO 0x00 /* Time-Out Register */
  19. #define SCx200_WDT_WDCNFG 0x02 /* Configuration Register */
  20. #define SCx200_WDT_WDSTS 0x04 /* Status Register */
  21. #define SCx200_WDT_WDSTS_WDOVF (1<<0) /* Overflow bit */
  22. /* High Resolution Timer */
  23. #define SCx200_TIMER_OFFSET 0x08
  24. #define SCx200_TIMER_SIZE 0x06
  25. /* Clock Generators */
  26. #define SCx200_CLOCKGEN_OFFSET 0x10
  27. #define SCx200_CLOCKGEN_SIZE 0x10
  28. /* Pin Multiplexing and Miscellaneous Configuration Registers */
  29. #define SCx200_MISC_OFFSET 0x30
  30. #define SCx200_MISC_SIZE 0x10
  31. #define SCx200_PMR 0x30 /* Pin Multiplexing Register */
  32. #define SCx200_MCR 0x34 /* Miscellaneous Configuration Register */
  33. #define SCx200_INTSEL 0x38 /* Interrupt Selection Register */
  34. #define SCx200_IID 0x3c /* IA On a Chip Identification Number Reg */
  35. #define SCx200_REV 0x3d /* Revision Register */
  36. #define SCx200_CBA 0x3e /* Configuration Base Address Register */
  37. #define SCx200_CBA_SCRATCH 0x64 /* Configuration Base Address Scratchpad */