libipa: Add CameraSensorHelper for IMX258
Extend the CameraSensorHelper factory with support for the IMX258 sensor found in the Nautilus Chromebook. The values are read by manually tweaking the IMX258 kernel driver. The IMX258 kernel driver hints that the sensor may be compatible with the MIPI CCS specification, as the register set matches. The values for analog gain constants are obtained by reading the register indexes, corresponding to the analog gain constants, as mentioned in MIPI CCS v1.1 specification. The values have further been confirmed by Dave Stevenson as being those specified in the datasheet. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
951df850ad
commit
48a380b389
1 changed files with 10 additions and 0 deletions
|
@ -295,6 +295,16 @@ public:
|
|||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("imx219", CameraSensorHelperImx219)
|
||||
|
||||
class CameraSensorHelperImx258 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
CameraSensorHelperImx258()
|
||||
{
|
||||
analogueGainConstants_ = { AnalogueGainLinear, 0, 512, -1, 512 };
|
||||
}
|
||||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("imx258", CameraSensorHelperImx258)
|
||||
|
||||
class CameraSensorHelperOv5670 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue