Simon Glass | 2149e11 | 2021-08-07 07:24:12 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Sandbox driver for testing GPIOs with of-platdata |
| 4 | * |
| 5 | * Copyright 2021 Google LLC |
| 6 | */ |
| 7 | |
Simon Glass | 2149e11 | 2021-08-07 07:24:12 -0600 | [diff] [blame] | 8 | #include <dm.h> |
| 9 | #include <asm-generic/gpio.h> |
| 10 | |
| 11 | static const struct udevice_id sandbox_gpio_test_ids[] = { |
| 12 | { .compatible = "sandbox,gpio-test" }, |
| 13 | { } |
| 14 | }; |
| 15 | |
| 16 | U_BOOT_DRIVER(sandbox_gpio_test) = { |
| 17 | .name = "sandbox_gpio_test", |
| 18 | .id = UCLASS_MISC, |
| 19 | .of_match = sandbox_gpio_test_ids, |
| 20 | }; |