mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 00:36:48 +07:00
b923d40dd4
Resetting DISPC when a DISPC output is enabled causes the DSS to go into an inconsistent state. Thus if the bootloader has enabled a display, the hwmod code cannot reset the DISPC module just like that, but the outputs need to be disabled first. Add function dispc_disable_outputs() which disables all active overlay manager and ensure all frame transfers are completed. Modify omap_dss_reset() to call this function and clear DSS_CONTROL, DSS_SDI_CONTROL and DSS_PLL_CONTROL so that DSS is in a clean state when the DSS2 driver starts. This resolves the hang issue(caused by a L3 error during boot) seen on the beagle board C3, which has a factory bootloader that enables display. The issue is resolved with this patch. Thanks to Tomi and Sricharan for some additional testing. Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Tested-by: R, Sricharan <r.sricharan@ti.com> Signed-off-by: Archit Taneja <archit@ti.com> [paul@pwsan.com: restructured code, removed omap_{read,write}l(), removed cpu_is_omap*() calls and converted to dev_attr] Signed-off-by: Paul Walmsley <paul@pwsan.com>
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/*
|
|
* omap_hwmod common data structures
|
|
*
|
|
* Copyright (C) 2010 Texas Instruments, Inc.
|
|
* Thara Gopinath <thara@ti.com>
|
|
* Benoît Cousson
|
|
*
|
|
* Copyright (C) 2010 Nokia Corporation
|
|
* Paul Walmsley
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This data/structures are to be used while defining OMAP on-chip module
|
|
* data and their integration with other OMAP modules and Linux.
|
|
*/
|
|
|
|
#include <plat/omap_hwmod.h>
|
|
|
|
#include "omap_hwmod_common_data.h"
|
|
|
|
/**
|
|
* struct omap_hwmod_sysc_type1 - TYPE1 sysconfig scheme.
|
|
*
|
|
* To be used by hwmod structure to specify the sysconfig offsets
|
|
* if the device ip is compliant with the original PRCM protocol
|
|
* defined for OMAP2420.
|
|
*/
|
|
struct omap_hwmod_sysc_fields omap_hwmod_sysc_type1 = {
|
|
.midle_shift = SYSC_TYPE1_MIDLEMODE_SHIFT,
|
|
.clkact_shift = SYSC_TYPE1_CLOCKACTIVITY_SHIFT,
|
|
.sidle_shift = SYSC_TYPE1_SIDLEMODE_SHIFT,
|
|
.enwkup_shift = SYSC_TYPE1_ENAWAKEUP_SHIFT,
|
|
.srst_shift = SYSC_TYPE1_SOFTRESET_SHIFT,
|
|
.autoidle_shift = SYSC_TYPE1_AUTOIDLE_SHIFT,
|
|
};
|
|
|
|
/**
|
|
* struct omap_hwmod_sysc_type2 - TYPE2 sysconfig scheme.
|
|
*
|
|
* To be used by hwmod structure to specify the sysconfig offsets if the
|
|
* device ip is compliant with the new PRCM protocol defined for new
|
|
* OMAP4 IPs.
|
|
*/
|
|
struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2 = {
|
|
.midle_shift = SYSC_TYPE2_MIDLEMODE_SHIFT,
|
|
.sidle_shift = SYSC_TYPE2_SIDLEMODE_SHIFT,
|
|
.srst_shift = SYSC_TYPE2_SOFTRESET_SHIFT,
|
|
};
|
|
|
|
struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr = {
|
|
.manager_count = 2,
|
|
.has_framedonetv_irq = 0
|
|
};
|