pq2ads.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * PQ2/mpc8260 board-specific stuff
  4. *
  5. * A collection of structures, addresses, and values associated with
  6. * the Freescale MPC8260ADS/MPC8266ADS-PCI boards.
  7. * Copied from the RPX-Classic and SBS8260 stuff.
  8. *
  9. * Author: Vitaly Bordug <[email protected]>
  10. *
  11. * Originally written by Dan Malek for Motorola MPC8260 family
  12. *
  13. * Copyright (c) 2001 Dan Malek <[email protected]>
  14. * Copyright (c) 2006 MontaVista Software, Inc.
  15. */
  16. #ifdef __KERNEL__
  17. #ifndef __MACH_ADS8260_DEFS
  18. #define __MACH_ADS8260_DEFS
  19. #include <linux/seq_file.h>
  20. /* The ADS8260 has 16, 32-bit wide control/status registers, accessed
  21. * only on word boundaries.
  22. * Not all are used (yet), or are interesting to us (yet).
  23. */
  24. /* Things of interest in the CSR.
  25. */
  26. #define BCSR0_LED0 ((uint)0x02000000) /* 0 == on */
  27. #define BCSR0_LED1 ((uint)0x01000000) /* 0 == on */
  28. #define BCSR1_FETHIEN ((uint)0x08000000) /* 0 == enable*/
  29. #define BCSR1_FETH_RST ((uint)0x04000000) /* 0 == reset */
  30. #define BCSR1_RS232_EN1 ((uint)0x02000000) /* 0 ==enable */
  31. #define BCSR1_RS232_EN2 ((uint)0x01000000) /* 0 ==enable */
  32. #define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable*/
  33. #define BCSR3_FETH2_RST ((uint)0x80000000) /* 0 == reset */
  34. #endif /* __MACH_ADS8260_DEFS */
  35. #endif /* __KERNEL__ */