summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3875ca)
raw | patch | inline | side by side (parent: e3875ca)
author | Vivek Dhande <a0132295@ti.com> | |
Thu, 26 Mar 2020 13:35:25 +0000 (19:05 +0530) | ||
committer | Sivaraj R <sivaraj@ti.com> | |
Tue, 14 Apr 2020 05:23:07 +0000 (00:23 -0500) |
Signed-off-by: Vivek Dhande <a0132295@ti.com>
packages/ti/board/src/devices/fpd/ds90ub9702.c | patch | blob | history | |
packages/ti/board/src/devices/fpd/ds90ub9702.h | patch | blob | history |
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);
diff --git a/packages/ti/board/src/devices/fpd/ds90ub9702.h b/packages/ti/board/src/devices/fpd/ds90ub9702.h
index b987f13daeed9ab3292b9d97cf67a011eb2c2bd5..ee2b9ec156db01e9c14f45534d8eca16b2a8c625 100755 (executable)
*
* @{
*/
-/** \brief Pattern type: RGB888 1280x720 30fps */
+/** \brief Pattern type: RAW12 1920x1080 30fps, 4 lanes@1.5Gbps */
#define BOARD_FPD_UB9702_PG_RAW12_1920_1080_30_FPS ((uint32_t) 0x0U)
-/** \brief Pattern type: RGB888 1920x1080 30fps */
+/** \brief Pattern type: RAW12 3840x2160 40fps, 4 lanes@1.5Gbps */
#define BOARD_FPD_UB9702_PG_RAW12_3840_2160_40_FPS ((uint32_t) 0x1U)
/** \brief Pattern type: Maximum Val */
#define BOARD_FPD_UB9702_PG_MAX ((uint32_t) 0x2U)