A simplied driver for the Freescale Semiconductor MXC DVFS module. More...
Functions | |
void | stop_dvfs (void) |
static int | init_dvfs_controller (void) |
static int __devinit | mxc_dvfs_core_probe (struct platform_device *pdev) |
static int | mxc_dvfs_core_suspend (struct platform_device *pdev, pm_message_t state) |
static int | mxc_dvfs_core_resume (struct platform_device *pdev) |
A simplied driver for the Freescale Semiconductor MXC DVFS module.
Upon initialization, the DVFS driver initializes the DVFS hardware sets up driver nodes attaches to the DVFS interrupt and initializes internal data structures. When the DVFS interrupt occurs the driver checks the cause of the interrupt (lower frequency, increase frequency or emergency) and changes the CPU voltage according to translation table that is loaded into the driver.
static int init_dvfs_controller | ( | void | ) | [static] |
This function is called for module initialization. It sets up the DVFS hardware. It sets default values for DVFS thresholds and counters. The default values was chosen from a set of different reasonable values. They was tested and the default values in the driver gave the best results. More work should be done to find optimal values.
Referenced by mxc_dvfs_core_probe().
static int __devinit mxc_dvfs_core_probe | ( | struct platform_device * | pdev | ) | [static] |
This is the probe routine for the DVFS driver.
pdev | The platform device structure |
References init_dvfs_controller().
static int mxc_dvfs_core_resume | ( | struct platform_device * | pdev | ) | [static] |
This function is called to resume the MU from a low power state.
dev | the device structure | |
level | the stage in device suspension process that we want the device to be put in |
static int mxc_dvfs_core_suspend | ( | struct platform_device * | pdev, | |
pm_message_t | state | |||
) | [static] |
This function is called to put DVFS in a low power state.
pdev | the device structure | |
state | the power state the device is entering |
References stop_dvfs().
void stop_dvfs | ( | void | ) |
This function disables the DVFS module.
Referenced by mxc_dvfs_core_suspend().
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |