mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 08:31:52 +00:00
Add Microchip MEC17xx family SPI master controllers and flash files. SPI implements public interface wrapper for QMSPI and GPSPI. MEC17xx family uses QMSPI for loading EC firmware. GPSPI is for general use (sensor). BRANCH=none BUG= TEST=Review only. Change-Id: I23001e254dd437caa0917949f4dd2eb903f1adb1 Signed-off-by: Scott Worley <scott.worley@microchip.corp-partner.google.com>
36 lines
808 B
C
36 lines
808 B
C
/* Copyright 2017 The Chromium OS Authors. All rights reserved
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* Register map for MCHP MEC processor
|
|
*/
|
|
/** @file gpspi_chip.h
|
|
*MCHP MEC General Purpose SPI Master
|
|
*/
|
|
/** @defgroup MCHP MEC gpspi
|
|
*/
|
|
|
|
#ifndef _GPSPI_CHIP_H
|
|
#define _GPSPI_CHIP_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
/* struct spi_device_t */
|
|
#include "spi.h"
|
|
|
|
int gpspi_transaction_flush(const struct spi_device_t *spi_device);
|
|
|
|
int gpspi_transaction_wait(const struct spi_device_t *spi_device);
|
|
|
|
int gpspi_transaction_async(const struct spi_device_t *spi_device,
|
|
const uint8_t *txdata, int txlen,
|
|
uint8_t *rxdata, int rxlen);
|
|
|
|
int gpspi_enable(int port, int enable);
|
|
|
|
#endif /* #ifndef _GPSPI_CHIP_H */
|
|
/** @}
|
|
*/
|
|
|