diff options
Diffstat (limited to 'drivers/mxc/gpu-viv')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c | 104 |
1 files changed, 1 insertions, 103 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c index 2fd668a4157c..8f8657f4c81e 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c @@ -70,10 +70,6 @@ static gckGALDEVICE galDevice; extern gcTA globalTA[16]; -gceSTATUS -gckGALDEVICE_QueryFrequency( IN gckGALDEVICE Device); - - /******************************************************************************\ ******************************** Debugfs Support ******************************* \******************************************************************************/ @@ -702,8 +698,6 @@ static int gc_clk_show(struct seq_file* m, void* data) gckGALDEVICE device = node->device; gctUINT i; - gckGALDEVICE_QueryFrequency(device); - for (i = gcvCORE_MAJOR; i < gcvCORE_COUNT; i++) { if (device->kernels[i]) @@ -716,6 +710,7 @@ static int gc_clk_show(struct seq_file* m, void* data) continue; } #endif + gckHARDWARE_QueryFrequency(hardware); if (hardware->mcClk) { @@ -2099,103 +2094,6 @@ gckGALDEVICE_Stop_Threads( /******************************************************************************* ** -** gckGALDEVICE_QueryFrequency -** -** Query frequency for all the hardwares. -** -*/ -gceSTATUS -gckGALDEVICE_QueryFrequency( - IN gckGALDEVICE Device - ) -{ - gctUINT64 mcStart[gcvCORE_COUNT] = { 0 }, shStart[gcvCORE_COUNT]; - gctUINT32 mcClk[gcvCORE_COUNT], shClk[gcvCORE_COUNT]; - gckHARDWARE hardware = gcvNULL; - gceSTATUS status; - gctUINT i; - - gcmkHEADER_ARG("Device=0x%p", Device); - - for (i = gcvCORE_MAJOR; i < gcvCORE_COUNT; i++) - { -#if gcdENABLE_VG - if (i == gcvCORE_VG) - { - continue; - } -#endif - - if (Device->kernels[i]) - { - hardware = Device->kernels[i]->hardware; - - mcStart[i] = shStart[i] = 0; - - if (Device->args.powerManagement) - { - gcmkONERROR(gckHARDWARE_SetPowerManagement( - hardware, gcvFALSE - )); - } - - gcmkONERROR(gckHARDWARE_SetPowerManagementState( - hardware, gcvPOWER_ON_AUTO - )); - - gckHARDWARE_EnterQueryClock(hardware, - &mcStart[i], &shStart[i]); - } - } - - gcmkONERROR(gckOS_Delay(Device->os, 50)); - - for (i = gcvCORE_MAJOR; i < gcvCORE_COUNT; i++) - { - mcClk[i] = shClk[i] = 0; - -#if gcdENABLE_VG - if (i == gcvCORE_VG) - { - continue; - } -#endif - - if (Device->kernels[i]) - { - hardware = Device->kernels[i]->hardware; - - if (mcStart[i]) - { - gckHARDWARE_ExitQueryClock(hardware, - mcStart[i], shStart[i], - &mcClk[i], &shClk[i]); - } - - hardware->mcClk = mcClk[i]; - hardware->shClk = shClk[i]; - - if (Device->args.powerManagement) - { - gcmkONERROR(gckHARDWARE_SetPowerManagement( - hardware, gcvTRUE - )); - } - } - } - - gcmkFOOTER_NO(); - - return gcvSTATUS_OK; - -OnError: - gcmkFOOTER(); - - return status; -} - -/******************************************************************************* -** ** gckGALDEVICE_Start ** ** Start the gal device, including the following actions: setup the isr routine |