Commit Graph

47162 Commits

Author SHA1 Message Date
shengfei Xu 616056c90c power: charge_animation: skip charge if charger offline
Change-Id: I66bd36fc4d3cd4a2f79cd5eb425f857fc8a577cb
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2018-03-19 09:25:49 +08:00
Joseph Chen dc8812a0ee test: rockchip: timer: move out timer irq definition
Change-Id: Ia6322291a6ddb05f7971a0a51e161c046f9e91d2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-19 09:25:49 +08:00
Kever Yang 2dea0a8ed9 rockchip: evb-px30: disable NET support
Change-Id: Iba155fdd9da72df18d441f51b8b59ef888fdbeba
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-16 18:10:06 +08:00
Kever Yang 33ffdd2473 debug: convert to use pr_debug for pte init and find dev
These two op have too much print, convert to pr_debug and not print
by default.

Change-Id: I5b3c738db783419717441e24ee0b04ab6f02d61e
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-16 18:09:21 +08:00
Zhaoyifeng f111af6856 drivers: rknand: update ftl for rk3226 and px30
1. Optimize the garbage processing.
2. Fix the firmware upgrade failure issue.

Change-Id: I20db620bcb2dbfa746eed71b2464140c67bfc227
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2018-03-16 10:01:14 +08:00
Kever Yang e7e0d99023 rockchip: add checksum compare for tos parameter
To make sure the parameter is from TOS, compare the checksum.

Change-Id: Id7c60e5666078b2655787d7e66dd71e6860f6ade
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-15 16:24:44 +08:00
Kever Yang a09afa0854 rockchip: spl/tpl: move stimer_init to very begining
Change-Id: I1e962df10c2893ee66a98201de5beb586fce1fcb
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-15 15:57:53 +08:00
Joseph Chen 49f812dde0 include: irq-platform.h: add px30 timer0 irq
Change-Id: Ieadd2aa4d18c8db8927da225a62d9d58e9fd4342
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Joseph Chen a46d9cd774 fuel gauge: rk817: disable debug info
Change-Id: I6b48d9302aed33aa678b3a5496ed1aa8627a82b9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Joseph Chen 0f3732faad dm: video: add reserve size debug info for rockchip video
Change-Id: I0d2693ea871ea41c84143e0f4e4c52c65b308dd7
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Joseph Chen c7a79779cf configs: evb-rk3326: enable CONFIG_TEST_ROCKCHIP
Change-Id: I9d23acf226a075af790d9659b38763fb134967de
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Joseph Chen 6ee123990a test: rockchip: timer: disable timer before configure
Change-Id: I0c1e8749069554f7aa7a63c416cd4691ad0e3761
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Joseph Chen b0635068cf test: rockchip: key: add more key event test
add KEY_HOME, KEY_MENU, KEY_ESC.

Change-Id: Ifbf43169973e0a2bbdb062713482ced1ceae7be3
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Joseph Chen 0abc377938 include: key.h: use linux-event-codes.h
linux-event-codes.h defines more key code than
input.h

Change-Id: Ib9c9946bb78420fdd6b1dbcdad48e46007cc4752
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-15 15:53:11 +08:00
Finley Xiao 6fb52ead7d clk: rockchip: px30: Fix pll lock status
Change-Id: I0ccae06f42b37a21af7fc877bb00ca498dd8b95f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-15 15:47:57 +08:00
Finley Xiao fce7cb7b10 clk: rockchip: px30: Fix return value for some clocks
Change-Id: Iac7a67337f05c42e99ad5e2eebbeb82b6375f676
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-15 15:47:26 +08:00
Kever Yang 432f5e8c58 rockchip: px30: extend space for kenrel load
kernel may need more then 32M, make room for it.

Change-Id: Ia8916224a5915153aea731f45dddac1dda09df5b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-13 14:31:29 +08:00
Kever Yang 96f1b3d949 rockchip: clk: px30: support emmc ciu-sample clock
ciu-sample is a dummy clock, which should be the same with sclk_emmc.

Change-Id: I5350774a390555153ddaee49fb9613f25f4f249b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-13 11:36:03 +08:00
shengfei Xu 6aaa9b68fd power: fuel gauge: rk817: fix the display soc jump from 0 to 100
Change-Id: I8ad336bfdce6bac04ec5d07d885fd8a0992b4339
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2018-03-13 11:13:01 +08:00
Sandy Huang 52015e9715 drm/rockchip: drm driver version only need print once
Change-Id: I34999b0cf660437e6c2794137a4f35e89025a965
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-12 11:27:50 +08:00
Kever Yang 0dc8896c7e rockchip: clk: px30: only do one time clk init
We may get into clk_probe more than one time from TPL/SPL/U-Boot,
and we only need to init bus clock one time.

