Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions kernel/d3/drivers/d3/ub960/ub960.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,11 @@ static int ub960_port_configure(struct ub960 *self, struct ub960_port *port)
struct mutex *lock = &self->indirect_access_lock;
unsigned chan_id = port->index;
unsigned val;
struct reg_sequence seq[] = {
{UB960_REG_AEQ_CTL, 0x71},
{UB960_REG_SFILTER_CFG, 0xA9},
{UB960_REG_LINK_ERROR_CNT, 0x33},
};

mutex_lock(lock);

Expand All @@ -1131,6 +1136,8 @@ static int ub960_port_configure(struct ub960 *self, struct ub960_port *port)
// Route FrameSync to BC_GPIO0
TRY_MUTEX(lock, err, regmap_update_bits(self->map, UB960_REG_BC_GPIO_CTL0, 0xF << 0, 0xa << 0));

TRY(err, regmap_multi_reg_write(self->map, seq, ARRAY_SIZE(seq)));

// Enable TX port 0
TRY_MUTEX(lock, err, regmap_write(self->map, UB960_REG_CSI_PORT_SEL, 0x1));

Expand Down