Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2018 |
| 4 | * Quentin Schulz, Bootlin, quentin.schulz@bootlin.com |
| 5 | * |
Simon Glass | 1d8364a | 2020-12-28 20:34:54 -0700 | [diff] [blame] | 6 | * Structure for use with U_BOOT_DRVINFO for pl022 SPI devices or to use |
Simon Glass | aad29ae | 2020-12-03 16:55:21 -0700 | [diff] [blame] | 7 | * in of_to_plat. |
Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
Jagan Teki | 0af1750 | 2018-11-22 11:54:08 +0530 | [diff] [blame] | 10 | #ifndef __spi_pl022_h |
| 11 | #define __spi_pl022_h |
Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 12 | |
Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 13 | #include <fdtdec.h> |
| 14 | |
| 15 | struct pl022_spi_pdata { |
| 16 | fdt_addr_t addr; |
| 17 | fdt_size_t size; |
Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 18 | unsigned int freq; |
Quentin Schulz | 3add62d | 2018-08-31 16:28:29 +0200 | [diff] [blame] | 19 | }; |
| 20 | |
Jagan Teki | 0af1750 | 2018-11-22 11:54:08 +0530 | [diff] [blame] | 21 | #endif /* __spi_pl022_h */ |