drm/fsl-dcu: fix endian issue when using clk_register_divider
authorStefan Agner <stefan@agner.ch>
Fri, 2 Sep 2016 18:23:37 +0000 (11:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 11:02:06 +0000 (05:02 -0600)
commitd4e00e3800559f9aad56e958dd611c39f98bfb2c
tree64f4c17a18d466a11481f7e269db886bb5d68a2b
parent4bef3516f50df6efd3bc9ae370b6107341241b1b
drm/fsl-dcu: fix endian issue when using clk_register_divider

commit 6cc4758ae91c0582f07e3c94c7de1ad0975feff5 upstream.

Since using clk_register_divider to setup the pixel clock, regmap
is no longer used. Regmap did take care of DCU using different
endianness. Check endianness using the device-tree property
"big-endian" to determine the location of DIV_RATIO.

Fixes: 2d701449bce1 ("drm/fsl-dcu: use common clock framework for pixel clock divider")
Reported-by: Meng Yi <meng.yi@nxp.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Tested-by: Meng Yi <meng.yi@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c