blob: 7f74b3cbc5c6467f126fc2cdc472e7ae7804c062 [file] [log] [blame]
Quentin Schulz3add62d2018-08-31 16:28:29 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * (C) Copyright 2018
4 * Quentin Schulz, Bootlin, quentin.schulz@bootlin.com
5 *
Simon Glass1d8364a2020-12-28 20:34:54 -07006 * Structure for use with U_BOOT_DRVINFO for pl022 SPI devices or to use
Simon Glassaad29ae2020-12-03 16:55:21 -07007 * in of_to_plat.
Quentin Schulz3add62d2018-08-31 16:28:29 +02008 */
9
Jagan Teki0af17502018-11-22 11:54:08 +053010#ifndef __spi_pl022_h
11#define __spi_pl022_h
Quentin Schulz3add62d2018-08-31 16:28:29 +020012
Quentin Schulz3add62d2018-08-31 16:28:29 +020013#include <fdtdec.h>
14
15struct pl022_spi_pdata {
16 fdt_addr_t addr;
17 fdt_size_t size;
Quentin Schulz3add62d2018-08-31 16:28:29 +020018 unsigned int freq;
Quentin Schulz3add62d2018-08-31 16:28:29 +020019};
20
Jagan Teki0af17502018-11-22 11:54:08 +053021#endif /* __spi_pl022_h */