Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
650 B
C
32 lines
650 B
C
// 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;
|
|
}
|