blob: de94839033c9a4d3a3165a112825c0744fd3d10a [file] [log] [blame]
Wentao Xu97df7fd2011-01-19 15:01:17 -05001/*
Duy Truongf3ac7b32013-02-13 01:07:28 -08002 * Copyright (c) 2011, The Linux Foundation. All rights reserved.
Wentao Xu97df7fd2011-01-19 15:01:17 -05003 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in
11 * the documentation and/or other materials provided with the
12 * distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
17 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
18 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
21 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
24 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#ifndef __PLATFORM_MSM7X30_PANEL_H
29#define __PLATFORM_MSM7X30_PANEL_H
30
31#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
32
33#define LDO08_CNTRL 0x011
34#define LDO12_CNTRL 0x015
35#define LDO15_CNTRL 0x089
36#define LDO16_CNTRL 0x08A
Ajay Dudanib01e5062011-12-03 23:23:42 -080037#define LDO20_CNTRL 0x11F /* PM8058 only */
Wentao Xu97df7fd2011-01-19 15:01:17 -050038#define LDO_LOCAL_EN_BMSK 0x80
39
40#define SPI_SCLK 45
41#define SPI_CS 46
42#define SPI_MOSI 47
43#define SPI_MISO 48
44
Wentao Xu97df7fd2011-01-19 15:01:17 -050045#endif