1. Home
  2. Software Development for MediaTek X20
  3. Camera Porting Guide
  4. 4.For external LDO control

4.For external LDO control

Path kernel-3.18/arch/arm64/boot/dts/amt6797_64_open.dts

Path \kernel-3.18\drivers\misc\mediatek\imgsensor\src\mt6797\camera_hw

4.1 PMIC

4.1.1 Use dct tools for customized

4.1.2 cust.dtsi was generated during            

Compiling out/target/product/amt6797_64_open/obj/KERNEL_OBJ/arch/arm64/boot/dts/cust.dtsi

4.1.3 Kernel standard

Regulator

  • regulator_get()

– Get instance of regulator

– Called @ probe in kd_sensorlist.c

  • regulator_set_voltage() & regulator_enable()

– Set voltage and enable among different regulator

– Called @_hwPowerOn() in kd_sensorlist.c

  • regulator_disable()

– Turn off regulator

– Called @_hwPowerDown() in kd_sensorlist.c

Pathout/target/product/amt6797_64_open/obj/KERNEL_OBJ/arch/arm64/boot/dts/cust.dtsi

Was this article helpful to you? Yes No

How can we help?