12 #include <soc/addressmap.h>
50 #define PAD_FUNC(name, func) {GPIO(name), PAD_##name##_FUNC_##func, GPIO_PULL_DOWN}
51 #define PAD_FUNC_SEL(name, func, sel) {GPIO(name), PAD_##name##_FUNC_##func, sel}
52 #define PAD_FUNC_GPIO(name) {GPIO(name), 0, GPIO_PULL_DOWN}
154 "%s: failed to set pin drive to 8 mA for %d\n",
155 __func__, ptr[i].
gpio.id);
174 for (
int i = 0; i < 4; i++)
191 .bus_start = CONFIG_BOOT_DEVICE_SPI_FLASH_BUS,
192 .bus_end = CONFIG_BOOT_DEVICE_SPI_FLASH_BUS,
#define assert(statement)
#define printk(level,...)
int mtk_spi_flash_probe(const struct spi_slave *spi, struct spi_flash *flash)
void gpio_set(gpio_t gpio, int value)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
const struct spi_ctrlr_buses spi_ctrlr_bus_map[]
const size_t spi_ctrlr_bus_map_count
struct mtk_spi_regs * regs
const struct spi_ctrlr * ctrlr