media: i2c: sc3338 support normal boot

Change-Id: I06468abc80bfa501d7ad251606700fae586bae52
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
This commit is contained in:
Fenrir Lin
2023-07-21 10:53:53 +08:00
parent 9f9d39a908
commit c8ab145b3d

View File

@@ -1394,11 +1394,11 @@ static int sc3338_probe(struct i2c_client *client,
return -EINVAL;
}
sc3338->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_ASIS);
sc3338->reset_gpio = devm_gpiod_get(dev, "reset", sc3338->is_thunderboot ? GPIOD_ASIS : GPIOD_OUT_LOW);
if (IS_ERR(sc3338->reset_gpio))
dev_warn(dev, "Failed to get reset-gpios\n");
sc3338->pwdn_gpio = devm_gpiod_get(dev, "pwdn", GPIOD_ASIS);
sc3338->pwdn_gpio = devm_gpiod_get(dev, "pwdn", sc3338->is_thunderboot ? GPIOD_ASIS : GPIOD_OUT_LOW);
if (IS_ERR(sc3338->pwdn_gpio))
dev_warn(dev, "Failed to get pwdn-gpios\n");