diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-19 05:40:31 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:41:10 -0400 |
commit | 974d250be2c70c7bf899275b23b241685d4ed7f8 (patch) | |
tree | e561ec041afc33b5ae73800d22f0bdb18f0d7653 /arch | |
parent | 7554340c7acae4a719b1b70b0defa3c67149610b (diff) |
fbdev: sh_mobile_meram: Use genalloc to manage MERAM allocation
Instead of requiring the users to hardcode MERAM allocation in platform
data, allocate blocks at runtime using genalloc.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 63498fbdfd12..7b902277f145 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -583,13 +583,11 @@ static struct sh_mobile_meram_cfg lcd_meram_cfg = { | |||
583 | .icb[0] = { | 583 | .icb[0] = { |
584 | .marker_icb = 28, | 584 | .marker_icb = 28, |
585 | .cache_icb = 24, | 585 | .cache_icb = 24, |
586 | .meram_offset = 0x0, | ||
587 | .meram_size = 0x40, | 586 | .meram_size = 0x40, |
588 | }, | 587 | }, |
589 | .icb[1] = { | 588 | .icb[1] = { |
590 | .marker_icb = 29, | 589 | .marker_icb = 29, |
591 | .cache_icb = 25, | 590 | .cache_icb = 25, |
592 | .meram_offset = 0x40, | ||
593 | .meram_size = 0x40, | 591 | .meram_size = 0x40, |
594 | }, | 592 | }, |
595 | }; | 593 | }; |
@@ -866,13 +864,11 @@ static struct sh_mobile_meram_cfg hdmi_meram_cfg = { | |||
866 | .icb[0] = { | 864 | .icb[0] = { |
867 | .marker_icb = 30, | 865 | .marker_icb = 30, |
868 | .cache_icb = 26, | 866 | .cache_icb = 26, |
869 | .meram_offset = 0x80, | ||
870 | .meram_size = 0x100, | 867 | .meram_size = 0x100, |
871 | }, | 868 | }, |
872 | .icb[1] = { | 869 | .icb[1] = { |
873 | .marker_icb = 31, | 870 | .marker_icb = 31, |
874 | .cache_icb = 27, | 871 | .cache_icb = 27, |
875 | .meram_offset = 0x180, | ||
876 | .meram_size = 0x100, | 872 | .meram_size = 0x100, |
877 | }, | 873 | }, |
878 | }; | 874 | }; |
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 17ba6bccf97b..0c0fd4f0c308 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -373,13 +373,11 @@ static struct sh_mobile_meram_cfg lcd_meram_cfg = { | |||
373 | .icb[0] = { | 373 | .icb[0] = { |
374 | .marker_icb = 28, | 374 | .marker_icb = 28, |
375 | .cache_icb = 24, | 375 | .cache_icb = 24, |
376 | .meram_offset = 0x0, | ||
377 | .meram_size = 0x40, | 376 | .meram_size = 0x40, |
378 | }, | 377 | }, |
379 | .icb[1] = { | 378 | .icb[1] = { |
380 | .marker_icb = 29, | 379 | .marker_icb = 29, |
381 | .cache_icb = 25, | 380 | .cache_icb = 25, |
382 | .meram_offset = 0x40, | ||
383 | .meram_size = 0x40, | 381 | .meram_size = 0x40, |
384 | }, | 382 | }, |
385 | }; | 383 | }; |
@@ -465,13 +463,11 @@ static struct sh_mobile_meram_cfg hdmi_meram_cfg = { | |||
465 | .icb[0] = { | 463 | .icb[0] = { |
466 | .marker_icb = 30, | 464 | .marker_icb = 30, |
467 | .cache_icb = 26, | 465 | .cache_icb = 26, |
468 | .meram_offset = 0x80, | ||
469 | .meram_size = 0x100, | 466 | .meram_size = 0x100, |
470 | }, | 467 | }, |
471 | .icb[1] = { | 468 | .icb[1] = { |
472 | .marker_icb = 31, | 469 | .marker_icb = 31, |
473 | .cache_icb = 27, | 470 | .cache_icb = 27, |
474 | .meram_offset = 0x180, | ||
475 | .meram_size = 0x100, | 471 | .meram_size = 0x100, |
476 | }, | 472 | }, |
477 | }; | 473 | }; |