exynos5-common: Enable fimd_bypass and minor cleanup
Basic cleanup, this code still does not work. Change-Id: I84ed9f08fd04cd8eb74cd860e0775d8c602f42d6 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/3049 Tested-by: build bot (Jenkins)
This commit is contained in:
@@ -100,7 +100,7 @@ static void fimd_bypass(void)
|
|||||||
{
|
{
|
||||||
struct exynos5_sysreg *sysreg = samsung_get_base_sysreg();
|
struct exynos5_sysreg *sysreg = samsung_get_base_sysreg();
|
||||||
|
|
||||||
/*setbits_le32(&sysreg->disp1blk_cfg, FIMDBYPASS_DISP1);*/
|
setbits_le32(&sysreg->disp1blk_cfg, FIMDBYPASS_DISP1);
|
||||||
sysreg->disp1blk_cfg &= ~FIMDBYPASS_DISP1;
|
sysreg->disp1blk_cfg &= ~FIMDBYPASS_DISP1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +122,8 @@ static u32 calc_fbsize(vidinfo_t *panel_info)
|
|||||||
* @param lcdbase pointer to the base address of framebuffer.
|
* @param lcdbase pointer to the base address of framebuffer.
|
||||||
* @pd pointer to the main panel_data structure
|
* @pd pointer to the main panel_data structure
|
||||||
*/
|
*/
|
||||||
void fb_init(vidinfo_t *panel_info, void *lcdbase, struct exynos5_fimd_panel *pd)
|
void fb_init(vidinfo_t *panel_info, void *lcdbase,
|
||||||
|
struct exynos5_fimd_panel *pd)
|
||||||
{
|
{
|
||||||
unsigned int val;
|
unsigned int val;
|
||||||
u32 fbsize;
|
u32 fbsize;
|
||||||
@@ -578,15 +579,15 @@ int dp_controller_init(struct s5p_dp_device *dp_device, unsigned *wait_ms)
|
|||||||
* @param lcdbase Base address of LCD frame buffer
|
* @param lcdbase Base address of LCD frame buffer
|
||||||
* @return 0 if ok, -ve error code on error
|
* @return 0 if ok, -ve error code on error
|
||||||
*/
|
*/
|
||||||
int lcd_ctrl_init(vidinfo_t *panel_info, struct exynos5_fimd_panel *panel_data, void *lcdbase)
|
int lcd_ctrl_init(vidinfo_t *panel_info,
|
||||||
|
struct exynos5_fimd_panel *panel_data, void *lcdbase)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
//vi->res = panel_info->vl_col;
|
|
||||||
//vi->yres = panel_info->vl_row;
|
|
||||||
|
|
||||||
fimd_bypass();
|
fimd_bypass();
|
||||||
fb_init(panel_info, lcdbase, panel_data);
|
fb_init(panel_info, lcdbase, panel_data);
|
||||||
|
printk(BIOS_SPEW,
|
||||||
|
"fb_init(%p, %p, %p) done\n", panel_info, lcdbase, panel_data);
|
||||||
|
|
||||||
/* Enable flushing after LCD writes if requested */
|
/* Enable flushing after LCD writes if requested */
|
||||||
// forget it. lcd_set_flush_dcache(1);
|
// forget it. lcd_set_flush_dcache(1);
|
||||||
|
Reference in New Issue
Block a user