540 lines
15 KiB
C
540 lines
15 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2016 Siarhei Siamashka <siarhei.siamashka@gmail.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <image.h>
|
|
#include <log.h>
|
|
#include <spl.h>
|
|
#include <asm/arch/spl.h>
|
|
#include <asm/gpio.h>
|
|
#include <asm/io.h>
|
|
#include <linux/bitops.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/libfdt.h>
|
|
#include <sunxi_gpio.h>
|
|
|
|
#ifdef CONFIG_SPL_OS_BOOT
|
|
#error CONFIG_SPL_OS_BOOT is not supported yet
|
|
#endif
|
|
|
|
/*
|
|
* This is a very simple U-Boot image loading implementation, trying to
|
|
* replicate what the boot ROM is doing when loading the SPL. Because we
|
|
* know the exact pins where the SPI Flash is connected and also know
|
|
* that the Read Data Bytes (03h) command is supported, the hardware
|
|
* configuration is very simple and we don't need the extra flexibility
|
|
* of the SPI framework. Moreover, we rely on the default settings of
|
|
* the SPI controler hardware registers and only adjust what needs to
|
|
* be changed. This is good for the code size and this implementation
|
|
* adds less than 400 bytes to the SPL.
|
|
*
|
|
* There are two variants of the SPI controller in Allwinner SoCs:
|
|
* A10/A13/A20 (sun4i variant) and everything else (sun6i variant).
|
|
* Both of them are supported.
|
|
*
|
|
* The pin mixing part is SoC specific and only A10/A13/A20/H3/A64 are
|
|
* supported at the moment.
|
|
*/
|
|
|
|
/*****************************************************************************/
|
|
/* SUN4I variant of the SPI controller */
|
|
/*****************************************************************************/
|
|
|
|
#define SUN4I_SPI0_CCTL 0x1C
|
|
#define SUN4I_SPI0_CTL 0x08
|
|
#define SUN4I_SPI0_RX 0x00
|
|
#define SUN4I_SPI0_TX 0x04
|
|
#define SUN4I_SPI0_FIFO_STA 0x28
|
|
#define SUN4I_SPI0_BC 0x20
|
|
#define SUN4I_SPI0_TC 0x24
|
|
|
|
#define SUN4I_CTL_ENABLE BIT(0)
|
|
#define SUN4I_CTL_MASTER BIT(1)
|
|
#define SUN4I_CTL_TF_RST BIT(8)
|
|
#define SUN4I_CTL_RF_RST BIT(9)
|
|
#define SUN4I_CTL_XCH BIT(10)
|
|
|
|
/*****************************************************************************/
|
|
/* SUN6I variant of the SPI controller */
|
|
/*****************************************************************************/
|
|
|
|
#define SUN6I_SPI0_CCTL 0x24
|
|
#define SUN6I_SPI0_GCR 0x04
|
|
#define SUN6I_SPI0_TCR 0x08
|
|
#define SUN6I_SPI0_FIFO_STA 0x1C
|
|
#define SUN6I_SPI0_MBC 0x30
|
|
#define SUN6I_SPI0_MTC 0x34
|
|
#define SUN6I_SPI0_BCC 0x38
|
|
#define SUN6I_SPI0_TXD 0x200
|
|
#define SUN6I_SPI0_RXD 0x300
|
|
|
|
#define SUN6I_CTL_ENABLE BIT(0)
|
|
#define SUN6I_CTL_MASTER BIT(1)
|
|
#define SUN6I_CTL_SRST BIT(31)
|
|
#define SUN6I_TCR_XCH BIT(31)
|
|
|
|
/*****************************************************************************/
|
|
|
|
#define CCM_AHB_GATING0 (0x01C20000 + 0x60)
|
|
#define SUN6I_BUS_SOFT_RST_REG0 (0x01C20000 + 0x2C0)
|
|
|
|
#if defined(CONFIG_MACH_SUN8I_R528)
|
|
#define CCM_H6_SPI_BGR_REG (0x02001000 + 0x96c)
|
|
#define CCM_SPI0_CLK (0x02001000 + 0x940)
|
|
#elif defined(CONFIG_SUN50I_GEN_H6)
|
|
#define CCM_H6_SPI_BGR_REG (0x03001000 + 0x96c)
|
|
#define CCM_SPI0_CLK (0x03001000 + 0x940)
|
|
#else
|
|
#define CCM_SPI0_CLK (0x01C20000 + 0xA0)
|
|
#endif
|
|
|
|
#define AHB_RESET_SPI0_SHIFT 20
|
|
#define AHB_GATE_OFFSET_SPI0 20
|
|
|
|
#define SPI0_CLK_DIV_BY_2 0x1000
|
|
#define SPI0_CLK_DIV_BY_4 0x1001
|
|
#define SPI0_CLK_DIV_BY_32 0x100f
|
|
|
|
/*****************************************************************************/
|
|
|
|
/*
|
|
* Allwinner A10/A20 SoCs were using pins PC0,PC1,PC2,PC23 for booting
|
|
* from SPI Flash, everything else is using pins PC0,PC1,PC2,PC3.
|
|
* The H6 uses PC0, PC2, PC3, PC5, the H616 PC0, PC2, PC3, PC4.
|
|
* The R528 uses PC2, PC3, PC4, PC5, PC6, PC7.
|
|
*/
|
|
static void spi0_pinmux_setup(unsigned int pin_function)
|
|
{
|
|
/* All chips use PC2. */
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(2), pin_function);
|
|
|
|
/* All chips except R528 use PC0. */
|
|
if (!IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(0), pin_function);
|
|
|
|
/* All chips except H6 and H616 use PC1. */
|
|
if (!IS_ENABLED(CONFIG_SUN50I_GEN_H6))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(1), pin_function);
|
|
|
|
if (IS_ENABLED(CONFIG_MACH_SUN50I_H6) || IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(5), pin_function);
|
|
if (IS_ENABLED(CONFIG_MACH_SUN50I_H616) || IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(4), pin_function);
|
|
|
|
/* Older generations use PC23 for CS, newer ones use PC3. */
|
|
if (IS_ENABLED(CONFIG_MACH_SUN4I) || IS_ENABLED(CONFIG_MACH_SUN7I) ||
|
|
IS_ENABLED(CONFIG_MACH_SUN8I_R40))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(23), pin_function);
|
|
else
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(3), pin_function);
|
|
|
|
if (IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(6), pin_function);
|
|
if (IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
sunxi_gpio_set_cfgpin(SUNXI_GPC(7), pin_function);
|
|
}
|
|
|
|
static bool is_sun6i_gen_spi(void)
|
|
{
|
|
return IS_ENABLED(CONFIG_SUNXI_GEN_SUN6I) ||
|
|
IS_ENABLED(CONFIG_SUN50I_GEN_H6) ||
|
|
IS_ENABLED(CONFIG_MACH_SUN8I_R528)
|
|
;
|
|
}
|
|
|
|
static uintptr_t spi0_base_address(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_MACH_SUN8I_R40))
|
|
return 0x01C05000;
|
|
|
|
if (IS_ENABLED(CONFIG_SUN50I_GEN_H6))
|
|
return 0x05010000;
|
|
|
|
if (IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
return 0x04025000;
|
|
|
|
if (!is_sun6i_gen_spi() ||
|
|
IS_ENABLED(CONFIG_MACH_SUNIV))
|
|
return 0x01C05000;
|
|
|
|
return 0x01C68000;
|
|
}
|
|
|
|
/*
|
|
* Setup 6 MHz from OSC24M (because the BROM is doing the same).
|
|
*/
|
|
static void spi0_enable_clock(void)
|
|
{
|
|
uintptr_t base = spi0_base_address();
|
|
|
|
/* Deassert SPI0 reset on SUN6I */
|
|
if (IS_ENABLED(CONFIG_SUN50I_GEN_H6) || IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
setbits_le32(CCM_H6_SPI_BGR_REG, (1U << 16) | 0x1);
|
|
else if (is_sun6i_gen_spi())
|
|
setbits_le32(SUN6I_BUS_SOFT_RST_REG0,
|
|
(1 << AHB_RESET_SPI0_SHIFT));
|
|
|
|
/* Open the SPI0 gate */
|
|
if (!IS_ENABLED(CONFIG_SUN50I_GEN_H6) && !IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
setbits_le32(CCM_AHB_GATING0, (1 << AHB_GATE_OFFSET_SPI0));
|
|
|
|
if (IS_ENABLED(CONFIG_MACH_SUNIV)) {
|
|
/* Divide by 32, clock source is AHB clock 200MHz */
|
|
writel(SPI0_CLK_DIV_BY_32, base + SUN6I_SPI0_CCTL);
|
|
} else if (IS_ENABLED(CONFIG_MACH_SUN8I_R528)) {
|
|
/* 24MHz from OSC24M */
|
|
writel((1 << 31), CCM_SPI0_CLK);
|
|
} else {
|
|
/* Divide by 4 */
|
|
writel(SPI0_CLK_DIV_BY_4, base + (is_sun6i_gen_spi() ?
|
|
SUN6I_SPI0_CCTL : SUN4I_SPI0_CCTL));
|
|
/* 24MHz from OSC24M */
|
|
writel((1 << 31), CCM_SPI0_CLK);
|
|
}
|
|
|
|
if (is_sun6i_gen_spi()) {
|
|
/* Enable SPI in the master mode and do a soft reset */
|
|
setbits_le32(base + SUN6I_SPI0_GCR, SUN6I_CTL_MASTER |
|
|
SUN6I_CTL_ENABLE | SUN6I_CTL_SRST);
|
|
/* Wait for completion */
|
|
while (readl(base + SUN6I_SPI0_GCR) & SUN6I_CTL_SRST)
|
|
;
|
|
} else {
|
|
/* Enable SPI in the master mode and reset FIFO */
|
|
setbits_le32(base + SUN4I_SPI0_CTL, SUN4I_CTL_MASTER |
|
|
SUN4I_CTL_ENABLE |
|
|
SUN4I_CTL_TF_RST |
|
|
SUN4I_CTL_RF_RST);
|
|
}
|
|
}
|
|
|
|
static void spi0_disable_clock(void)
|
|
{
|
|
uintptr_t base = spi0_base_address();
|
|
|
|
/* Disable the SPI0 controller */
|
|
if (is_sun6i_gen_spi())
|
|
clrbits_le32(base + SUN6I_SPI0_GCR, SUN6I_CTL_MASTER |
|
|
SUN6I_CTL_ENABLE);
|
|
else
|
|
clrbits_le32(base + SUN4I_SPI0_CTL, SUN4I_CTL_MASTER |
|
|
SUN4I_CTL_ENABLE);
|
|
|
|
/* Disable the SPI0 clock */
|
|
if (!IS_ENABLED(CONFIG_MACH_SUNIV))
|
|
writel(0, CCM_SPI0_CLK);
|
|
|
|
/* Close the SPI0 gate */
|
|
if (!IS_ENABLED(CONFIG_SUN50I_GEN_H6) && !IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
clrbits_le32(CCM_AHB_GATING0, (1 << AHB_GATE_OFFSET_SPI0));
|
|
|
|
/* Assert SPI0 reset on SUN6I */
|
|
if (IS_ENABLED(CONFIG_SUN50I_GEN_H6) || IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
clrbits_le32(CCM_H6_SPI_BGR_REG, (1U << 16) | 0x1);
|
|
else if (is_sun6i_gen_spi())
|
|
clrbits_le32(SUN6I_BUS_SOFT_RST_REG0,
|
|
(1 << AHB_RESET_SPI0_SHIFT));
|
|
}
|
|
|
|
static void spi0_init(void)
|
|
{
|
|
unsigned int pin_function = SUNXI_GPC_SPI0;
|
|
|
|
if (IS_ENABLED(CONFIG_MACH_SUN8I_R528))
|
|
pin_function = SUNIV_GPC_SPI0;
|
|
else if (IS_ENABLED(CONFIG_MACH_SUN50I) ||
|
|
IS_ENABLED(CONFIG_SUN50I_GEN_H6))
|
|
pin_function = SUN50I_GPC_SPI0;
|
|
else if (IS_ENABLED(CONFIG_MACH_SUNIV))
|
|
pin_function = SUNIV_GPC_SPI0;
|
|
|
|
spi0_pinmux_setup(pin_function);
|
|
spi0_enable_clock();
|
|
}
|
|
|
|
static void spi0_deinit(void)
|
|
{
|
|
/* New SoCs can disable pins, older could only set them as input */
|
|
unsigned int pin_function = SUNXI_GPIO_INPUT;
|
|
|
|
if (is_sun6i_gen_spi())
|
|
pin_function = SUNXI_GPIO_DISABLE;
|
|
|
|
spi0_disable_clock();
|
|
spi0_pinmux_setup(pin_function);
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
|
|
#define SPI_READ_MAX_SIZE 60 /* FIFO size, minus 4 bytes of the header */
|
|
|
|
static void sunxi_spi0_xfer(const u8 *txbuf, u32 txlen,
|
|
u8 *rxbuf, u32 rxlen,
|
|
ulong spi_ctl_reg,
|
|
ulong spi_ctl_xch_bitmask,
|
|
ulong spi_fifo_reg,
|
|
ulong spi_tx_reg,
|
|
ulong spi_rx_reg,
|
|
ulong spi_bc_reg,
|
|
ulong spi_tc_reg,
|
|
ulong spi_bcc_reg)
|
|
{
|
|
writel(txlen + rxlen, spi_bc_reg); /* Burst counter (total bytes) */
|
|
writel(txlen, spi_tc_reg); /* Transfer counter (bytes to send) */
|
|
if (spi_bcc_reg)
|
|
writel(txlen, spi_bcc_reg); /* SUN6I also needs this */
|
|
|
|
for (u32 i = 0; i < txlen; i++)
|
|
writeb(*(txbuf++), spi_tx_reg);
|
|
|
|
/* Start the data transfer */
|
|
setbits_le32(spi_ctl_reg, spi_ctl_xch_bitmask);
|
|
|
|
/* Wait until everything is received in the RX FIFO */
|
|
while ((readl(spi_fifo_reg) & 0x7F) < txlen + rxlen)
|
|
;
|
|
|
|
/* Skip txlen bytes */
|
|
for (u32 i = 0; i < txlen; i++)
|
|
readb(spi_rx_reg);
|
|
|
|
/* Read the data */
|
|
while (rxlen-- > 0)
|
|
*rxbuf++ = readb(spi_rx_reg);
|
|
}
|
|
|
|
static void spi0_xfer(const u8 *txbuf, u32 txlen, u8 *rxbuf, u32 rxlen)
|
|
{
|
|
uintptr_t base = spi0_base_address();
|
|
|
|
if (is_sun6i_gen_spi()) {
|
|
sunxi_spi0_xfer(txbuf, txlen, rxbuf, rxlen,
|
|
base + SUN6I_SPI0_TCR,
|
|
SUN6I_TCR_XCH,
|
|
base + SUN6I_SPI0_FIFO_STA,
|
|
base + SUN6I_SPI0_TXD,
|
|
base + SUN6I_SPI0_RXD,
|
|
base + SUN6I_SPI0_MBC,
|
|
base + SUN6I_SPI0_MTC,
|
|
base + SUN6I_SPI0_BCC);
|
|
} else {
|
|
sunxi_spi0_xfer(txbuf, txlen, rxbuf, rxlen,
|
|
base + SUN4I_SPI0_CTL,
|
|
SUN4I_CTL_XCH,
|
|
base + SUN4I_SPI0_FIFO_STA,
|
|
base + SUN4I_SPI0_TX,
|
|
base + SUN4I_SPI0_RX,
|
|
base + SUN4I_SPI0_BC,
|
|
base + SUN4I_SPI0_TC,
|
|
0);
|
|
}
|
|
}
|
|
|
|
#if defined(CONFIG_SPL_SPINAND_SUPPORT)
|
|
static int spi0_nand_switch_page(u32 page)
|
|
{
|
|
unsigned count;
|
|
u8 buf[4];
|
|
|
|
/* Configure the Page Data Read (13h) command header */
|
|
buf[0] = 0x13;
|
|
buf[1] = (u8)(page >> 16);
|
|
buf[2] = (u8)(page >> 8);
|
|
buf[3] = (u8)(page);
|
|
|
|
spi0_xfer(buf, 4, NULL, 0);
|
|
|
|
/* Wait for NAND chip to exit busy state */
|
|
buf[0] = 0x0f;
|
|
buf[1] = 0xc0;
|
|
|
|
/* Load a NAND page can take up to 2-decimal-digit microseconds */
|
|
for (count = 0; count < 100; count ++) {
|
|
udelay(1);
|
|
spi0_xfer(buf, 2, buf+2, 1);
|
|
if (!(buf[2] & 0x1))
|
|
return 0;
|
|
}
|
|
|
|
return -ETIMEDOUT;
|
|
}
|
|
|
|
static void spi0_nand_reset(void)
|
|
{
|
|
u8 buf[1];
|
|
|
|
/* Configure the Device RESET (ffh) command */
|
|
buf[0] = 0xff;
|
|
|
|
spi0_xfer(buf, 1, NULL, 0);
|
|
|
|
/* Wait for the NAND to finish resetting */
|
|
udelay(10);
|
|
}
|
|
#endif
|
|
|
|
static void spi0_read_data(void *buf, u32 addr, u32 len, u32 addr_len)
|
|
{
|
|
u8 *buf8 = buf;
|
|
u32 chunk_len;
|
|
u8 txbuf[4];
|
|
|
|
while (len > 0) {
|
|
chunk_len = len;
|
|
|
|
/* Configure the Read Data Bytes (03h) command header */
|
|
txbuf[0] = 0x03;
|
|
if (addr_len == 3) {
|
|
txbuf[1] = (u8)(addr >> 16);
|
|
txbuf[2] = (u8)(addr >> 8);
|
|
txbuf[3] = (u8)(addr);
|
|
} else if (addr_len == 2) {
|
|
txbuf[1] = (u8)(addr >> 8);
|
|
txbuf[2] = (u8)(addr);
|
|
txbuf[3] = 0; /* dummy */
|
|
}
|
|
|
|
if (chunk_len > SPI_READ_MAX_SIZE)
|
|
chunk_len = SPI_READ_MAX_SIZE;
|
|
|
|
spi0_xfer(txbuf, 4, buf8, chunk_len);
|
|
|
|
/* tSHSL time is up to 100 ns in various SPI flash datasheets */
|
|
udelay(1);
|
|
|
|
len -= chunk_len;
|
|
buf8 += chunk_len;
|
|
addr += chunk_len;
|
|
}
|
|
}
|
|
|
|
static ulong spi_load_read_nor(struct spl_load_info *load, ulong sector,
|
|
ulong count, void *buf)
|
|
{
|
|
spi0_read_data(buf, sector, count, 3);
|
|
|
|
return count;
|
|
}
|
|
|
|
#if defined(CONFIG_SPL_SPINAND_SUPPORT)
|
|
static ulong spi_load_read_nand(struct spl_load_info *load, ulong sector,
|
|
ulong count, void *buf)
|
|
{
|
|
const ulong pagesize = CONFIG_SPL_SPINAND_PAGE_SIZE;
|
|
ulong remain = count;
|
|
|
|
while (remain) {
|
|
ulong count_in_page = min(remain, pagesize - (sector % pagesize));
|
|
ulong current_page = sector / pagesize;
|
|
if (spi0_nand_switch_page(current_page) != 0)
|
|
return 0;
|
|
spi0_read_data(buf, sector % pagesize, count_in_page, 2);
|
|
remain -= count_in_page;
|
|
sector += count_in_page;
|
|
buf += count_in_page;
|
|
}
|
|
|
|
return count;
|
|
}
|
|
|
|
void spinand_init(void)
|
|
{
|
|
spi0_init();
|
|
spi0_nand_reset();
|
|
}
|
|
|
|
void spinand_deinit(void)
|
|
{
|
|
spi0_deinit();
|
|
}
|
|
|
|
int spinand_spl_read_block(int block, int offset, int len, void *dst)
|
|
{
|
|
ulong byte_offset = (block * CONFIG_SPL_SPINAND_BLOCK_SIZE) + offset;
|
|
spi_load_read_nand(NULL, byte_offset, len, dst);
|
|
return 0;
|
|
}
|
|
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
|
|
static int spl_spi_try_load(struct spl_image_info *spl_image,
|
|
struct spl_boot_device *bootdev,
|
|
struct spl_load_info *load, u32 offset,
|
|
bool allow_raw)
|
|
{
|
|
int ret = 0;
|
|
struct legacy_img_hdr *header;
|
|
header = (struct legacy_img_hdr *)CONFIG_TEXT_BASE;
|
|
|
|
if (load->read(load, offset, 0x40, (void *)header) == 0)
|
|
return -EINVAL;
|
|
|
|
if (IS_ENABLED(CONFIG_SPL_LOAD_FIT) &&
|
|
image_get_magic(header) == FDT_MAGIC) {
|
|
|
|
debug("Found FIT image\n");
|
|
ret = spl_load_simple_fit(spl_image, load,
|
|
offset, header);
|
|
} else {
|
|
if (!allow_raw && image_get_magic(header) != IH_MAGIC)
|
|
return -EINVAL;
|
|
|
|
ret = spl_parse_image_header(spl_image, bootdev, header);
|
|
if (ret)
|
|
return ret;
|
|
|
|
if (load->read(load, offset, spl_image->size,
|
|
(void *)spl_image->load_addr) == 0)
|
|
ret = -EINVAL;
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
static int spl_spi_load_image(struct spl_image_info *spl_image,
|
|
struct spl_boot_device *bootdev)
|
|
{
|
|
int ret = 0;
|
|
uint32_t load_offset = sunxi_get_spl_size();
|
|
struct spl_load_info load;
|
|
bool allow_raw = false;
|
|
|
|
load_offset = max_t(uint32_t, load_offset, CONFIG_SYS_SPI_U_BOOT_OFFS);
|
|
|
|
load.dev = NULL;
|
|
load.priv = NULL;
|
|
load.filename = NULL;
|
|
load.bl_len = 1;
|
|
|
|
spi0_init();
|
|
|
|
switch (bootdev->boot_device) {
|
|
#if defined(CONFIG_SPL_SPINAND_SUPPORT)
|
|
case BOOT_DEVICE_SPINAND:
|
|
spi0_nand_reset();
|
|
load.read = spi_load_read_nand;
|
|
break;
|
|
#endif
|
|
case BOOT_DEVICE_SPI:
|
|
load.read = spi_load_read_nor;
|
|
allow_raw = true;
|
|
break;
|
|
}
|
|
|
|
ret = spl_spi_try_load(spl_image, bootdev, &load, load_offset, allow_raw);
|
|
|
|
spi0_deinit();
|
|
|
|
return ret;
|
|
}
|
|
/* Use priorty 0 to override the default if it happens to be linked in */
|
|
SPL_LOAD_IMAGE_METHOD("sunxi SPI", 0, BOOT_DEVICE_SPI, spl_spi_load_image);
|
|
|
|
#if defined(CONFIG_SPL_SPINAND_SUPPORT)
|
|
SPL_LOAD_IMAGE_METHOD("sunxi SPI NAND", 0, BOOT_DEVICE_SPINAND, spl_spi_load_image);
|
|
#endif
|