mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
sandbox: pch: Add a test for the PCH uclass
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>
This commit is contained in:
@@ -161,4 +161,12 @@ int sandbox_get_setup_called(struct udevice *dev);
|
||||
*/
|
||||
int sandbox_get_sound_sum(struct udevice *dev);
|
||||
|
||||
/**
|
||||
* sandbox_get_pch_spi_protect() - Get the PCI SPI protection status
|
||||
*
|
||||
* @dev: Device to check
|
||||
* @return 0 if not protected, 1 if protected
|
||||
*/
|
||||
int sandbox_get_pch_spi_protect(struct udevice *dev);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user