Skip to content

Commit

Permalink
sh: maple: ctrl_in/outX to __raw_read/writeX conversion.
Browse files Browse the repository at this point in the history
The ctrl_xxx routines are deprecated, switch over to the __raw_xxx
versions.

Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
pmundt committed Oct 27, 2010
1 parent 9eb79bb commit c053784
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions drivers/sh/maple/maple.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ EXPORT_SYMBOL_GPL(maple_driver_unregister);
/* set hardware registers to enable next round of dma */
static void maple_dma_reset(void)
{
ctrl_outl(MAPLE_MAGIC, MAPLE_RESET);
__raw_writel(MAPLE_MAGIC, MAPLE_RESET);
/* set trig type to 0 for software trigger, 1 for hardware (VBLANK) */
ctrl_outl(1, MAPLE_TRIGTYPE);
__raw_writel(1, MAPLE_TRIGTYPE);
/*
* Maple system register
* bits 31 - 16 timeout in units of 20nsec
Expand All @@ -105,9 +105,9 @@ static void maple_dma_reset(void)
* bits 3 - 0 delay (in 1.3ms) between VBLANK and start of DMA
* max delay is 11
*/
ctrl_outl(MAPLE_2MBPS | MAPLE_TIMEOUT(0xFFFF), MAPLE_SPEED);
ctrl_outl(virt_to_phys(maple_sendbuf), MAPLE_DMAADDR);
ctrl_outl(1, MAPLE_ENABLE);
__raw_writel(MAPLE_2MBPS | MAPLE_TIMEOUT(0xFFFF), MAPLE_SPEED);
__raw_writel(virt_to_phys(maple_sendbuf), MAPLE_DMAADDR);
__raw_writel(1, MAPLE_ENABLE);
}

/**
Expand All @@ -130,7 +130,7 @@ EXPORT_SYMBOL_GPL(maple_getcond_callback);

static int maple_dma_done(void)
{
return (ctrl_inl(MAPLE_STATE) & 1) == 0;
return (__raw_readl(MAPLE_STATE) & 1) == 0;
}

static void maple_release_device(struct device *dev)
Expand Down Expand Up @@ -275,7 +275,7 @@ static void maple_send(void)
return;

/* disable DMA */
ctrl_outl(0, MAPLE_ENABLE);
__raw_writel(0, MAPLE_ENABLE);

if (!list_empty(&maple_sentq))
goto finish;
Expand Down Expand Up @@ -450,7 +450,7 @@ static void maple_vblank_handler(struct work_struct *work)
if (!maple_dma_done())
return;

ctrl_outl(0, MAPLE_ENABLE);
__raw_writel(0, MAPLE_ENABLE);

if (!list_empty(&maple_sentq))
goto finish;
Expand Down Expand Up @@ -636,7 +636,7 @@ static void maple_dma_handler(struct work_struct *work)

if (!maple_dma_done())
return;
ctrl_outl(0, MAPLE_ENABLE);
__raw_writel(0, MAPLE_ENABLE);
if (!list_empty(&maple_sentq)) {
list_for_each_entry_safe(mq, nmq, &maple_sentq, list) {
mdev = mq->dev;
Expand Down Expand Up @@ -796,7 +796,7 @@ static int __init maple_bus_init(void)
int retval, i;
struct maple_device *mdev[MAPLE_PORTS];

ctrl_outl(0, MAPLE_ENABLE);
__raw_writel(0, MAPLE_ENABLE);

retval = device_register(&maple_bus);
if (retval)
Expand Down

0 comments on commit c053784

Please sign in to comment.