forked from Minki/linux
25348160e9
This adds a special panel init hook for the ARM reference designs Integrator (IM-PD1), Versatile and RealView, so we can configure a DPI panel from device tree and have it working without boardfiles for these machines. Basically this is the same code as from the board files, just moved over to look up the syscon DT node and manipulate the special CLCD register from their regmap. Tested on RealView PB11MPcore. Cc: Pawel Moll <pawel.moll@arm.com> Cc: Rob Herring <robh@kernel.org> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
18 lines
427 B
C
18 lines
427 B
C
/*
|
|
* Special local versatile callbacks
|
|
*/
|
|
#include <linux/of.h>
|
|
#include <linux/amba/bus.h>
|
|
#include <linux/platform_data/video-clcd-versatile.h>
|
|
|
|
#if defined(CONFIG_PLAT_VERSATILE_CLCD) && defined(CONFIG_OF)
|
|
int versatile_clcd_init_panel(struct clcd_fb *fb,
|
|
struct device_node *endpoint);
|
|
#else
|
|
static inline int versatile_clcd_init_panel(struct clcd_fb *fb,
|
|
struct device_node *endpoint)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|