Age | Commit message (Collapse) | Author | Files | Lines |
|
Enable pm advanced debug, so that we can
check runtime PM status.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
Add runtime pm operation in PWMDAC driver.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
add pm ops for rtc
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
So i2c will be initialized after uart.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Uncomment the system pm and runtime pm ops functions. Restore
the Synopsys DesignWare i2c driver to the original version.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Fix the bug that pdm function name spell error.
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
|
|
Disable clock when audio driver is loaded.
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
|
|
fix up system pm error and add runtime pm
Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
|
|
Add hibernation in starfive I2S driver.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
add system pm for rtc
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
add runtime pm and system pm ops
Signed-off-by: ys <eason.xiong@starfivetech.com>
|
|
add sec runtime PM ops.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
modify SDIO/EMMC runtime PM callback function.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
modify runtime PM callback function.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
Add runtime and system pm in isp clock tree driver.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Because it causes error when system pm.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
reset execute permissions for FILE: drivers/hwmon/sfctemp.c
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
add device pm for temp sensor
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
add device pm for trng
Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
|
|
add device pm for spi
Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
|
|
add SDIO/EMMC runtime pm ops.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
add canfd runtime PM ops.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
Add runtime pm and system pm in spdif driver.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Add system/runtime pm ops functions and enable runtime pm.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Support system pm fuction when suspend and resume.
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
|
|
Implement Runtime PM and System PM for PDM and TDM module.
Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
|
|
add system pm for watchdog
Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
|
|
add runtime pm for watchdog
Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
|
|
add starfive pm supend/resume and runtime pm runtime
suspend and resume ops
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
|
|
Because of the limitation of hardware design, only enable/disable clk here.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
|
|
Used PLDA link up/down status in probe to indicate the slot situations.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
|
|
Remove hardware operations in vin init, hardware operation need turn on
power domain.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
VIN delete noc bus clock.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Delete operate isp noc bus clock in vin module.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Vin module get reset use share due to the same reset single with isp
clock module.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Fixed vin line stream_out not change except WR.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
VIN driver use pm save power, delete turn on pmu multiple times
and modify isp clk and reset after turn on pmu.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Correct some code.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Delete the control direct control register and correct some code.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Use runtime/system pm save power.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Separate set stream and runtime PM, use runtime PM.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
Switch to using runtime PM for power management.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
delete read chip id in set power on.
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
|
|
The intent is to use a genpd governor when there are some states that needs
to be managed. Although, the current code ends up to never assign a
governor, let's fix this.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
|
|
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>
|
|
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>
|
|
The riscv-sbi driver compatible string should not
changed to starfive since it's a common driver
for riscv.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
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>
|
|
Count PLL1 rate through reading syscon registers.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Change PLL0 rate to 1.5GHz and change cpu_core divider.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|