| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * Header file of amlogic mtd driver |
| * Copyright (C) 2018 Amlogic Corporation |
| * Licensed under the GPL-2 or later. |
| #define BOOT_TOTAL_PAGES 1024 |
| #define CONFIG_DISCRETE_BOOTLOADER |
| /* spinor adds discrete modem base on advanced burning */ |
| #ifdef CONFIG_SPI_FLASH_AML_ADVANCED |
| #define CONFIG_DISCRETE_BOOTLOADER |
| #if (defined(CONFIG_SPI_NAND) || defined(CONFIG_MTD_SPI_NAND)) && !defined(CONFIG_DISCRETE_BOOTLOADER) |
| #error SPI NAND only support discrete boot mode! |
| #ifdef CONFIG_DISCRETE_BOOTLOADER |
| #define CONFIG_BL2_COPY_NUM 8 |
| #define CONFIG_TPL_SIZE_PER_COPY 0x200000 |
| #define CONFIG_TPL_COPY_NUM 1 |
| #define CONFIG_TPL_COPY_NUM 4 |
| /* Mapping conversion between phyAddr and logicAddr,do not open it temporarily */ |
| //#define CONFIG_MTD_LOGIC_MAP |
| #define BOOT_LOADER "bootloader" |
| #define BOOT_DDRFIP "ddrfip" |
| #define BOOT_DEVFIP "devfip" |