mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 16:46:23 +00:00
meowth_fp: update RW signature verification config
Move the RW signature verification in a dedicated task rather than on the synchronous startup path, in order to be compatible with our flashrom update mechanisms (but at the expense of additional latency in RO). Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=b:36125319 TEST=flashrom -p ec:type=fp -w ec.bin Change-Id: If9ae66bfde0c5922db86dc9acfd4ee766089fa1d Reviewed-on: https://chromium-review.googlesource.com/936542 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
870fa901a3
commit
e0e2645b1e
@@ -17,6 +17,7 @@
|
||||
* 's' is the stack size in bytes; must be a multiple of 8
|
||||
*/
|
||||
#define CONFIG_TASK_LIST \
|
||||
TASK_ALWAYS_RO(RWSIG, rwsig_task, NULL, 1280) \
|
||||
TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS_RW(FPSENSOR, fp_task, NULL, 4096) \
|
||||
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
|
||||
@@ -49,7 +49,7 @@ echo 1 > /sys/class/gpio/gpio${GPIO_NRST}/value
|
||||
|
||||
echo "in" > /sys/class/gpio/gpio${GPIO_NRST}/direction
|
||||
|
||||
stm32mon -s ${SPIDEV} -e -w $1
|
||||
stm32mon -p -s ${SPIDEV} -e -w $1
|
||||
|
||||
# unload spidev
|
||||
echo "${SPIID}" > /sys/bus/spi/drivers/spidev/unbind
|
||||
@@ -66,8 +66,8 @@ echo "in" > /sys/class/gpio/gpio${GPIO_NRST}/direction
|
||||
echo ${GPIO_BOOT0} > /sys/class/gpio/unexport
|
||||
echo ${GPIO_NRST} > /sys/class/gpio/unexport
|
||||
|
||||
# wait for FP MCU to come back up
|
||||
sleep 1
|
||||
# wait for FP MCU to come back up (including RWSIG delay)
|
||||
sleep 2
|
||||
# Put back cros_fp driver
|
||||
echo "${SPIID}" > /sys/bus/spi/drivers/cros-ec-spi/bind
|
||||
# Test it
|
||||
|
||||
Reference in New Issue
Block a user