Without this, otg supply is always provided by PMIC and PMIC
can not enter charge mode, because charge or otg supply output
is exclusive, only one choice at one time.
Change-Id: I4c00392d93abdf55b2b663e8a6a8822249c64d74
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
without this patch, we use otg_in to stands for otg attach and power
supply state(from dc or pmic), there is something wrong with code logic,
let's make it clear.
Change-Id: I080e6b137811b2335e0985e786ddfc4eed52e8d6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
CDP charger should be treat as SDP charger, but charge current 1.5A(not 450mA).
Change-Id: I9892e8ce7cb26a1990b344a9ea83ce55a9a1b81a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
CDP charger should be treat as SDP charger, but charge current 1.5A(not 450mA).
Change-Id: I3091ba599ffbb417ea89169d9ab59853f8280f53
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Without this, otg supply is always provided by PMIC and PMIC
can not enter charge mode, because charge or otg supply output
is exclusive, only one choice at one time.
Change-Id: I445c1ec6aac9520593bfb53aa7681352417f0543
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
without this patch, we use otg_in to stands for otg attach and power
supply state(from dc or pmic), there is something wrong with code logic,
let's make it clear.
Change-Id: I1cdcd3be521039b75badc3b805e70f202ebcac77
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Add notify state to the struct vdm_state, otherwise, we
couldn't notify DP because vdm_state_ready would be ignored
by IS_VDM_ACTIVE.
Change-Id: Ib03dae2ebdfbfba0061af0e9ae2928c0c9123192
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Signed-off-by: zain wang <wzz@rock-chips.com>
We need to know how many channels that are needed
to enable on hw_params for ADC groups, it's more
reasonable and more flexible.
By the way, clean up some coding styles.
Change-Id: Ia13b1667492dd60a63fc17130ff09b6b1b01b8df
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
To keep consistent to other platform, we use FIQ as console output
in rk3288 linux.
Change-Id: I36c53b12a872d8f282addd16d0cad8cabfc8a5d6
Signed-off-by: Lin Huang <hl@rock-chips.com>
LSK 18.05 v4.4-android
* tag 'lsk-v4.4-18.05-android': (605 commits)
ANDROID: sdcardfs: Don't d_drop in d_revalidate
goldfish: pipe: ANDROID: mark local functions static
UPSTREAM: ANDROID: binder: prevent transactions into own process.
goldfish: pipe: ANDROID: Add DMA support
UPSTREAM: f2fs: clear PageError on writepage - part 2
UPSTREAM: f2fs: avoid fsync() failure caused by EAGAIN in writepage()
ANDROID: x86_64_cuttlefish_defconfig: Disable KPTI
UPSTREAM: mac80211: ibss: Fix channel type enum in ieee80211_sta_join_ibss()
UPSTREAM: mac80211: Fix clang warning about constant operand in logical operation
UPSTREAM: nl80211: Fix enum type of variable in nl80211_put_sta_rate()
UPSTREAM: sysfs: remove signedness from sysfs_get_dirent
UPSTREAM: tracing: Use cpumask_available() to check if cpumask variable may be used
BACKPORT: clocksource: Use GENMASK_ULL in definition of CLOCKSOURCE_MASK
UPSTREAM: netpoll: Fix device name check in netpoll_setup()
FROMLIST: staging: Fix sparse warnings in vsoc driver.
FROMLIST: staging: vsoc: Fix a i386-randconfig warning.
FROMLIST: staging: vsoc: Create wc kernel mapping for region shm.
goldfish: pipe: ANDROID: Replace writel with gf_write_ptr
goldfish: pipe: ANDROID: Use dev_ logging instead of pr_
goldfish: pipe: ANDROID: fix checkpatch warnings
...
Conflicts:
fs/f2fs/node.c
scripts/Makefile.lib
Change-Id: Ib92d11938a383464249fe6f2dad3ab2a05bc4770
to cope with Wide Temperature Range test, we maxamize
soc's sw/hw over temperature power off degree.
fow now, 115 degree Celsius is set to trigger sw powering off.
if sw function does not work and temperature is continuing to
grow up, and till 120 degree Celsius, hw powering off/reset
is triggered.
Change-Id: I751e9ea754f434bc20df39fdbdb40216a1582c39
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
The **valid** is always false in __probe__ function, so that the time
will be invalid at the first time.
Fixes: 66af9943e3 ("rtc: hym8563: add initialization data")
Change-Id: Id7a245159ab0fc4e9980db5e538b05ff17a02d89
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This reverts commit 4003f6b715.
This is a redefine of commit bf0c4e047 (arm64: kconfig: Move LIST_POISON
to a safe value)
Change-Id: Ibde683271af2bc982f3727a98ebd1530fc503dd1
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
init temp_last with a more suitable value. also we eliminate
the steady state error by ajusting the temp calc fomular.
extra useful log is added to mark tsadc is probed successfully.
Change-Id: If88031c10646437fa7b5152c70aeaebf93e4df05
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
This patch prepare dma cyclic with total buffersize,
and let the dmaengine to handle the interlace buffer.
Change-Id: Ic0ee647e006c72c7eedc77a30d1e2d0eb902f120
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
By default, we enable all of ADC groups on RK3308 EVB.
Change-Id: Id89adab1c7d9cde22fb4ac3d5dcd3b18a8a96da3
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
There are 3 I2S that can be connected to aocdec on RK3308:
- i2s2_8ch
- i2s3_4ch
- i2s1_2ch
We can change the order of i2s sdis to meet different
customized requirements.
Change-Id: I62b2e953ea76e71590bcd4244883b391a9bec345
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
This patch supports ADC groups for assignments that
need to be used, we don't need to enable all of ADC
channels, so that the runtime power consumption
will also be improved.
By the way, clean up the useless structure members
and source codes.
Change-Id: I7c559543eb9344f0022ce99a6938114084ac17db
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
The RK3308 codec is attached with multi-codec machine
driver, not simple-card, so we don't need use the
property #sound-dai-cells any more.
Change-Id: Ie1afdc6bf2820efbb0054ea5e6d91d9c9025351e
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Make the i2s controller to implement the PWM continuous mode, use
I2S's Left/right two channel, each channel is only 32bits, so the
precision of duty percent is 1/64.
Change-Id: Ie134d964cdf33573e918b2f79cc8e53118f50a1e
Signed-off-by: David Wu <david.wu@rock-chips.com>
This patch add support for combine several audio digital interface
into a mix-dai, for example, we can combine two 8ch i2s into a 16ch dai.
or combine 6ch pdm and 2ch i2s into a 8ch dai.
Change-Id: I4e920c0cdf9c8d954c12b48938a48926cfe403b0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>