Skip to content

Commit

Permalink
board-eve: reserve pmem sizes as in lg-2.6.32. Saves 20 MB ram
Browse files Browse the repository at this point in the history
Change-Id: I9c4b6cf3cc6c29dd12b2a796538afbca1d40810a
  • Loading branch information
Polytheus committed Feb 5, 2011
1 parent 91e4659 commit 22fee91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
14 changes: 0 additions & 14 deletions arch/arm/mach-msm/board-eve.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ static struct android_pmem_platform_data android_pmem_pdata = {
.cached = 1,
};

static struct android_pmem_platform_data android_pmem_camera_pdata = {
.name = "pmem_camera",
.cached = 1,
.start = MSM_PMEM_CAMERA_BASE,
.size = MSM_PMEM_CAMERA_SIZE,
};

static struct android_pmem_platform_data android_pmem_adsp_pdata = {
.name = "pmem_adsp",
.cached = 0,
Expand All @@ -157,12 +150,6 @@ static struct platform_device android_pmem_device = {
.dev = { .platform_data = &android_pmem_pdata },
};

static struct platform_device android_pmem_camera_device = {
.name = "android_pmem",
.id = 2,
.dev = { .platform_data = &android_pmem_camera_pdata },
};

static struct platform_device android_pmem_adsp_device = {
.name = "android_pmem",
.id = 1,
Expand Down Expand Up @@ -522,7 +509,6 @@ static struct platform_device *devices[] __initdata = {

&android_pmem_device,
&android_pmem_adsp_device,
&android_pmem_camera_device,
&hw3d_device,
&eve_snd,
};
Expand Down
11 changes: 4 additions & 7 deletions arch/arm/mach-msm/board-eve.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,16 @@
#define MSM_FB_SIZE (1*SZ_1M)

#define MSM_PMEM_MDP_BASE (MSM_LINUX_BASE + MSM_LINUX_SIZE)
#define MSM_PMEM_MDP_SIZE (8*SZ_1M)
#define MSM_PMEM_MDP_SIZE (12*SZ_1M)

#define MSM_PMEM_ADSP_BASE (MSM_PMEM_MDP_BASE + MSM_PMEM_MDP_SIZE)
#define MSM_PMEM_ADSP_SIZE (13*SZ_1M)
#define MSM_PMEM_ADSP_SIZE (8*SZ_1M)

#define MSM_PMEM_CAMERA_BASE (MSM_PMEM_ADSP_BASE + MSM_PMEM_ADSP_SIZE)
#define MSM_PMEM_CAMERA_SIZE (11*SZ_1M)

#define MSM_PMEM_GPU1_BASE (MSM_PMEM_CAMERA_BASE + MSM_PMEM_CAMERA_SIZE)
#define MSM_PMEM_GPU1_BASE (MSM_PMEM_ADSP_BASE + MSM_PMEM_ADSP_SIZE)
#define MSM_PMEM_GPU1_SIZE (8*SZ_1M)

#define MSM_LINUX_BASE MSM_EBI_BASE
#define MSM_LINUX_SIZE (223*SZ_1M - MSM_PMEM_MDP_SIZE-MSM_PMEM_ADSP_SIZE-MSM_PMEM_CAMERA_SIZE-MSM_PMEM_GPU1_SIZE)
#define MSM_LINUX_SIZE (223*SZ_1M - MSM_PMEM_MDP_SIZE-MSM_PMEM_ADSP_SIZE-MSM_PMEM_GPU1_SIZE)

#define MSM_RAM_CONSOLE_BASE (MSM_PMEM_GPU1_SIZE+MSM_PMEM_GPU1_BASE)
#define MSM_RAM_CONSOLE_SIZE (128 * SZ_1K)
Expand Down

0 comments on commit 22fee91

Please sign in to comment.