diff options
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 8 | ||||
-rw-r--r-- | drivers/video/sh_mobile_meram.c | 15 | ||||
-rw-r--r-- | include/video/sh_mobile_meram.h | 4 |
3 files changed, 7 insertions, 20 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 033851618323..4b54cd5c9564 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -882,11 +882,13 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv) | |||
882 | 882 | ||
883 | meram = mdev->ops->meram_register(mdev, ch->cfg->meram_cfg, | 883 | meram = mdev->ops->meram_register(mdev, ch->cfg->meram_cfg, |
884 | ch->pitch, ch->yres, pixelformat, | 884 | ch->pitch, ch->yres, pixelformat, |
885 | ch->base_addr_y, ch->base_addr_c, | ||
886 | &ch->base_addr_y, &ch->base_addr_c, | ||
887 | &ch->pitch); | 885 | &ch->pitch); |
888 | if (!IS_ERR(meram)) | 886 | if (!IS_ERR(meram)) { |
887 | mdev->ops->meram_update(mdev, meram, | ||
888 | ch->base_addr_y, ch->base_addr_c, | ||
889 | &ch->base_addr_y, &ch->base_addr_c); | ||
889 | ch->meram = meram; | 890 | ch->meram = meram; |
891 | } | ||
890 | } | 892 | } |
891 | 893 | ||
892 | /* Start the LCDC. */ | 894 | /* Start the LCDC. */ |
diff --git a/drivers/video/sh_mobile_meram.c b/drivers/video/sh_mobile_meram.c index 085c49ac99dd..2ce0d8f72e31 100644 --- a/drivers/video/sh_mobile_meram.c +++ b/drivers/video/sh_mobile_meram.c | |||
@@ -448,10 +448,6 @@ static void *sh_mobile_meram_register(struct sh_mobile_meram_info *pdata, | |||
448 | const struct sh_mobile_meram_cfg *cfg, | 448 | const struct sh_mobile_meram_cfg *cfg, |
449 | unsigned int xres, unsigned int yres, | 449 | unsigned int xres, unsigned int yres, |
450 | unsigned int pixelformat, | 450 | unsigned int pixelformat, |
451 | unsigned long base_addr_y, | ||
452 | unsigned long base_addr_c, | ||
453 | unsigned long *icb_addr_y, | ||
454 | unsigned long *icb_addr_c, | ||
455 | unsigned int *pitch) | 451 | unsigned int *pitch) |
456 | { | 452 | { |
457 | struct sh_mobile_meram_fb_cache *cache; | 453 | struct sh_mobile_meram_fb_cache *cache; |
@@ -470,9 +466,8 @@ static void *sh_mobile_meram_register(struct sh_mobile_meram_info *pdata, | |||
470 | priv = pdata->priv; | 466 | priv = pdata->priv; |
471 | pdev = pdata->pdev; | 467 | pdev = pdata->pdev; |
472 | 468 | ||
473 | dev_dbg(&pdev->dev, "registering %dx%d (%s) (y=%08lx, c=%08lx)", | 469 | dev_dbg(&pdev->dev, "registering %dx%d (%s)", xres, yres, |
474 | xres, yres, (!pixelformat) ? "yuv" : "rgb", | 470 | !pixelformat ? "yuv" : "rgb"); |
475 | base_addr_y, base_addr_c); | ||
476 | 471 | ||
477 | /* we can't handle wider than 8192px */ | 472 | /* we can't handle wider than 8192px */ |
478 | if (xres > 8192) { | 473 | if (xres > 8192) { |
@@ -500,12 +495,6 @@ static void *sh_mobile_meram_register(struct sh_mobile_meram_info *pdata, | |||
500 | meram_init(priv, &cache->planes[1], 2 * xres, (yres + 1) / 2, | 495 | meram_init(priv, &cache->planes[1], 2 * xres, (yres + 1) / 2, |
501 | &out_pitch); | 496 | &out_pitch); |
502 | 497 | ||
503 | meram_set_next_addr(priv, cache, base_addr_y, base_addr_c); | ||
504 | meram_get_next_icb_addr(pdata, cache, icb_addr_y, icb_addr_c); | ||
505 | |||
506 | dev_dbg(&pdev->dev, "registered - can access via y=%08lx, c=%08lx", | ||
507 | *icb_addr_y, *icb_addr_c); | ||
508 | |||
509 | err: | 498 | err: |
510 | mutex_unlock(&priv->lock); | 499 | mutex_unlock(&priv->lock); |
511 | return cache; | 500 | return cache; |
diff --git a/include/video/sh_mobile_meram.h b/include/video/sh_mobile_meram.h index 897960733cc0..553335ce7a2c 100644 --- a/include/video/sh_mobile_meram.h +++ b/include/video/sh_mobile_meram.h | |||
@@ -46,10 +46,6 @@ struct sh_mobile_meram_ops { | |||
46 | const struct sh_mobile_meram_cfg *cfg, | 46 | const struct sh_mobile_meram_cfg *cfg, |
47 | unsigned int xres, unsigned int yres, | 47 | unsigned int xres, unsigned int yres, |
48 | unsigned int pixelformat, | 48 | unsigned int pixelformat, |
49 | unsigned long base_addr_y, | ||
50 | unsigned long base_addr_c, | ||
51 | unsigned long *icb_addr_y, | ||
52 | unsigned long *icb_addr_c, | ||
53 | unsigned int *pitch); | 49 | unsigned int *pitch); |
54 | 50 | ||
55 | /* unregister usage of meram */ | 51 | /* unregister usage of meram */ |