| /* SPDX-License-Identifier: GPL-2.0+ */ |
| /* |
| * Header file of amlogic mtd driver |
| * |
| * Copyright (C) 2018 Amlogic Corporation |
| * |
| * Licensed under the GPL-2 or later. |
| * |
| */ |
| |
| #ifndef __AMLMTD_H_ |
| #define __AMLMTD_H_ |
| #define BOOT_TOTAL_PAGES 1024 |
| |
| #define CONFIG_DISCRETE_BOOTLOADER |
| |
| #if defined(CONFIG_SPI_NAND) && !defined(CONFIG_DISCRETE_BOOTLOADER) |
| #error SPI NAND only support discrete boot mode! |
| #endif |
| |
| #ifdef CONFIG_DISCRETE_BOOTLOADER |
| #define CONFIG_BL2_COPY_NUM 8 |
| #define CONFIG_TPL_SIZE_PER_COPY 0x200000 |
| #define CONFIG_TPL_COPY_NUM 4 |
| #endif/* CONFIG_DISCRETE_BOOTLOADER */ |
| |
| #define CONFIG_SKIP_BAD_IN_PARTITION |
| |
| #define BOOT_LOADER "bootloader" |
| #define BOOT_BL2 "bl2" |
| #define BOOT_SPL "spl" |
| #define BOOT_TPL "tpl" |
| #define BOOT_FIP "fip" |
| #define MAX_MTD_CNT 2 |
| |
| #endif/* __AMLMTD_H_ */ |