Commit ea763119 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

init for 10389's PCA9571

parent 6cecbe52
...@@ -1226,8 +1226,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev) ...@@ -1226,8 +1226,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev)
for (i=0;i<ARRAY_SIZE(pwr_gpio);i++) if (pwr_gpio[i].label){ for (i=0;i<ARRAY_SIZE(pwr_gpio);i++) if (pwr_gpio[i].label){
clientdata->pwr_gpio[i].label=pwr_gpio[i].label; clientdata->pwr_gpio[i].label=pwr_gpio[i].label;
clientdata->pwr_gpio[i].pin=base[i>>3]+(i & 7); clientdata->pwr_gpio[i].pin=base[i>>3]+(i & 7);
if (i<16) clientdata->pwr_gpio[i].dir=0; /* input */ if (i<16) clientdata->pwr_gpio[i].dir=0; /* input */
else clientdata->pwr_gpio[i].dir=1; /* output */ else clientdata->pwr_gpio[i].dir=1; /* output */
//if (i<16) clientdata->pwr_gpio[i].out_val=0; //if (i<16) clientdata->pwr_gpio[i].out_val=0;
//else clientdata->pwr_gpio[i].out_val=1; //else clientdata->pwr_gpio[i].out_val=1;
...@@ -1260,6 +1262,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev) ...@@ -1260,6 +1262,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev)
*/ */
pm_power_off = shutdown; pm_power_off = shutdown;
//turn off PCA9571
gpio_10389_ctrl(&pdev->dev, 0xf0f);
gpio_10389_ctrl(&pdev->dev, 0xf00);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment