@ -58,9 +58,9 @@ void lcdbacklight(int on)
unsigned int bright = FDTPROP ( PATHINF , " brightdef " ) ;
unsigned int pwmfrq = FDTPROP ( PATHINF , " brightfdim " ) ;
# else
unsigned int driver = getenv _ulong ( " ds1_bright_drv " , 16 , 0UL ) ;
unsigned int bright = getenv _ulong ( " ds1_bright_def " , 10 , 50 ) ;
unsigned int pwmfrq = getenv _ulong ( " ds1_pwmfreq " , 10 , ~ 0UL ) ;
unsigned int driver = env_ get_ulong( " ds1_bright_drv " , 16 , 0UL ) ;
unsigned int bright = env_ get_ulong( " ds1_bright_def " , 10 , 50 ) ;
unsigned int pwmfrq = env_ get_ulong( " ds1_pwmfreq " , 10 , ~ 0UL ) ;
# endif
unsigned int tmp ;
struct gptimer * timerhw ;
@ -186,20 +186,20 @@ int load_lcdtiming(struct am335x_lcdpanel *panel)
snprintf ( buf , sizeof ( buf ) , " fbcon=rotate:%d " , panel_info . vl_rot ) ;
env_set ( " optargs_rot " , buf ) ;
# else
pnltmp . hactive = getenv _ulong ( " ds1_hactive " , 10 , ~ 0UL ) ;
pnltmp . vactive = getenv _ulong ( " ds1_vactive " , 10 , ~ 0UL ) ;
pnltmp . bpp = getenv _ulong ( " ds1_bpp " , 10 , ~ 0UL ) ;
pnltmp . hfp = getenv _ulong ( " ds1_hfp " , 10 , ~ 0UL ) ;
pnltmp . hbp = getenv _ulong ( " ds1_hbp " , 10 , ~ 0UL ) ;
pnltmp . hsw = getenv _ulong ( " ds1_hsw " , 10 , ~ 0UL ) ;
pnltmp . vfp = getenv _ulong ( " ds1_vfp " , 10 , ~ 0UL ) ;
pnltmp . vbp = getenv _ulong ( " ds1_vbp " , 10 , ~ 0UL ) ;
pnltmp . vsw = getenv _ulong ( " ds1_vsw " , 10 , ~ 0UL ) ;
pnltmp . pxl_clk_div = getenv _ulong ( " ds1_pxlclkdiv " , 10 , ~ 0UL ) ;
pnltmp . pol = getenv _ulong ( " ds1_pol " , 16 , ~ 0UL ) ;
pnltmp . pup_delay = getenv _ulong ( " ds1_pupdelay " , 10 , ~ 0UL ) ;
pnltmp . pon_delay = getenv _ulong ( " ds1_tondelay " , 10 , ~ 0UL ) ;
panel_info . vl_rot = getenv _ulong ( " ds1_rotation " , 10 , 0 ) ;
pnltmp . hactive = env_ get_ulong( " ds1_hactive " , 10 , ~ 0UL ) ;
pnltmp . vactive = env_ get_ulong( " ds1_vactive " , 10 , ~ 0UL ) ;
pnltmp . bpp = env_ get_ulong( " ds1_bpp " , 10 , ~ 0UL ) ;
pnltmp . hfp = env_ get_ulong( " ds1_hfp " , 10 , ~ 0UL ) ;
pnltmp . hbp = env_ get_ulong( " ds1_hbp " , 10 , ~ 0UL ) ;
pnltmp . hsw = env_ get_ulong( " ds1_hsw " , 10 , ~ 0UL ) ;
pnltmp . vfp = env_ get_ulong( " ds1_vfp " , 10 , ~ 0UL ) ;
pnltmp . vbp = env_ get_ulong( " ds1_vbp " , 10 , ~ 0UL ) ;
pnltmp . vsw = env_ get_ulong( " ds1_vsw " , 10 , ~ 0UL ) ;
pnltmp . pxl_clk_div = env_ get_ulong( " ds1_pxlclkdiv " , 10 , ~ 0UL ) ;
pnltmp . pol = env_ get_ulong( " ds1_pol " , 16 , ~ 0UL ) ;
pnltmp . pup_delay = env_ get_ulong( " ds1_pupdelay " , 10 , ~ 0UL ) ;
pnltmp . pon_delay = env_ get_ulong( " ds1_tondelay " , 10 , ~ 0UL ) ;
panel_info . vl_rot = env_ get_ulong( " ds1_rotation " , 10 , 0 ) ;
# endif
if (
~ 0UL = = ( pnltmp . hactive ) | |
@ -251,7 +251,7 @@ static int load_devicetree(void)
{
int rc ;
loff_t dtbsize ;
u32 dtbaddr = getenv _ulong ( " dtbaddr " , 16 , 0UL ) ;
u32 dtbaddr = env_ get_ulong( " dtbaddr " , 16 , 0UL ) ;
if ( dtbaddr = = 0 ) {
printf ( " %s: don't have a valid <dtbaddr> in env! \n " , __func__ ) ;
@ -375,7 +375,7 @@ int ft_board_setup(void *blob, bd_t *bd)
* if no simplefb is requested through environment , we don ' t set up
* one , instead we turn off backlight .
*/
if ( getenv _ulong ( " simplefb " , 10 , 0 ) = = 0 ) {
if ( env_ get_ulong( " simplefb " , 10 , 0 ) = = 0 ) {
lcdbacklight ( 0 ) ;
return 0 ;
}
@ -447,7 +447,7 @@ void lcdpower(int on)
}
pin = FDTPROP ( PATHINF , " pwrpin " ) ;
# else
pin = getenv _ulong ( " ds1_pwr " , 16 , ~ 0UL ) ;
pin = env_ get_ulong( " ds1_pwr " , 16 , ~ 0UL ) ;
# endif
if ( pin = = ~ 0UL ) {
puts ( " no pwrpin in dtb/env, cannot powerup display! \n " ) ;