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>
To make sure the parameter is from TOS, compare the checksum.
Change-Id: Id7c60e5666078b2655787d7e66dd71e6860f6ade
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
linux-event-codes.h defines more key code than
input.h
Change-Id: Ib9c9946bb78420fdd6b1dbcdad48e46007cc4752
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
kernel may need more then 32M, make room for it.
Change-Id: Ia8916224a5915153aea731f45dddac1dda09df5b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
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>
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>
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>
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>
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>
the lib avb use this function to set key version
Change-Id: Id0903b3326a0d6a0eadebd1ce23a19f92102908c
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
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>
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>
move CONFIG_OPTEE_V1/V2 to lib/optee_clientApi/Kconfig
Change-Id: I446454547a186a27110aa95183264154fc538de9
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Using Google's VID and PID default for fastboot command.
Change-Id: I8deb275f0f6a925b8e0b9668b6ba59abd44b74a5
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
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>
fdt has been relocate, can not use the addr from gd.
Change-Id: I108eb13cb62b387f688e6fa1e7d26b2649f67a82
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>