aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-mfc/regs-mfc-v6.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2017-02-09 06:32:17 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-05 15:55:39 -0300
commit36fb494139a362dd8082a65941509196e0834ead (patch)
tree3cd5fb3f45fa1205c562522f6474b3cf0fee08a2 /drivers/media/platform/s5p-mfc/regs-mfc-v6.h
parent[media] s5p-mfc: Allocate firmware with internal private buffer alloc function (diff)
downloadlinux-dev-36fb494139a362dd8082a65941509196e0834ead.tar.xz
linux-dev-36fb494139a362dd8082a65941509196e0834ead.zip
[media] s5p-mfc: Reduce firmware buffer size for MFC v6+ variants
Firmware for MFC v6+ variants is not larger than 400 KiB, so there is no need to allocate a full 1 MiB buffer for it. Reduce it to 512 KiB to keep proper alignment of allocated buffer. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Andrzej Hajda <a.hajda@samsung.com> Tested-by: Smitha T Murthy <smitha.t@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/s5p-mfc/regs-mfc-v6.h')
-rw-r--r--drivers/media/platform/s5p-mfc/regs-mfc-v6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/regs-mfc-v6.h b/drivers/media/platform/s5p-mfc/regs-mfc-v6.h
index d2cd35916dc5..c0166ee9a455 100644
--- a/drivers/media/platform/s5p-mfc/regs-mfc-v6.h
+++ b/drivers/media/platform/s5p-mfc/regs-mfc-v6.h
@@ -403,7 +403,7 @@
#define MFC_OTHER_ENC_CTX_BUF_SIZE_V6 (12 * SZ_1K) /* 12KB */
/* MFCv6 variant defines */
-#define MAX_FW_SIZE_V6 (SZ_1M) /* 1MB */
+#define MAX_FW_SIZE_V6 (SZ_512K) /* 512KB */
#define MAX_CPB_SIZE_V6 (3 * SZ_1M) /* 3MB */
#define MFC_VERSION_V6 0x61
#define MFC_NUM_PORTS_V6 1