mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
dm: test: Add tests for the clk uclass
Add tests of each API call using a sandbox clock device. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c02790ce12
commit
6a1c7cef14
7 changed files with 162 additions and 0 deletions
|
@ -17,6 +17,17 @@
|
|||
#define SANDBOX_PCI_CLASS_CODE PCI_CLASS_CODE_COMM
|
||||
#define SANDBOX_PCI_CLASS_SUB_CODE PCI_CLASS_SUB_CODE_COMM_SERIAL
|
||||
|
||||
#define SANDBOX_CLK_RATE 32768
|
||||
|
||||
enum {
|
||||
PERIPH_ID_FIRST = 0,
|
||||
PERIPH_ID_SPI = PERIPH_ID_FIRST,
|
||||
PERIPH_ID_I2C,
|
||||
PERIPH_ID_PCI,
|
||||
|
||||
PERIPH_ID_COUNT,
|
||||
};
|
||||
|
||||
/**
|
||||
* sandbox_i2c_set_test_mode() - set test mode for running unit tests
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue