blob: 911f8da02f1fbb500ab9564978e2b0dddf93e84e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// SPDX-License-Identifier: GPL-2.0-only
/*
* camss-vfe-vbif.c
*
* Qualcomm MSM Camera Subsystem - VFE VBIF Module
*
* Copyright (c) 2025, The Linux Foundation. All rights reserved.
*
*/
#include <linux/io.h>
#include "camss.h"
#include "camss-vfe.h"
#include "camss-vfe-vbif.h"
#define VBIF_FIXED_SORT_EN 0x30
#define VBIF_FIXED_SORT_SEL0 0x34
void vfe_vbif_write_reg(struct vfe_device *vfe, u32 reg, u32 val)
{
writel_relaxed(val, vfe->vbif_base + reg);
}
int vfe_vbif_apply_settings(struct vfe_device *vfe)
{
vfe_vbif_write_reg(vfe, VBIF_FIXED_SORT_EN, 0xfff);
vfe_vbif_write_reg(vfe, VBIF_FIXED_SORT_SEL0, 0x555000);
return 0;
}
|