pch: Add ioctl support
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:51 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:27:08 +0000 (15:27 +0800)
commit1260f8c0efe126cf952c1bc19d975af34908a79d
tree38d5606156196d3d8a1ced890bd54578a506f15c
parentb45c833c71f1ce26e0db6c30f96dc3228051cd15
pch: Add ioctl support

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>
drivers/pch/pch-uclass.c
drivers/pch/sandbox_pch.c
include/pch.h
test/dm/pch.c