}
if (pInitParam->setAllEngOff == 1) {
- enable2DEngine(0);
+ enable_2d_engine(0);
/* Disable Overlay, if a former application left it on */
reg = PEEK32(VIDEO_DISPLAY_CTRL);
POKE32(DMA_ABORT_INTERRUPT, reg);
/* Disable DMA Power, if a former application left it on */
- enableDMA(0);
+ enable_dma(0);
}
/* We can add more initialization as needed. */
setDAC((output & DAC_MASK) >> DAC_OFFSET);
if (output & DPMS_USAGE)
- ddk750_setDPMS((output & DPMS_MASK) >> DPMS_OFFSET);
+ ddk750_set_dpms((output & DPMS_MASK) >> DPMS_OFFSET);
}
* Enable Hardware I2C power.
* TODO: Check if we need to enable GPIO power?
*/
- enableI2C(1);
+ enable_i2c(1);
/* Enable the I2C Controller and set the bus speed mode */
value = PEEK32(I2C_CTRL) & ~(I2C_CTRL_MODE | I2C_CTRL_EN);
POKE32(I2C_CTRL, value);
/* Disable I2C Power */
- enableI2C(0);
+ enable_i2c(0);
/* Set GPIO 30 & 31 back as GPIO pins */
value = PEEK32(GPIO_MUX);
#include "ddk750_reg.h"
#include "ddk750_power.h"
-void ddk750_setDPMS(DPMS_t state)
+void ddk750_set_dpms(DPMS_t state)
{
unsigned int value;
}
}
-static unsigned int getPowerMode(void)
+static unsigned int get_power_mode(void)
{
if (sm750_get_chip_type() == SM750LE)
return 0;
void set_current_gate(unsigned int gate)
{
- if (getPowerMode() == POWER_MODE_CTRL_MODE_MODE1)
+ if (get_power_mode() == POWER_MODE_CTRL_MODE_MODE1)
POKE32(MODE1_GATE, gate);
else
POKE32(MODE0_GATE, gate);
/*
* This function enable/disable the 2D engine.
*/
-void enable2DEngine(unsigned int enable)
+void enable_2d_engine(unsigned int enable)
{
u32 gate;
set_current_gate(gate);
}
-void enableDMA(unsigned int enable)
+void enable_dma(unsigned int enable)
{
u32 gate;
/*
* This function enable/disable the GPIO Engine
*/
-void enableGPIO(unsigned int enable)
+void enable_gpio(unsigned int enable)
{
u32 gate;
/*
* This function enable/disable the I2C Engine
*/
-void enableI2C(unsigned int enable)
+void enable_i2c(unsigned int enable)
{
u32 gate;
(PEEK32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
}
-void ddk750_setDPMS(DPMS_t);
+void ddk750_set_dpms(DPMS_t);
void set_power_mode(unsigned int powerMode);
void set_current_gate(unsigned int gate);
/*
* This function enable/disable the 2D engine.
*/
-void enable2DEngine(unsigned int enable);
+void enable_2d_engine(unsigned int enable);
/*
* This function enable/disable the DMA Engine
*/
-void enableDMA(unsigned int enable);
+void enable_dma(unsigned int enable);
/*
* This function enable/disable the GPIO Engine
*/
-void enableGPIO(unsigned int enable);
+void enable_gpio(unsigned int enable);
/*
* This function enable/disable the I2C Engine
*/
-void enableI2C(unsigned int enable);
+void enable_i2c(unsigned int enable);
#endif
PEEK32(sw_i2c_data_gpio_mux_reg) & ~(1 << sw_i2c_data_gpio));
/* Enable GPIO power */
- enableGPIO(1);
+ enable_gpio(1);
/* Clear the i2c lines. */
for (i = 0; i < 9; i++)
{
u32 reg;
- enable2DEngine(1);
+ enable_2d_engine(1);
if (sm750_get_chip_type() == SM750LE) {
reg = PEEK32(DE_STATE1);