#include <device/mmio.h>
#include <assert.h>
#include <soc/addressmap.h>
#include <soc/flash_controller_common.h>
#include <soc/gpio.h>
#include <soc/spi.h>
Go to the source code of this file.
◆ PAD_FUNC
#define PAD_FUNC |
( |
|
name, |
|
|
|
func |
|
) |
| {PAD_##name##_ID, PAD_##name##_FUNC_##func} |
Definition at line 50 of file spi.c.
◆ PAD_FUNC_GPIO
#define PAD_FUNC_GPIO |
( |
|
name | ) |
{PAD_##name##_ID, 0} |
Definition at line 51 of file spi.c.
◆ mtk_spi_set_gpio_pinmux()
◆ pad0_funcs
◆ spi_bus
Definition at line 1 of file spi.c.
◆ spi_ctrlr_bus_map
Initial value:= {
{
.bus_start = 0,
},
{
.bus_start = CONFIG_BOOT_DEVICE_SPI_FLASH_BUS,
.bus_end = CONFIG_BOOT_DEVICE_SPI_FLASH_BUS,
},
}
Definition at line 104 of file spi.c.
◆ spi_ctrlr_bus_map_count
◆ spi_flash_ctrlr
Initial value:= {
.max_xfer_size = 65535,
}
int mtk_spi_flash_probe(const struct spi_slave *spi, struct spi_flash *flash)
Definition at line 104 of file spi.c.