2 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
4 * Parts shamelesly stolen from Linux Kernel source tree.
6 * ------------------------------------------------------------
8 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/arch/hardware.h>
15 #ifdef CONFIG_SOC_DM646X
16 #define MASK_CLE 0x80000
17 #define MASK_ALE 0x40000
23 #ifdef CONFIG_SYS_NAND_MASK_CLE
25 #define MASK_CLE CONFIG_SYS_NAND_MASK_CLE
27 #ifdef CONFIG_SYS_NAND_MASK_ALE
29 #define MASK_ALE CONFIG_SYS_NAND_MASK_ALE
32 #define NAND_READ_START 0x00
33 #define NAND_READ_END 0x30
34 #define NAND_STATUS 0x70
36 extern void davinci_nand_init(struct nand_chip *nand);