pmpcon.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /****************************************************************************/
  2. /*
  3. * arch/arm/mach-l7200/include/mach/pmpcon.h
  4. *
  5. * Registers and helper functions for the L7200 Link-Up Systems
  6. * DC/DC converter register.
  7. *
  8. * (C) Copyright 2000, S A McConnell (samcconn@cotw.com)
  9. *
  10. * This file is subject to the terms and conditions of the GNU General Public
  11. * License. See the file COPYING in the main directory of this archive for
  12. * more details.
  13. */
  14. /****************************************************************************/
  15. #define PMPCON_OFF 0x00006000 /* Offset from IO_START_2. */
  16. /* IO_START_2 and IO_BASE_2 are defined in hardware.h */
  17. #define PMPCON_START (IO_START_2 + PMPCON_OFF) /* Physical address of reg. */
  18. #define PMPCON_BASE (IO_BASE_2 + PMPCON_OFF) /* Virtual address of reg. */
  19. #define PMPCON (*(volatile unsigned int *)(PMPCON_BASE))
  20. #define PWM2_50CYCLE 0x800
  21. #define CONTRAST 0x9
  22. #define PWM1H (CONTRAST)
  23. #define PWM1L (CONTRAST << 4)
  24. #define PMPCON_VALUE (PWM2_50CYCLE | PWM1L | PWM1H)
  25. /* PMPCON = 0x811; // too light and fuzzy
  26. * PMPCON = 0x844;
  27. * PMPCON = 0x866; // better color poor depth
  28. * PMPCON = 0x888; // Darker but better depth
  29. * PMPCON = 0x899; // Darker even better depth
  30. * PMPCON = 0x8aa; // too dark even better depth
  31. * PMPCON = 0X8cc; // Way too dark
  32. */
  33. /* As CONTRAST value increases the greater the depth perception and
  34. * the darker the colors.
  35. */