fbdev: sh_mobile_meram: Make current_reg field store the current reg set
Make sure current_reg == 0/1 always mean register set A/B through all the code. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
05432837ae
commit
eb4f2304ba
1 changed files with 1 additions and 1 deletions
|
@ -259,8 +259,8 @@ static inline void meram_set_next_addr(struct sh_mobile_meram_priv *priv,
|
||||||
{
|
{
|
||||||
unsigned long target;
|
unsigned long target;
|
||||||
|
|
||||||
target = (cfg->current_reg) ? MExxSARA : MExxSARB;
|
|
||||||
cfg->current_reg ^= 1;
|
cfg->current_reg ^= 1;
|
||||||
|
target = cfg->current_reg ? MExxSARB : MExxSARA;
|
||||||
|
|
||||||
/* set the next address to fetch */
|
/* set the next address to fetch */
|
||||||
meram_write_icb(priv->base, cfg->icb[0].cache_icb, target,
|
meram_write_icb(priv->base, cfg->icb[0].cache_icb, target,
|
||||||
|
|
Loading…
Add table
Reference in a new issue