Age | Commit message (Collapse) | Author |
|
If 'no_consle_suspend' is set in kernel cmdline, debuguart needs to be
reinitialized when system resumes. If 'no_console_suspend' is not set,
reinitialization is not required.
Note: this is only a workaround way. To solve the issue, either we don't
shutdown some resources in serail driver's suspend; or we need to
dynamically find out which uart is being used as console (here we
hardcoded it as uart0).
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
cpu_kill wait cpu_die finish.
solve kernel hung when suspend without no_console_suspend
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Using RTC as a wakeup source
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
How to test: Documentation/rtc.txt
echo +n > /sys/class/rtc/rtc1/wakealarm; (n is seconds to genetate wakeup irq)
echo mem > /sys/power/state
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Disable regulator LDO9 Which can change the status of EFUSE. The error
status of EFUSE will crash the system during boot and resume of SR.
Signed-off-by: LiXin <li.xin@linaro.org>
|
|
Add power-management device tree node
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Add suspend/resume and poweroff functionality into mach-hs
platform.
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
integration-linux-mainline
|
|
This reverts commit 6e6d98df841c9c297585be3168dfd6141924f272.
|
|
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Support hi6421 rtc function.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
While hi6421 SoC interrupt occurs, it always locks spinlock even calling
child irq handler. If child irq handler accesses pmic registers, it will
be dead lock since accessing function also uses spinlock.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Introduced by commit dd7229d3e5c7bff0a9501632755c5b6b209381ff
Caused sd card init fail
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
integration-linux-mainline
|
|
|
|
Use devm_pinctrl_get_select_default to set default pinctrl
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Use devm_pinctrl_get_select_default to set default pinctrl
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
enable hisilicon nand flash driver
Signed-off-by: Mingjun Zhang <zhang.mingjun@linaro.org>
|
|
Add more operation to power on/off cpu, as well as reset cpu
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
mmc driver & filesystem support
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
to be reverted
Since clk driver still can not choose parent accordingly, add testsdclk and
access register directly for simplicity
The patch can be reverted if clk driver is enhanced
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Support sd/emmc
make menuconfig
Device Drivers --->
[*] MMC/SD/SDIO card support --->
[*] Internal DMAC interface
[*] Hisilicon specific extensions for Synopsys DW Memory Card Interface
(32) Number of minors per block device
File system -> extX, vfat, msdos, lanuguage support
Notes:
1, emmc has to work under DMA mode, pio not work
2, emmc SDMMC_FIFOTH (0x04c) can not provide correct value,
fifo-depth should be provided in dts
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
int (*get_cd)(struct dw_mci *host, u32 slot_id)
Add host info to pass priv, where contains cd pin
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Remove __exit_p, which also requires change static func
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Signed-off-by: LiXin <li.xin@linaro.org>
|
|
add yaffs2 filesystem support, also config auto select yaffs2 when using
hisilicon nfc driver.
Signed-off-by: Mingjun Zhang <zhang.mingjun@linaro.org>
|
|
add flash node in hi3716.dtsi, also document binding rules
Signed-off-by: Mingjun Zhang <zhang.mingjun@linaro.org>
|
|
Hisilicon nfc is a powerful nand flash controller with dma and
hardware ecc functions. This driver supports some non-standard
nand chips, included in the driver's nand ids table.
Signed-off-by: Mingjun Zhang <zhang.mingjun@linaro.org>
|
|
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Support Hi6421 PMIC powerkey driver.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Support PMIC irq handling.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Sync code with 3.10 to pull irqdomain code.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Avoid to use mutex lock in rmw operation. Use spin lock with irq
disabled instead. Since irq handler also accesses pmic register,
we should avoid resource conflict between irq context and kernel
context.
And append spin lock operation in pmic read/write too.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Use module_platform_driver() instead.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Use devm_xx api instead.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
integration-linux-mainline
|
|
Sync pinctrl single document with 3.10.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Now node names can't be same. Otherwise, pinmux setting would be
dropped.
Sync properties with 3.10 at the same time.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
pinctrl-single is updated on 3.10. The interface on pin configurations
are changed. So sync latest code into code base.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
pinctrl_get_device_gpio_range() only checks whether a certain GPIO pin
is in gpio range. But maybe some GPIO pins don't have back-end pinctrl
interface, it means that these pins are always configured as GPIO
function. For example, gpio159 isn't related to back-end pinctrl device
in Hi3620 while other GPIO pins are related to back-end pinctrl device.
Append pinctrl_ready_for_gpio_range() that is used to check whether
pinctrl device with GPIO range is ready. This function will be called
after pinctrl_get_device_gpio_range() fails.
If pinctrl device with GPIO range is found, it means that pinctrl device
is already launched and a certain GPIO pin just don't have back-end pinctrl
interface. Then pinctrl_request_gpio() shouldn't return -EPROBE_DEFER in
this case.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
Rename PIN_CONFIG_INPUT_SCHMITT_DISABLE to
PIN_CONFIG_INPUT_SCHMITT_ENABLE. It's used to make it more generialize.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
Some pin configurations IP allows to set the current output to the pin.
This patch adds such a parameter to the pinconf-generic mechanism.
This parameter takes as argument the drive strength in mA.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
Hisilicon require system register to enable/disable cpu
How to test:
cat proc/interrupts
echo 0 > /sys/devices/system/cpu/cpuX/online
cat proc/interrupts
echo 1 > /sys/devices/system/cpu/cpuX/online
reboot
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Zhang Mingjun <zhang.mingjun@linaro.org>
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
add l2 aux prop in hi3716.dtsi
Signed-off-by: Mingjun Zhang <zhang.mingjun@linaro.org>
|
|
sfc350's io registers don't support byte reading(memcpy may produce byte
reading instruction). Using readl instead of memcpy when dealing with the
io regsters.
Signed-off-by: Mingjun Zhang <zhang.mingjun@linaro.org>
|