1 /****************************************************************************/
2 /*
3  *  linux/include/asm-arm/arch-l7200/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 /****************************************************************************/
16 
17 #define PMPCON_OFF 0x00006000  /* Offset from IO_START_2. */
18 
19 /* IO_START_2 and IO_BASE_2 are defined in hardware.h */
20 
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. */
23 
24 
25 #define PMPCON (*(volatile unsigned int *)(PMPCON_BASE))
26 
27 #define PWM2_50CYCLE 0x800
28 #define CONTRAST     0x9
29 
30 #define PWM1H (CONTRAST)
31 #define PWM1L (CONTRAST << 4)
32 
33 #define PMPCON_VALUE  (PWM2_50CYCLE | PWM1L | PWM1H)
34 
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
42  */
43 
44 /* As CONTRAST value increases the greater the depth perception and
45  * the darker the colors.
46  */
47