Full support for Ginger Console
[linux-ginger.git] / arch / arm / mach-l7200 / include / mach / pmpcon.h
blob3959871e8361661a3e748151dfef382a1bca72b7
1 /****************************************************************************/
2 /*
3 * arch/arm/mach-l7200/include/mach/pmpcon.h
5 * Registers and helper functions for the L7200 Link-Up Systems
6 * DC/DC converter register.
8 * (C) Copyright 2000, S A McConnell (samcconn@cotw.com)
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.
15 /****************************************************************************/
17 #define PMPCON_OFF 0x00006000 /* Offset from IO_START_2. */
19 /* IO_START_2 and IO_BASE_2 are defined in hardware.h */
21 #define PMPCON_START (IO_START_2 + PMPCON_OFF) /* Physical address of reg. */
22 #define PMPCON_BASE (IO_BASE_2 + PMPCON_OFF) /* Virtual address of reg. */
25 #define PMPCON (*(volatile unsigned int *)(PMPCON_BASE))
27 #define PWM2_50CYCLE 0x800
28 #define CONTRAST 0x9
30 #define PWM1H (CONTRAST)
31 #define PWM1L (CONTRAST << 4)
33 #define PMPCON_VALUE (PWM2_50CYCLE | PWM1L | PWM1H)
35 /* PMPCON = 0x811; // too light and fuzzy
36 * PMPCON = 0x844;
37 * PMPCON = 0x866; // better color poor depth
38 * PMPCON = 0x888; // Darker but better depth
39 * PMPCON = 0x899; // Darker even better depth
40 * PMPCON = 0x8aa; // too dark even better depth
41 * PMPCON = 0X8cc; // Way too dark
44 /* As CONTRAST value increases the greater the depth perception and
45 * the darker the colors.