summaryrefslogtreecommitdiff
path: root/drivers/pch/sandbox_pch.c
Commit message (Collapse)AuthorAgeFilesLines
* pch: Add ioctl supportSimon Glass2019-02-201-0/+17
| | | | | | | | | | | | At present the PCH has 4 operations and these are reasonably widely used in the drivers. But sometimes we want to add rarely used operations, and each of these currently adds to the size of the PCH operations table. Add an ioctl() method which can be easily expanded without any more impact on the operations table. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* sandbox: pch: Add a test for the PCH uclassSimon Glass2019-02-201-0/+69
This uclass currently has no tests. Add a sandbox driver and some simple tests to provide basic coverage. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: Use "sandbox,pch" for the compatible string, for consistency] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>