zephyr/drivers/memc/memc_mcux_flexspi.h
Pieter De Gendt acca3c126c mcux flexspi: move bus driver to drivers/memc
Initially the flexspi device only supported a flash driver for
external NOR flash. As the controller supports HyperBus devices,
which can be either volatile or non-volatile, the driver iss moved
to drivers/memc.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2021-04-02 10:36:22 -05:00

25 lines
622 B
C

/*
* Copyright 2020 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <sys/types.h>
#include <fsl_flexspi.h>
int memc_flexspi_update_lut(const struct device *dev, uint32_t index,
const uint32_t *cmd, uint32_t count);
int memc_flexspi_set_device_config(const struct device *dev,
const flexspi_device_config_t *device_config,
flexspi_port_t port);
int memc_flexspi_reset(const struct device *dev);
int memc_flexspi_transfer(const struct device *dev,
flexspi_transfer_t *transfer);
void *memc_flexspi_get_ahb_address(const struct device *dev,
flexspi_port_t port, off_t offset);