Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: zejian.su <zejian.su@starfivetech.com>
|
|
histogram data to the SC buffer.
|
|
controls are: WB, CAR, CCM, CFA, CTC, DBC, DNYUV, GMARGB, LCCF, OBC, OECF, R2Y, SAT, SHRP, YCRV, SC
|
|
Add new conctrl for jh7110 isp.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
With GCC 12, -Wstringop-overread was warning about an implicit cast from
char[6] to char[8]. However, the extra 2 bytes are always thrown away,
alignment doesn't matter, and the risk of hitting the edge of unallocated
memory has been accepted, so this prototype can just be converted to a
regular char *. Silences:
net/core/dev.c: In function ‘bpf_prog_run_generic_xdp’: net/core/dev.c:4618:21: warning: ‘ether_addr_equal_64bits’ reading 8 bytes from a region of size 6 [-Wstringop-overread]
4618 | orig_host = ether_addr_equal_64bits(eth->h_dest, > skb->dev->dev_addr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/core/dev.c:4618:21: note: referencing argument 1 of type ‘const u8[8]’ {aka ‘const unsigned char[8]’}
net/core/dev.c:4618:21: note: referencing argument 2 of type ‘const u8[8]’ {aka ‘const unsigned char[8]’}
In file included from net/core/dev.c:91: include/linux/etherdevice.h:375:20: note: in a call to function ‘ether_addr_equal_64bits’
375 | static inline bool ether_addr_equal_64bits(const u8 addr1[6+2],
| ^~~~~~~~~~~~~~~~~~~~~~~
Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Tested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/netdev/20220212090811.uuzk6d76agw2vv73@pengutronix.de
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
CR5620: Add non-coherent DMA handling
See merge request sdk/linux!881
|
|
Add sifive_ccache_flush_range to be compatible with new code
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
|
|
Add functions to flush the caches and handle non-coherent DMA.
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
|
|
Add designeware 8250 auto flow ctrl support. Enable
it by add auto-flow-control in dts.
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
|
|
Normalize the copyright licenses about clocktree/watchdog/timer/spdif/pwmdac.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Standardize the StarFive copyright information.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
definitions
1. Correct the io_conf_reg address when pin number >= PAD_QSPI_SCLK.
2. The pull-down bit is the fourth bit, so the mask is 0x10.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
The sscofpmf extension allows counter overflow and filtering for
programmable counters. Enable the perf driver to handle the overflow
interrupt. The overflow interrupt is a hart local interrupt.
Thus, per cpu overflow interrupts are setup as a child under the root
INTC irq domain.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
RISC-V SBI specification added a PMU extension that allows to configure
start/stop any pmu counter. The RISC-V perf can use most of the generic
perf features except interrupt overflow and event filtering based on
privilege mode which will be added in future.
It also allows to monitor a handful of firmware counters that can provide
insights into firmware activity during a performance analysis.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
The old RISC-V perf implementation allowed counting of only
cycle/instruction counters using perf. Restore that feature by implementing
a simple platform driver under a separate config to provide backward
compatibility. Any existing software stack will continue to work as it is.
However, it provides an easy way out in future where we can remove the
legacy driver.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Implement a perf core library that can support all the essential perf
features in future. It can also accommodate any type of PMU implementation
in future. Currently, both SBI based perf driver and legacy driver
implemented uses the library. Most of the common perf functionalities
are kept in this core library wile PMU specific driver can implement PMU
specific features. For example, the SBI specific functionality will be
implemented in the SBI specific driver.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Add support for the axp15060 pmic.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
|
|
CR_2026_compatible_standard_515
See merge request sdk/linux!459
|
|
revise "stf" to "starfive" for PCIE, CPUfreq, CPUidle, PMIC driver.
Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
|
|
dts/starfive: modify v4l2 compatible name
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
1.Resolved playback and record can work simultaneously.
2.Rearrange audio configuration in kernel menu.
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
|
|
Change 'stg_apb' clock from external clock to
internal clock.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Fixed BUG 1754
Signed-off-by: curry.zhang <curry.zhang@starfivetech.com>
|
|
Move external clock definitions to C files that avoid illegal use.
Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
|
|
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
reset:starfive:jh7110: update macro definition.
See merge request sdk/linux!219
|
|
Cr 1459 v4 l2 515 mason.huo
See merge request sdk/linux!224
|
|
For jh7110 soc, there is only one isp controller.
To avoid the system errors when config to support
dual isp, remove the all isp1 related source code
from driver.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
Add STF_DUAL_ISP Kconfig to config single isp
or dual isp.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
|
|
remove all “si5“ keyword from reset header file.
Signed-off-by: Clivia.Cai <Clivia.Cai@starfivetech.com>
|
|
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
|
|
Add 7 regulators base on regulator framework for
JH7110 evb HW design.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
The pmic driver should employ regulator framework,
rather than a driver in soc.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Fixed interrupt enabler logic error, fixed PMU_HARD_EVENT definition
error, changed some variable names, for better code style.
Note:
This is an interim version of the pmu driver that provides the
power_domian switch function.
It can be used in modules such as VPU/JPU/GPU/ISP/VOUT.
/* do not upstram */
Signed-off-by: samin <samin.guo@starfivetech.com>
|
|
Cr 907 gpu shanlong.li
See merge request sdk/sft-riscvpi-linux-5.10!37
|
|
clk:starfive: Add isp clock tree driver
See merge request sdk/sft-riscvpi-linux-5.10!32
|
|
add turn off mask api
Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
|
|
Clock references refer to include/dt-bindings/clock/starfive-jh7110-isp.h
Enable the isp clock tree driver in dts file if use it.
If the fpga is not connetted with isp board, the isp clock tree must be disabled.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
crypto need this patch to work.
Signed-off-by: william.qiu <william.qiu@starfivetech.com>
|
|
Signed-off-by: jianlong.huang <jianlong.huang@starfivetech.com>
|
|
Fix wrong macro definition.
Signed-off-by: samin <samin.guo@starfivetech.com>
|
|
Divide the old device tree into several files according to different layers.
Make the device tree clearer and more readable.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Clock references refer to include/dt-bindings/clock/starfive-jh7110-vout.h
Change the value about 'status' of clkvout node in dts file when want to
use vout clock.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Add clock driver about sys, stg and aon clock for JH7110.
Clock references refer to include/dt-bindings/clock/starfive-jh7110-clkgen.h
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
|