Change-Id: Iab0434c66d344ff57c1edd30679c3ab3bb8f2b17
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-09 18:21:07 +08:00
Kever Yang 2b1cc44fde rockchip: add arch_cpu_init() in tpl
Make sure arch_cpu_init() is called very early,
if TPL exist, call it at the beginning of TPL board_init() and do not
call it again in SPL.

Change-Id: I035bac4c5da28640c866d51d1b7b250eb5912440
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-09 16:45:51 +08:00
Hisping Lin 8e407a7f44 lib: optee_client: fix compare bug in keymaster TA
uboot send data and data length to keymaster TA, keymaster
TA secure store the data, and read temp data from secure
store, compare data and temp data, but the compare length
use temp data length is wrong, fix the bug to use data length.

Change-Id: I900a7ab1b1e95ca844dfb7327c34c793cf635278
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2018-03-09 10:32:54 +08:00
Jason Zhu 86457e1608 drivers: irq: fix compile warning
In the function gpio_get_intr_type, 'type' may be
used uninitialized if not add default process.

Change-Id: I917fecc2ed06cc844c30c93508084f32608edf6f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-09 09:04:40 +08:00
Jason Zhu 82e713e13f lib: avb: support set_key_version
the lib avb use this function to set key version

Change-Id: Id0903b3326a0d6a0eadebd1ce23a19f92102908c
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-07 16:45:39 +08:00
Jason Zhu d9d5eb7401 androidboot: add cmd bootavb perm_attr_test
Read and print the perm_attr.

Change-Id: I1e2b73afa1e872eea7abf75d55570b1c8b19c311
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-07 08:59:46 +08:00
Kever Yang b66b4823c8 Revert "configs: rk3328_common: Increase the spl size for new pinctrl build-in"
This reverts commit e7d7797312.
0x10000 is start address of atf, we can not use it now.

Change-Id: I11267f2b20b38c1f67da2c7a44093a140b6574ac
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-07 08:57:39 +08:00
Hisping Lin e37b3ef462 lib: optee_client: update keymaster TA
uboot read date return error when file not exit,
do not to create new file.

Change-Id: Ic4cbc631b9e75dc345759d6d0dbcc86250245511
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2018-03-06 17:32:58 +08:00
Hisping Lin d7407b119c lib: optee_client: move CONFIG_OPTEE_V1/V2 define
move CONFIG_OPTEE_V1/V2 to lib/optee_clientApi/Kconfig

Change-Id: I446454547a186a27110aa95183264154fc538de9
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2018-03-06 17:32:55 +08:00
Kever Yang 07e846a0c2 rockchip: defconfig: rk3328: remove SPL_PINCTRL
We do not need pinctrl driver in SPL.

Change-Id: I60528976cece11c20cc3f6968631b9e355da23b7
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-06 17:22:54 +08:00
Frank Wang c0acb0f2ed usb: gadget: use google's vid and pid for fastboot
Using Google's VID and PID default for fastboot command.

Change-Id: I8deb275f0f6a925b8e0b9668b6ba59abd44b74a5
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2018-03-06 15:39:56 +08:00
Kever Yang e4ed4bd408 rockchip: rk3328: enable arch_cpu_init() setting in SPL
arch_cpu_init() is only available in SPL but not in TPL.

Change-Id: I76da98fe37c4e4ff00e33510eee6916ea20a7325
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-06 15:39:08 +08:00
Kever Yang 9fcf96223c rockchip: bootm: update fdt addr for display fixup
fdt has been relocate, can not use the addr from gd.

Change-Id: I108eb13cb62b387f688e6fa1e7d26b2649f67a82
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-03-06 15:38:28 +08:00
Jason Zhu e17ddcea32 fs: add api to get the name of filesystem type
Let others to get the name of partition filesystem type which
is private member in fs/fs.c

Change-Id: Iae5c89c705fa65b5eedb4550963003b6e03e2820
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-06 15:33:28 +08:00
Jason Zhu de78ceae23 fastboot: break fastboot 64 bytes limit
Some message can not be complete transmission because
the fastboot can only transmit 64 bytes one time. So add
sleep_thread() to judge whether the data is complete
transmission before call fastboot_complete().

