~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/arch/arm/include/asm/arch-davinci/nand_defs.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
 
3
 *
 
4
 * Parts shamelesly stolen from Linux Kernel source tree.
 
5
 *
 
6
 * ------------------------------------------------------------
 
7
 *
 
8
 * SPDX-License-Identifier:     GPL-2.0+
 
9
 */
 
10
#ifndef _NAND_DEFS_H_
 
11
#define _NAND_DEFS_H_
 
12
 
 
13
#include <asm/arch/hardware.h>
 
14
 
 
15
#ifdef CONFIG_SOC_DM646X
 
16
#define MASK_CLE        0x80000
 
17
#define MASK_ALE        0x40000
 
18
#else
 
19
#define MASK_CLE        0x10
 
20
#define MASK_ALE        0x08
 
21
#endif
 
22
 
 
23
#ifdef CONFIG_SYS_NAND_MASK_CLE
 
24
#undef MASK_CLE
 
25
#define MASK_CLE CONFIG_SYS_NAND_MASK_CLE
 
26
#endif
 
27
#ifdef CONFIG_SYS_NAND_MASK_ALE
 
28
#undef MASK_ALE
 
29
#define MASK_ALE CONFIG_SYS_NAND_MASK_ALE
 
30
#endif
 
31
 
 
32
#define NAND_READ_START         0x00
 
33
#define NAND_READ_END           0x30
 
34
#define NAND_STATUS             0x70
 
35
 
 
36
extern void davinci_nand_init(struct nand_chip *nand);
 
37
 
 
38
#endif