mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
From 8240f1328ead0152f116b385b3169f8f010a7869 Mon Sep 17 00:00:00 2001
|
|
From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
|
Date: Fri, 22 Sep 2023 12:39:33 +0300
|
|
Subject: [PATCH] media: rp1: Add back reg write debug prints
|
|
|
|
Add back debug prints in csi2 and pisp_fe reg_write() functions, but use
|
|
the 'irq' variants to avoid spamming in normal situation.
|
|
|
|
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
|
---
|
|
drivers/media/platform/raspberrypi/rp1_cfe/csi2.c | 1 +
|
|
drivers/media/platform/raspberrypi/rp1_cfe/pisp_fe.c | 2 ++
|
|
2 files changed, 3 insertions(+)
|
|
|
|
--- a/drivers/media/platform/raspberrypi/rp1_cfe/csi2.c
|
|
+++ b/drivers/media/platform/raspberrypi/rp1_cfe/csi2.c
|
|
@@ -92,6 +92,7 @@ static inline u32 csi2_reg_read(struct c
|
|
static inline void csi2_reg_write(struct csi2_device *csi2, u32 offset, u32 val)
|
|
{
|
|
writel(val, csi2->base + offset);
|
|
+ csi2_dbg_verbose("csi2: write 0x%04x -> 0x%03x\n", val, offset);
|
|
}
|
|
|
|
static inline void set_field(u32 *valp, u32 field, u32 mask)
|
|
--- a/drivers/media/platform/raspberrypi/rp1_cfe/pisp_fe.c
|
|
+++ b/drivers/media/platform/raspberrypi/rp1_cfe/pisp_fe.c
|
|
@@ -132,12 +132,14 @@ static inline void pisp_fe_reg_write(str
|
|
u32 val)
|
|
{
|
|
writel(val, fe->base + offset);
|
|
+ pisp_fe_dbg_verbose("fe: write 0x%04x -> 0x%03x\n", val, offset);
|
|
}
|
|
|
|
static inline void pisp_fe_reg_write_relaxed(struct pisp_fe_device *fe, u32 offset,
|
|
u32 val)
|
|
{
|
|
writel_relaxed(val, fe->base + offset);
|
|
+ pisp_fe_dbg_verbose("fe: write 0x%04x -> 0x%03x\n", val, offset);
|
|
}
|
|
|
|
static int pisp_regs_show(struct seq_file *s, void *data)
|