summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)AuthorFilesLines
2022-10-27RISC-V: Avoid using per cpu array for ordered bootingAtish Patra4-19/+61
Currently both order booting and spinwait approach uses a per cpu array to update stack & task pointer. This approach will not work for the following cases. 1. If NR_CPUs are configured to be less than highest hart id. 2. A platform has sparse hartid. This issue can be fixed for ordered booting as the booting cpu brings up one cpu at a time using SBI HSM extension which has opaque parameter that is unused until now. Introduce a common secondary boot data structure that can store the stack and task pointer. Secondary harts will use this data while booting up to setup the sp & tp. Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> From 9a2451f1866344d38b4a1dc20396e3a03954fcd7 Resolved merge conflict. Signed-off-by: <jeeheng.sia@starfivetech.com> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-10-27RISC-V: Use SBI SRST extension when availableAnup Patel2-0/+51
The SBI SRST extension provides a standard way to poweroff and reboot the system irrespective to whether Linux RISC-V S-mode is running natively (HS-mode) or inside Guest/VM (VS-mode). The SBI SRST extension is available in the SBI v0.3 specification. (Refer, https://github.com/riscv/riscv-sbi-doc/releases/tag/v0.3.0-rc1) This patch extends Linux RISC-V SBI implementation to detect and use SBI SRST extension. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-10-27riscv: dts: Remove unsupport idle statesmason.huo1-46/+14
The JH7110 soc only support WFI cpu idle state, remove the unsupport states. Add a long WFI for entering the cpu_suspend(). Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-10-14Merge branch 'CR_2285_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'andy.hu1-2/+3
Cr 2285 sec jiajie.ho See merge request sdk/linux!533
2022-10-14Merge branch 'CR_2261_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'andy.hu2-2/+4
Cr 2261 can 515 william.qiu See merge request sdk/linux!521
2022-10-14CR_2285:SEC:Crypto:Starfive: Update hardware engine DMA driverjiajie.ho1-2/+3
Updating Starfive Jh7110 Crypto hardware engine to use orginal ARM PL08X driver. Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
2022-10-12arch:dts:starfive:Add 'sound-dai' function in hdmi nodeXingyu Wu2-1/+22
Add new audio device in audio card about hdmi and i2s. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12arch:dts:starfive:Change mclk_ext pinXingyu Wu1-2/+1
Change mclk_ext pin from GPIO61 to GPIO4. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12arch:dts:starfive:Modify i2stx_4ch0 nodeXingyu Wu2-6/+13
Add mclk_ext clock and enable i2stx_4ch0 status. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-09dts:starfive:modify can dts config and improve CAN IO driving forceWilliam Qiu2-2/+4
modify can dts config and improve CAN IO driving force Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-09-26riscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAMsamin1-1/+1
When the DDR is 2G (0x40000000-0xc0000000), it may cause address usage problems. Signed-off-by: samin <samin.guo@starfivetech.com>
2022-09-23Merge branch 'CR_2162_GPU_shanlong.li' into 'jh7110-5.15.y-devel'andy.hu1-3/+4
Cr 2162 gpu shanlong.li See merge request sdk/linux!499
2022-09-23Merge branch 'CR_2127_PCIe_515_Kevin.xie' into 'jh7110-5.15.y-devel'andy.hu1-2/+4
CR 2127 drivers: pci: Support 64bit prefetchable MMIO range. See merge request sdk/linux!503
2022-09-23Merge branch 'CR_2123_515_SPDIF_mclkext_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu4-9/+20
CR_2123_515_spdif_mclkext_xingyu.wu See merge request sdk/linux!489
2022-09-23dts:GPU: add core clkshanlong.li1-3/+4
add core clk Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-09-20drivers: pci: Support 64bit prefetchable MMIO range.Kevin.xie1-2/+4
Verification has been completed on NVIDIA GT710 with modetest. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-09-16Merge branch 'CR_2030_5.15_evb_vout_shengyang.chen' into 'jh7110-5.15.y-devel'andy.hu1-2/+2
CR_2030_5.15_2_riscv:dts:drm See merge request sdk/linux!497
2022-09-15riscv:dts:drmshengyang.chen1-2/+2
update changing of dts compatible value Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2022-09-15sound:starfive:pdm:Use mclk_ext external clockXingyu Wu2-5/+4
Use mclk_ext instead of mclk_inner. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-15sound:starfive:spdif:Use extrenal mclkXingyu Wu2-3/+5
Use extrenal mclk_ext instead of mclk_inner. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-13bt-binding:pl080:remove arm pl080 compatibleWilliam Qiu1-1/+1
remove arm pl080 compatible and add support for starfive jh7110-pl080 Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-09-13dts:starfive:pinctrl:Add mclk_ext pinXingyu Wu2-1/+11
Add mclk_ext pin and it's rate is 12.288m. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-09defconfig:starfive:Add support for SDIO's starfive private driverWilliam Qiu1-0/+1
Add support for SDIO's starfive private driver Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-09-09dts:starfive:modify SDIO configWilliam Qiu3-7/+13
modify SDIO config Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-09-07Merge branch 'CR_1946_515_GMAC_yanhong.wang' into 'jh7110-5.15.y-devel'andy.hu2-3/+3
Cr 1946 515 gmac yanhong.wang See merge request sdk/linux!416
2022-09-07Merge branch 'CR_2084_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'andy.hu4-48/+2
CR_2084_515:dt-blinding:canfd:set can1 to canfd See merge request sdk/linux!465
2022-09-07Merge branch 'CR_2021_dts_hal.feng' into 'jh7110-5.15.y-devel'andy.hu1-4/+4
Cr 2021 dts hal.feng See merge request sdk/linux!442
2022-09-07Merge branch 'CR_2030_5.15_evb_vout_shengyang.chen' into 'jh7110-5.15.y-devel'andy.hu4-16/+16
Cr 2030 5.15 evb vout shengyang.chen See merge request sdk/linux!444
2022-09-07Merge branch 'CR_2026_compatible_5.15_ziv.xu' into 'jh7110-5.15.y-devel'andy.hu3-11/+11
CR_2026_compatible_standard_515 See merge request sdk/linux!459
2022-09-07Merge branch 'CR_2071_compatible_standard_515_walker.chen' into ↵andy.hu1-3/+3
'jh7110-5.15.y-devel' CR_2071_audio_compatible_standard_515 See merge request sdk/linux!450
2022-09-07Merge branch 'CR_2034_515_compatible_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu4-42/+24
CR_2034_515 compatible xingyu.wu See merge request sdk/linux!448
2022-09-07Merge branch 'CR_2004_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu2-4/+4
CR_2004_v4l2_515_changhuang.liang v4l2: modify v4l2 compatible name See merge request sdk/linux!428
2022-09-07Merge branch 'CR_2002_SDIO.CAN.SEC_515_william.qiu' into 'jh7110-5.15.y-devel'andy.hu1-6/+5
CR_2002_515:dt-bindings:william:modify sdio\can\sec compatible See merge request sdk/linux!425
2022-09-07Merge branch 'CR_1962_515_pinctrl_sf_jianlong' into 'jh7110-5.15.y-devel'andy.hu4-953/+953
CR_1962 pinctrl: starfive: replace sf to starfive See merge request sdk/linux!418
2022-09-06dts:starfive:Set can1 to canfdWilliam Qiu4-48/+2
Set can0 to can and set can1 to canfd Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-09-05linux:drivers: revise 'stf' to 'starfive'Ziv.Xu1-1/+1
revise "stf" to "starfive" for PCIE, CPUfreq, CPUidle, PMIC driver. Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
2022-09-05riscv:dts: revise compatible value for PCIE/CPUfreq/idle/PMICZiv.Xu2-10/+10
revise compatible values for PCIE/CPUfreq/idle/PMIC Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
2022-09-02CR_2071_audio_compatible_standard_515Walker Chen1-3/+3
Standardization naming of compatible for device id and dts Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2022-09-01spi:starfive:Modify compatible nameXingyu Wu1-7/+7
Modify compatible name to 'starfive,jh7110-spi-pl022'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-01sound:i2s:Modify compatible nameXingyu Wu1-13/+12
Modify compatible name to 'starfive,jh7110-i2stx-4ch1'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-01watchdog:starfive:Modify compattible nameXingyu Wu1-1/+1
Modify compatible name to 'starfive,jh7110-wdt'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-01sound:starfive:spdif:Modify compatible nameXingyu Wu3-18/+1
1.Modify compatible name to 'starfive,jh7110-spdif'. 2.Remove spdif-receiver node. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-01sound:starfive:pwmdac:Modify compatible nameXingyu Wu1-2/+2
Modify compatible name to 'starfive,jh7110-pwmdac'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-09-01clocksource:timer:Modify compatible nameXingyu Wu1-1/+1
Modify compatible name to 'starfive,jh7110-timers'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-08-31riscv:dts:drmshengyang.chen4-16/+16
replace dts compatible value for vout Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2022-08-31dma: dw-axi-dmac: Standardize property "compatible"Hal Feng1-1/+1
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-08-31pwm: pwm-starfive-ptc: Standardize property "compatible"Hal Feng1-1/+1
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-08-31v4l2: modify v4l2 compatible namechanghuang.liang2-4/+4
dts/starfive: modify v4l2 compatible name Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-08-30hw_random: starfive-trng: Standardize property "compatible"Hal Feng1-1/+1
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-08-30rtc: starfive: Standardize property "compatible"Hal Feng1-1/+1
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>