2016-02-22 19:48:08 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
|
|
*
|
2017-01-19 02:01:01 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-02-22 19:48:08 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* @brief This file defines the private data structures for spi flash driver
|
|
|
|
*/
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#ifndef ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_H_
|
|
|
|
#define ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_H_
|
2016-02-22 19:48:08 +01:00
|
|
|
|
2020-05-08 19:04:55 +02:00
|
|
|
#define DT_DRV_COMPAT winbond_w25q16
|
2016-02-22 19:48:08 +01:00
|
|
|
|
|
|
|
struct spi_flash_data {
|
|
|
|
struct device *spi;
|
2020-05-08 19:04:55 +02:00
|
|
|
#if DT_INST_SPI_DEV_HAS_CS_GPIOS(0)
|
2018-05-29 16:52:53 +02:00
|
|
|
struct spi_cs_control cs_ctrl;
|
2020-05-08 19:04:55 +02:00
|
|
|
#endif
|
2018-01-30 15:01:36 +01:00
|
|
|
struct spi_config spi_cfg;
|
2018-06-18 10:38:18 +02:00
|
|
|
#if defined(CONFIG_MULTITHREADING)
|
2016-11-10 01:14:40 +01:00
|
|
|
struct k_sem sem;
|
2018-06-18 10:38:18 +02:00
|
|
|
#endif /* CONFIG_MULTITHREADING */
|
2016-02-22 19:48:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-09-14 19:43:44 +02:00
|
|
|
#endif /* ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_H_ */
|