#include <linux/pm_runtime.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
#include <mach/busfreq.h>
+#else
+#include <linux/reset.h>
#endif
#endif
/* Zone used for header/footer. */
struct resource* res;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
struct contiguous_mem_pool *pool;
+ struct reset_control *rstc;
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
struct device_node *dn =pdev->dev.of_node;
const u32 *prop;
if (!ret)
{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
+ rstc = devm_reset_control_get(&pdev->dev, "gpu3d");
+ galDevice->rstc[gcvCORE_MAJOR] = IS_ERR(rstc) ? NULL : rstc;
+
+ rstc = devm_reset_control_get(&pdev->dev, "gpu2d");
+ galDevice->rstc[gcvCORE_2D] = IS_ERR(rstc) ? NULL : rstc;
+
+ rstc = devm_reset_control_get(&pdev->dev, "gpuvg");
+ galDevice->rstc[gcvCORE_VG] = IS_ERR(rstc) ? NULL : rstc;
+#endif
platform_set_drvdata(pdev, galDevice);
#if gcdENABLE_FSCALE_VAL_ADJUST
#include <linux/math64.h>
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
+#include <linux/reset.h>
static inline void imx_gpc_power_up_pu(bool flag) {}
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
#include <mach/common.h>
}
gcmkFOOTER_NO();
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
+ struct reset_control *rstc = Os->device->rstc[Core];
+ if (rstc)
+ reset_control_reset(rstc);
#else
imx_src_reset_gpu((int)Core);
#endif