Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298151
b: refs/heads/master
c: 02bfc4e
h: refs/heads/master
i:
  298149: cb1eaf4
  298147: 315753c
  298143: b4a8762
v: v3
  • Loading branch information
Shiraz Hashim authored and David Woodhouse committed Mar 26, 2012
1 parent 0cd878d commit e3e5f64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2acc92e144336dd29e30dc5d26439355be750b6
refs/heads/master: 02bfc4ebbd2532440fadd78076f3a51e0ae89f7f
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-u300/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,8 @@ static struct fsmc_nand_platform_data nand_platform_data = {
.nr_partitions = ARRAY_SIZE(u300_partitions),
.options = NAND_SKIP_BBTSCAN,
.width = FSMC_NAND_BW8,
.ale_off = PLAT_NAND_ALE,
.cle_off = PLAT_NAND_CLE,
};

static struct platform_device nand_device = {
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-u300/include/mach/u300-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
/* NFIF */
#define U300_NAND_IF_PHYS_BASE 0x9f800000

/* ALE, CLE offset for FSMC NAND */
#define PLAT_NAND_CLE (1 << 16)
#define PLAT_NAND_ALE (1 << 17)


/* AHB Peripherals */
#define U300_AHB_PER_PHYS_BASE 0xa0000000
#define U300_AHB_PER_VIRT_BASE 0xff010000
Expand Down
13 changes: 0 additions & 13 deletions trunk/include/linux/mtd/fsmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@
#define FSMC_NAND_BW8 1
#define FSMC_NAND_BW16 2

/*
* The placement of the Command Latch Enable (CLE) and
* Address Latch Enable (ALE) is twisted around in the
* SPEAR310 implementation.
*/
#if defined(CONFIG_MACH_SPEAR310)
#define PLAT_NAND_CLE (1 << 17)
#define PLAT_NAND_ALE (1 << 16)
#else
#define PLAT_NAND_CLE (1 << 16)
#define PLAT_NAND_ALE (1 << 17)
#endif

#define FSMC_MAX_NOR_BANKS 4
#define FSMC_MAX_NAND_BANKS 4

Expand Down

0 comments on commit e3e5f64

Please sign in to comment.