summaryrefslogtreecommitdiff
path: root/drivers/spmi/spmi-sandbox.c
Commit message (Collapse)AuthorAgeLines
* spmi: Fix sandbox spmi driver memory corruptionMateusz Kulikowski2016-04-11-1/+2
| | | | | | | | | | | There is off-by-one error in sandbox_emul_gpio that causes segfault of certain tests. EMUL_GPIO_REG_END is the address of last valid (emulated) register. This patch fixed this (by adding one more element to emulated register array). Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
* spmi: Add sandbox test driverMateusz Kulikowski2016-04-01-0/+157
This patch adds emulated spmi bus controller with part of pm8916 pmic on it to sandbox and tests validating SPMI uclass. Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>