mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
cdi-dev: Add TPS2H160B support
Add TPS2H160B device PoC support for p3898 platform Bug 4066218 Change-Id: I9b237d233614e1a23b08b91101db9be9db8e4958 Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2885804 (cherry picked from commit ab43d7eab8918cad5afccc1b7cb66b3ee65bf08f) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889935 Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Aniket Bahadarpurkar <aniketb@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
06859203ea
commit
95e971616e
@@ -612,6 +612,9 @@ static int cdi_dev_probe(struct i2c_client *client,
|
|||||||
else if (of_property_read_bool(child,
|
else if (of_property_read_bool(child,
|
||||||
"cam-pwr-nvccp"))
|
"cam-pwr-nvccp"))
|
||||||
info->cam_pwr_method = CAM_PWR_NVCCP;
|
info->cam_pwr_method = CAM_PWR_NVCCP;
|
||||||
|
else if (of_property_read_bool(child,
|
||||||
|
"cam-pwr-tps2h160b"))
|
||||||
|
info->cam_pwr_method = CAM_PWR_TPS160;
|
||||||
else
|
else
|
||||||
info->cam_pwr_method = CAM_PWR_NO_PWR;
|
info->cam_pwr_method = CAM_PWR_NO_PWR;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
// Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
// Copyright (c) 2020-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
|
|
||||||
#ifndef __UAPI_CDI_DEV_H__
|
#ifndef __UAPI_CDI_DEV_H__
|
||||||
#define __UAPI_CDI_DEV_H__
|
#define __UAPI_CDI_DEV_H__
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
#define DES_PWR_NO_PWR 0xFFU
|
#define DES_PWR_NO_PWR 0xFFU
|
||||||
#define CAM_PWR_NVCCP 0U
|
#define CAM_PWR_NVCCP 0U
|
||||||
#define CAM_PWR_MAX20087 1U
|
#define CAM_PWR_MAX20087 1U
|
||||||
|
#define CAM_PWR_TPS160 2U
|
||||||
#define CAM_PWR_NO_PWR 0xFFU
|
#define CAM_PWR_NO_PWR 0xFFU
|
||||||
|
|
||||||
#define MAX_POWER_LINKS_PER_BLOCK (4U)
|
#define MAX_POWER_LINKS_PER_BLOCK (4U)
|
||||||
|
|||||||
Reference in New Issue
Block a user