1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/*
* arch/arm/mach-tegra/odm_kit/query/whistler/subboards/nvodm_query_discovery_e911_addresses.h
*
* Specifies the peripheral connectivity database peripheral entries for the E111 camera module
*
* Copyright (c) 2009 NVIDIA Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "nvodm_query_gpio.h"
#include "../include/nvodm_imager_guids.h"
#include "pmu/max8907b/max8907b_supply_info_table.h"
#define NVODM_PORT(x) ((x) - 'a')
/* VGP5 is apparently inverted on some boards.
* For E912- A01, you may need to change the VGP5_RESET_AL line to:
* NVODM_CAMERA_VGP5_RESET
* If you find other boards for which it needs to be inverted, please
* add your information to this comment.
*/
#define OV5630_PINS (NVODM_CAMERA_SERIAL_CSI_D1A | \
NVODM_CAMERA_DEVICE_IS_DEFAULT)
static const NvOdmIoAddress s_ffaImagerOV5630Addresses[] =
{
{ NvOdmIoModule_I2c, 0x02, 0x6C, 0 },
{ NvOdmIoModule_Gpio, NVODM_GPIO_CAMERA_PORT, 5 | NVODM_IMAGER_RESET_AL, 0 },
{ NvOdmIoModule_Gpio, NVODM_PORT('t'), 3 | NVODM_IMAGER_POWERDOWN, 0 },
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO18, 0 }, //VDDIO_VI
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO9, 0 }, //AVDD_CAM1
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO13, 0 }, //VDDIO_AF
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO17, 0 }, //VDDIO_MIPI
{ NvOdmIoModule_VideoInput, 0x00, OV5630_PINS, 0 },
{ NvOdmIoModule_ExternalClock, 2, 0, 0 } // CSUS
};
// OV5630 focuser
static const NvOdmIoAddress s_ffaImagerAD5820Addresses[] =
{
{ NvOdmIoModule_I2c, 0x02, 0x18, 0 }, // focuser i2c
};
// OV5630 flash
static const NvOdmIoAddress s_ffaFlashLTC3216Addresses[] =
{
{ NvOdmIoModule_Gpio, NVODM_GPIO_CAMERA_PORT, 3 | NVODM_IMAGER_FLASH0, 0 }, // Flash 200mA
{ NvOdmIoModule_Gpio, NVODM_GPIO_CAMERA_PORT, 6 | NVODM_IMAGER_FLASH1, 0 } // Flash 600mA
};
// For SEMCO VGA
#define SOC380_PINS (NVODM_CAMERA_PARALLEL_VD0_TO_VD7)
static const NvOdmIoAddress s_ffaImagerSOC380Addresses[] =
{
{ NvOdmIoModule_I2c, 0x02, 0x78 },
{ NvOdmIoModule_Gpio, NVODM_GPIO_CAMERA_PORT, 4 | NVODM_IMAGER_POWERDOWN_AL, 0 },
{ NvOdmIoModule_Gpio, NVODM_GPIO_CAMERA_PORT, 0 | NVODM_IMAGER_RESET_AL, 0 },
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO18, 0}, //VDDIO_VI
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO9, 0 }, //AVDD_CAM2
{ NvOdmIoModule_Vdd, 0x00, Max8907bPmuSupply_LDO13, 0}, //VDDIO_AF
{ NvOdmIoModule_VideoInput, 0x00, SOC380_PINS, 0 },
{ NvOdmIoModule_ExternalClock, 2, 0, 0 } // CSUS
};
static const NvOdmIoAddress s_CommonImagerAddresses[] =
{
{ NvOdmIoModule_ExternalClock, 2, 0, 0 } // CSUS
};
|