printk("%s:unknow bits %d\n",__func__, bits);
}
- DBG_PINCTRL("%s:reg=0x%x,data=0x%x\n",__func__, reg - reg0, data);
+ DBG_PINCTRL("%s:reg=0x%x,data=0x%x\n",__func__, reg - info->reg_mux, data);
return 0;
}
case 0:
//pmu
reg = bank->reg_mux_bank0;
- //reg += RK3288_GRF_GPIO0_A_IOMUX;
bits = 2;
rk32_iomux_bit_op(bank, pin, mux, reg, bits);
break;
}
else if(m.mux.goff == 0x0d)
{
+ reg -= 3*4;
bits = 4;
}
}
else if((m.mux.goff == 0x0c) || (m.mux.goff == 0x0d))
{
+ reg += 2*4;
bits = 2;
}
}
else if((m.mux.goff == 0x0c))
{
+ reg -= 2*4;
bits = 4;
}
{
if(j <= 0)
{
- printk("%s:could find config register for PIN%d-%d,type=%d,num=%d\n",__func__, bank->bank_num, pin_num, config_type, num);
+ printk("%s:could not find config register for PIN%d-%d,type=%d,num=%d\n",__func__, bank->bank_num, pin_num, config_type, num);
return -1;
}