summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-harmony-panel.c
diff options
context:
space:
mode:
authorChao Jiang <chaoj@nvidia.com>2010-11-29 14:48:23 +0900
committerBharat Nihalani <bnihalani@nvidia.com>2010-12-01 03:10:09 -0800
commit0d47e62d9e2a08831c40d2debfad7ece6eab30d2 (patch)
tree050f73d72630ceb54123f8261b63ce1ff118640b /arch/arm/mach-tegra/board-harmony-panel.c
parent039c989345912a07796de71d90600d3c0df28cde (diff)
[ARM] tegra: harmony: define macro for fbmem
Defined two fbmem to make its meaning explicitly. Change-Id: Ia9f4295a0c9e5f344af211071022521b70e492ff Reviewed-on: http://git-master/r/11776 Tested-by: Chao Jiang <chaoj@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-harmony-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-harmony-panel.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-harmony-panel.c b/arch/arm/mach-tegra/board-harmony-panel.c
index 309d72e4b490..e86b2a87489e 100644
--- a/arch/arm/mach-tegra/board-harmony-panel.c
+++ b/arch/arm/mach-tegra/board-harmony-panel.c
@@ -21,21 +21,27 @@
#include <mach/iomap.h>
#include <mach/tegra_fb.h>
+#define FBMEM_BASE 0x1c012000
+#define FBMEM_SIZE 0x500000
+
/* Framebuffer */
static struct resource fb_resource[] = {
[0] = {
+ .name = "irq",
.start = INT_DISPLAY_GENERAL,
.end = INT_DISPLAY_GENERAL,
.flags = IORESOURCE_IRQ,
},
[1] = {
+ .name = "regs",
.start = TEGRA_DISPLAY_BASE,
.end = TEGRA_DISPLAY_BASE + TEGRA_DISPLAY_SIZE-1,
.flags = IORESOURCE_MEM,
},
[2] = {
- .start = 0x1c012000,
- .end = 0x1c012000 + 0x500000 - 1,
+ .name = "fbmem",
+ .start = FBMEM_BASE,
+ .end = FBMEM_BASE + FBMEM_SIZE - 1,
.flags = IORESOURCE_MEM,
},
};