video: imx: assert that image buffer doesn't cross a 4 MiB boundary
The reference manual (for the i.MX25 in my case) states:

	This field must start at a location that enables a complete
	picture to be stored in a 4 Mbyte memory boundary (A [21:0]). A
	[31:22] has a fixed value for a picture’s image.

Check this condition for user-supplied framebuffer values and enforce it
for driver-allocated buffers.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 342891f commit 36152c5aa546660c456eee3049c8bb7f0dd2a2ad
@Uwe Kleine-König Uwe Kleine-König authored on 16 Sep 2015
Sascha Hauer committed on 21 Sep 2015
Showing 1 changed file
View
drivers/video/imx.c