Change-Id: I9057ffc9ca4b92db8c9ab14e4650d386c5d06254
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-06 15:33:28 +08:00
Joseph Chen 333857218c dm: key: fix compile error with DEBUG enabled
Change-Id: I3e5aeb6598c8601efb669329203ad59a825c2b32
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-06 15:30:05 +08:00
Andy Yan 95f431d58a sysreset: rockchip: use dev_read_addr_ptr get cru base
Use system api dev_read_addr_ptr to get cru reg base,
rather than rockchip private api rockchip_get_cru, which
will be cleanup later.

Change-Id: I8ec067d2ffd1a83daaaeb28e52e5c90abc89d36b
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-03-06 15:29:45 +08:00
Lin Huang ccced9e100 clk: rockchip: rk3399: refactor configure cpu clock function
some board request enable cpu big core clock in uboot,
refactor rk3399_configure_cpu() function, so that the little
core and big core can reuse this function to set clock.

Change-Id: I0390d22179faf91307b22348f6f9329a58f00143
Signed-off-by: Lin Huang <hl@rock-chips.com>
2018-03-06 15:29:08 +08:00
Lin Huang 5f42424bae clk: rockchip: Correct and standardize clock divisor range assertions
Some of the asserts for valid clock divisor ranges were off by one. This
patch corrects them and writes them all in a consistent way.

Change-Id: Ia87974c8e27b7414cfe9210a916d114aa81f5ccb
Signed-off-by: Lin Huang <hl@rock-chips.com>
2018-03-06 15:29:08 +08:00
Lin Huang 1702a77f8e clk: rockchip: rk3399: Fix rkclk_init() to actually use PERILP1_PCLK_HZ
This patch fixes a typo in the clock initialization code that caused the
PERILP1_PCLK_HZ constant to be ignored and the clock to always run at
the same speed as its parent (PERILP1_HCLK_HZ). Since we've done all our
previous tests and validation with this bug, we should probably increase
the value of the constant (that had not actually been used) to the value
that we had been incorrectly using instead.

Change-Id: I8e1725f71ea0dbacd01929b8e8a80b91dc4f17cc
Signed-off-by: Lin Huang <hl@rock-chips.com>
2018-03-06 15:29:08 +08:00
Joseph Chen 102804eccc video: pwm_backlight: fix backlight disable fail issue
1. set duty as 0;
2. if there is not "enable-gpios", don't disable pwm;

Change-Id: Ie788da61a38a6bfce4cdc5395e522e71a599eef0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-06 10:11:19 +08:00
Joseph Chen 409b7b498b pwm: rk_pwm: don't default disable pwm while set config
Change-Id: Id6be8fcef2da98662ebbcaff5df4dc014303914a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-06 10:11:19 +08:00
Joseph Chen b401107162 rockchip: dts: rk3326-evb: fix typo "RK3126" -> "RK3326"
Change-Id: I75afe0e718f1589d758d11f326526d505aef4fd9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-06 10:11:19 +08:00
Jason Zhu da980a5200 lib: avb: initialize temp_flag before next used
Change-Id: Icbc570fdb1cd1f8ff30309f5776421ee6c4a086b
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 20:41:36 +08:00
Jason Zhu 2e40c2c11f fastboot: update fastboot commands
1. cb_oem.
2. cb_flashing.
3. cd_flash.

Change-Id: I6348c53c992b794f37d6d1813be04bd3dc63d1b5
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 20:40:00 +08:00
Jason Zhu 2ae0a53a43 arm: Bump COMMAND_LINE_SIZE to 2048
The current limit is small for avb Boot args.

Change-Id: I381fc1a09a533036427a3ed29395eae2f18208d1
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 20:39:46 +08:00
Jason Zhu 90ed034fda lib: avb: change the return value if the item is not found
Change-Id: Ie6d29a59323789c594b4c6e9167c3bbe58e25e9f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 20:39:32 +08:00
Jason Zhu d52a71fde0 configs: rockchip: px30: enlarge malloc length
The avb process may malloc a large buffer,
so enlarge malloc length.

Change-Id: I8a67d4c60ac4e0faa2726d1e188b7901b7f2a7c4
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 20:39:21 +08:00
Jason Zhu 2301a6f51c rockchip: resrouce_img: support a/b
If apply the a/b system, open the macro CONFIG_ANDROID_AB.
Then get the dtb from the boot '_a' or '_b' image.

Change-Id: I21ad9d5a5e6e63e26bc16b1aeeb2e690c669a535
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 14:42:53 +08:00
Jason Zhu 76c40fa69f lib: avb: fix compile error in arm64
Change-Id: I7be9c7bab1721500c70cacb1774b579d2939436a
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-03-05 11:35:03 +08:00