summaryrefslogtreecommitdiff
path: root/arch/riscv
AgeCommit message (Collapse)AuthorFilesLines
2023-04-19jh7110.dtsi: Adjusting the temperature control thresholdziv.xu1-2/+2
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-04-17riscv: Optimize memcpy with aligned versionMason Huo3-61/+321
Optimizing the 128 byte align case, this will improve the performance of large block memcpy. Here we combine the memcpy of glibc and kernel. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-14Merge branch 'CR_4811_imx219_515_changhuang.liang' into 'vf2-515-devel'andy.hu1-13/+1
CR_4811_imx219_515_changhuang.liang media: starfive: imx219: Use gpio configure See merge request sbc/linux!104
2023-04-13riscv: dts: starfive: add ALDO4 and DCDC1 nodeWilliam Qiu1-0/+18
add ALDO4 and DCDC1 node, and enable item in SDIO0 node. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-04-13media: starfive: imx219: Use gpio configureChanghuang Liang1-13/+1
Use gpio configure. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-04-07Merge branch 'CR_4617_imx708_515_vf2_changhuang.liang' into 'vf2-515-devel'andy.hu2-0/+28
CR_4617_imx708_515_vf2_changhuang.liang riscv: dts: starfive: Add imx708 support See merge request sbc/linux!100
2023-04-07Merge tag 'JH7110_515_SDK_v4.7.0' into vf2-515-develah7-113/+129
version JH7110_515_SDK_v4.7.0 for JH7110 EVB board 1. #4284: linux: enable cached memory for IMG GPU driver 2. #4563: linux: optimized memcpy Write a C version of memcpy function 3. #4617: linux: support sensor imx708
2023-04-07Merge branch 'CR_4617_imx708_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu2-0/+28
CR_4617_imx708_515_changhuang.liang media: i2c: Add imx708 support See merge request sdk/linux!764
2023-04-06riscv: configs: Enable imx708Changhuang Liang1-0/+1
Enable imx708. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-04-06riscv: dts: starfive: Add imx708 supportChanghuang Liang1-0/+27
Add imx708 support. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-04-03arch: riscv: configs: Enable imx708Changhuang Liang1-0/+1
Enable imx708. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-04-03arch: riscv: dts: Add imx708 supportChanghuang Liang1-0/+27
Add imx708 support. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-04-03riscv: optimized memcpy Write a C version of memcpy() which uses the biggest ↵Matteo Croce5-113/+101
data size allowed, without generating unaligned accesses. The procedure is made of three steps: First copy data one byte at time until the destination buffer is aligned to a long boundary. Then copy the data one long at time shifting the current and the next u8 to compose a long at every cycle. Finally, copy the remainder one byte at time. On a BeagleV, the TCP RX throughput increased by 45% Signed-off-by: Matteo Croce <mcroce@microsoft.com> Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-03-30Merge branch 'CR_4413_PCIe_Kevin.xie' into 'vf2-515-devel'andy.hu3-24/+16
CR 4413 [515] drivers: pci: Modified pin control API to gpiolib consumer API. See merge request sbc/linux!92
2023-03-30Merge branch 'CR_4369_enable_device_mapper_michael.zhu' into 'vf2-515-devel'andy.hu1-0/+2
CR_4369: Enable Device Mapper config See merge request sbc/linux!91
2023-03-29drivers: pci: Modified reset pin control API to gpiolib consumer API.Kevin.xie1-8/+4
For the consisitancy of host driver code among boards, the difference of reset pin config will be maintained in DTS. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-03-29drivers: pci: Modified reset pin control API to gpiolib consumer API.Kevin.xie2-14/+8
For the consisitancy of host driver code among boards, the difference of reset pin config will be maintained in DTS. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-03-27drivers: pci: Modified power pin control API to gpiolib consumer API.Kevin.xie2-18/+16
For the consisitancy of host driver among devkits(ext_gpio) & vf2/evb, the difference of power pin config will be maintained in DTS. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-03-27drivers: pci: Modified power pin control API to gpiolib consumer API.Kevin.xie2-18/+16
For the consisitancy of host driver among devkits(ext_gpio) & vf2/evb, the difference of power pin config will be maintained in DTS. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-03-27Enable device mapper config to map physical block devices onto higher-level ↵MichaelZhuxx1-0/+2
virtual block devices Signed-off-by: MichaelZhuxx <michael.zhu@starfivetech.com>
2023-03-22usb wifi dongle: enable aic8800 driverskyler.zheng1-0/+3
enable aic8800 driver Signed-off-by: <skyler.zheng@starfivetech.com>
2023-03-19Merge tag 'JH7110_515_SDK_v4.5.1' into vf2-515-develAndy Hu1-0/+6
version JH7110_515_SDK_v4.5.1 for JH7110 EVB board 1. #4082: linux: u-boot: apply csr patch 2. #3499: linux: u-boot: enable framebuffer console 3. #4038: linux: vout fixed open clock fail 4. #3509: linux: fix some bugs and add request(), free(), set_config() ops for sys gpiochip
2023-03-16riscv: fix build with binutils 2.38Aurelien Jarno1-0/+6
From version 2.38, binutils default to ISA spec version 20191213. This means that the csr read/write (csrr*/csrw*) instructions and fence.i instruction has separated from the `I` extension, become two standalone extensions: Zicsr and Zifencei. As the kernel uses those instruction, this causes the following build failure: CC arch/riscv/kernel/vdso/vgettimeofday.o <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h: Assembler messages: <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' The fix is to specify those extensions explicitely in -march. However as older binutils version do not support this, we first need to detect that. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com> Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-03-10Merge branch 'CR_2829_cryp_jiajie.ho' into 'vf2-515-devel'andy.hu1-0/+1
CR_2829: riscv: defconfig - Enable tcrypt module See merge request sbc/linux!80
2023-03-10thermal:vf2 enable thermal subsystemziv.xu1-0/+4
vf2 enable thermal subsystem Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-09Merge tag 'JH7110_515_SDK_v4.5.0-rc2' into vf2-515-develAndy Hu2-3/+24
version JH7110_515_SDK_v4.5.0-rc2 for JH7110 EVB board 1. #3746: linux: vout rgb code rollback to v4.4.0 2. #3668: linux: perf:sbi: disable cpu hotplug callback 3. #3166: linux: add thermal subsystem 4. #3877: linux: expand the mtd0 spl partition size in spi nor flash 5. #3729: linux: fix 4K wayland not work on some monitors
2023-03-09Merge branch 'CR_3877_mtd0_expansion_5.15_ziv.xu' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR_3877_mtd0_expansion_5.15_ziv.xu See merge request sdk/linux!731
2023-03-09riscv: defconfig - Enable tcrypt moduleJia Jie Ho1-0/+1
Add tcrypt as module to VisionFive 2. User can use this module to do basic functional and speed test on crypto module. Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2023-03-07jh7110.dsti :expand mtd0 partitionziv.xu1-1/+1
expand mtd0 partition Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-07thermal: enable thermal subsystem with step_wise governorziv.xu2-3/+24
enable thermal subsystem with step_wise governor Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-03Merge tag 'JH7110_515_SDK_v4.5.0-rc1' into vf2-515-develAndy Hu3-29/+28
version JH7110_515_SDK_v4.5.0-rc1 for JH7110 EVB board 1. #3467: linux: fix CPUfreq issue for the hibernation resume issue 2. #3546: linux: fix v4l2-compliance test issue for imx219 sensor 3. #3526: linux: qspi use reset framework 4. #3746: linux: rgb display support 1080p 60fps
2023-03-03Merge branch 'CR_3467_cpufreq_add_pm_opp_5.15_mason.huo' into 'vf2-515-devel'andy.hu1-0/+6
CR_3467 cpufreq_add_pm_opp See merge request sbc/linux!76
2023-03-03Merge branch 'CR_3583_IPV6_SUPPORT_samin.guo' into 'vf2-515-devel'andy.hu1-1/+0
CR_3583: riscv: defconfig: jh7110: enable ipv6. See merge request sbc/linux!75
2023-03-03Merge branch 'CR_3746_evb_515_rgb_1080_60_porting_shengyang.chen' into ↵andy.hu1-27/+27
'jh7110-5.15.y-devel' CR_3746_evb_515_riscv:linux:vout: rgb support 1080P@60fps See merge request sdk/linux!719
2023-03-03Merge branch 'CR_3526_qspi_use_reset_framework_5.15_ziv.xu' into ↵andy.hu1-1/+0
'jh7110-5.15.y-devel' CR_3526_qspi_use_reset_framework_5.15_ziv.xu See merge request sdk/linux!712
2023-03-03riscv: dts: Set specific cpu frequency when suspendingMason Huo1-0/+1
As JH7110 saves & restores all clock registers in hibernation. The cpu voltage may not correct after restoring cpu freqency from hibernation resume process. In case it's suspended in 1.5GHz with 1.04v, and it schedules to 750Mhz with 0.8v before resuming, then the cpu clock will be restored to 1.5GHz, but the cpu voltage still remains in 0.8v, then the system crashes. So we set the cpu frequency to 750MHz, and it will keep the cpu voltage matched when doing hibernation resuming. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-03riscv: dts: statfive: Add clock and power supply for cpuMason Huo1-0/+6
To enable the cpufreq-dt driver, config the cpu with clock & power supply regulator. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-02jh7110.dsti :expand mtd0 partitionziv.xu1-1/+1
expand mtd0 partition to 256k Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-02riscv:linux:vout: rgb support 1080P@60fpsshengyang.chen1-27/+27
rgb support 1080P@60fps porting from: branch: CR_2896_evb_515_MIPI_RGB_dual_display_keith.zhao commit id: 51504aed4280caab91258e3faa789a9b66984bfc1a3 Signed-off-by: keith <keith.zhao@starfivetech.com> Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2023-02-28spi-cadence-quadspi:use reset framwork to reset qspiziv.xu1-1/+0
use reset framwork to reset qspi Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-02-24riscv: defconfig: jh7110: enable ipv6.Samin Guo1-1/+0
jh7110 support ipv6, so enable it. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-02-23riscv: defconfig: jh7110: add ipv6 supportSamin Guo1-1/+0
jh7110 support ipv6, so enable it. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-02-20Merge branch 'CR_3167_gt911_ts_515_changhuang.liang' into 'vf2-515-devel'VF2_v2.10.4andy.hu3-9/+6
CR_3167_gt911_ts_515_changhuang.liang Revert "riscv: defconfig: Enable GT9xx" See merge request sbc/linux!65
2023-02-17Merge tag 'JH7110_515_SDK_v4.3.0' into vf2-515-develAndy Hu1-0/+12
version JH7110_515_SDK_v4.3.0 for JH7110 EVB board 1. Fix hibernation issue: mmc 2. #3345 uboot: support mipi dsi display logo 3. #3145 linux: pci: Add PHY settings in pcie host driver. 4. #3349 linux: crypto: Remove AES key zeroization 5. #3477 spl_tool add LICENSE file
2023-02-16drivers: pci: Add PHY settings in pcie host driver.Kevin.xie1-0/+12
The settings are about PHY PLL KVCO fine tuning form CTS testing. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-02-12Merge tag 'JH7110_515_SDK_v4.2.0' into vf2-515-develAndy Hu1-11/+11
version JH7110_515_SDK_v4.2.0 for JH7110 EVB board 1. Fix hibernation issue: AQC107 PCIe NIC 2. Support linux driver module build for: PDM, TDM, I2S, Watchdog, QSPI 3. #3253 open source for spl_tool 4. #3211 fix gst-omx crashed upon calling OMX_UseEGLImage func 5. #3262 Fix hdmi mipi dual display crash dump issue
2023-02-10Merge branch 'CR_3312_TDM_KO_Not_Work' into 'jh7110-5.15.y-devel'andy.hu1-5/+2
CR_3312_TDM_KO_Not_Work See merge request sdk/linux!694
2023-02-10CR_3312_TDM_KO_Not_WorkWalker Chen1-5/+2
Fixed the bug that tdm cat not work when it is build as module. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-10Merge branch 'CR_3319_I2S_Hibernation_Module_Xingyu.Wu' into ↵andy.hu1-4/+8
'jh7110-5.15.y-devel' CR_3319_I2S_Hibernation_Module_Xingyu.Wu See merge request sdk/linux!692
2023-02-10CR_3323_PDM_KO_Can_Work_walker.chenWalker Chen1-2/+1
1. Build as ko module, can work normally after multiple loading and unloading. 2. can record normally after hibernation resume. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>