Skip to content

Commit

Permalink
[ARM] cdb89712: avoid namespace clashes with SRAM_ and BOOTROM_ const…
Browse files Browse the repository at this point in the history
…ants

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 13, 2008
1 parent d9a682a commit 8959dab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
18 changes: 0 additions & 18 deletions arch/arm/mach-clps711x/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,6 @@
#include <asm/hardware/ep7212.h>
#include <asm/hardware/cs89712.h>

/* dynamic ioremap() areas */
#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4


/* static cdb89712_map_io() areas */
#define REGISTER_START 0x80000000
#define REGISTER_SIZE 0x4000
Expand Down Expand Up @@ -194,14 +184,6 @@
#define CEIVA_FLASH_SIZE 0x100000
#define CEIVA_FLASH_WIDTH 2

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4

/*
* SED1355 LCD controller
*/
Expand Down
11 changes: 10 additions & 1 deletion drivers/mtd/maps/cdb89712.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>


/* dynamic ioremap() areas */
#define FLASH_START 0x00000000
#define FLASH_SIZE 0x800000
#define FLASH_WIDTH 4

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4


static struct mtd_info *flash_mtd;

struct map_info cdb89712_flash_map = {
Expand Down

0 comments on commit 8959dab

Please sign in to comment.