blob: 63a58ee4535365737f7914b397bb0580ff9ada49 [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 *
6 * Structure for use with U_BOOT_DEVICE for pl022 SPI devices or to use
7 * in ofdata_to_platdata.
8 */
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 */