diff --git a/packages/ti/board/src/devices/fpd/ds90ub9702.c b/packages/ti/board/src/devices/fpd/ds90ub9702.c
index 543b37b670696e25ea90c44d762dca0f2f73388a..2e9901d52d621ebe05ea728a9ec1b41a89b7cc1e 100755 (executable)
*/
#include "ds90ub9702.h"
-/* DES UB9702 configurations for RAW12 1920x1080 30fps, 4 lanes @1.5Gbps */
+/* DES UB9702 configurations for RAW12 1920x1080 30fps, 4 lanes @1.5Gbps
+ Corresponding Macro(for passing to API call): BOARD_FPD_UB9702_PG_RAW12_1920_1080_30_FPS */
Board_I2cRegProgObj Board_FpdUb9702PGCfg0[] =
{
{0x32, 0x01, 0x50},
{0xB2, 0x07, 0x50},
{0xB1, 0x0F, 0x50},
{0xB2, 0x08, 0x50},
- {0x33, 0x03, 0x50},
+ {0x33, 0x33, 0x50},
{BOARD_DEVICES_CONFIG_END},
};
-/* DES UB9702 configurations for RAW12 3840x2160 40fps, 4 lanes @1.5Gbps */
+/* DES UB9702 configurations for RAW12 3840x2160 40fps, 4 lanes @1.5Gbps
+ Corresponding Macro(for passing to API call): BOARD_FPD_UB9702_PG_RAW12_3840_2160_40_FPS */
Board_I2cRegProgObj Board_FpdUb9702PGCfg1[] =
{
{0x32, 0x01, 0x50},
- {0x1F, 0x10, 0x50},
- {0xC9, 0x32, 0x50},
+ {0x1F, 0x00, 0x50},
+ {0xC9, 0x1E, 0x50},
{0xB0, 0x1C, 0x50},
{0xB1, 0x92, 0x50},
{0xB2, 0x40, 0x50},
{0xB2, 0x07, 0x50},
{0xB1, 0x0F, 0x50},
{0xB2, 0x08, 0x50},
- {0x33, 0x03, 0x50},
+ {0x33, 0x73, 0x50},
{BOARD_DEVICES_CONFIG_END},
};
#endif
Board_I2cRegProgObj *ub9702Cfg;
- if((handle == NULL) && (pgType >= BOARD_FPD_UB9702_PG_MAX))
+ if((handle == NULL) || (pgType >= BOARD_FPD_UB9702_PG_MAX))
{
ret = BOARD_INVALID_PARAM;
}
ub9702Cfg = Board_FpdUb9702PGCfg[pgType];
BOARD_DEVICES_STS_LOG("PG configurations for deserializer with slave address - 0x%x...\n\r",
fpdModParams->desSlvAddr);
- while(ub9702Cfg[index].regAddr != BOARD_DEVICES_CONFIG_END)
+ while ((ub9702Cfg[index].regAddr != BOARD_DEVICES_CONFIG_END) &&
+ (ret == BOARD_SOK))
+
{
#if defined(BOARD_FPD_I2C_CFG_RD_BACK_EN)
BOARD_DEVICES_STS_LOG("regAddr - 0x%2x --- regData - 0x%2x\n\r",
BOARD_I2C_TRANSACTION_TIMEOUT);
if(ret != 0)
{
- return BOARD_I2C_TRANSFER_FAIL;
+ ret = BOARD_I2C_TRANSFER_FAIL;
}
if(ub9702Cfg[index].i2cDelay != 0)
BOARD_I2C_TRANSACTION_TIMEOUT);
if(ret != 0)
{
- return BOARD_I2C_TRANSFER_FAIL;
+ ret = BOARD_I2C_TRANSFER_FAIL;
}
BOARD_DEVICES_STS_LOG(" --- read back data - 0x%2x\n\r", rdData);