mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 07:10:18 +02:00
[adm5120] use __raw_{readl,writel} routines in the GPIO code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11560 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a921d08407
commit
ad6a7217f0
@ -3,8 +3,8 @@
|
|||||||
*
|
*
|
||||||
* ADM5120 GPIO support
|
* ADM5120 GPIO support
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007 OpenWrt.org
|
* Copyright (C) 2007-2008 OpenWrt.org
|
||||||
* Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
|
* Copyright (C) 2007-2008 Gabor Juhos <juhosg at openwrt.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License version 2 as published
|
* under the terms of the GNU General Public License version 2 as published
|
||||||
@ -28,8 +28,8 @@
|
|||||||
#include <adm5120_switch.h>
|
#include <adm5120_switch.h>
|
||||||
#include <adm5120_irq.h>
|
#include <adm5120_irq.h>
|
||||||
|
|
||||||
#define GPIO_READ(r) readl((r))
|
#define GPIO_READ(r) __raw_readl((r))
|
||||||
#define GPIO_WRITE(v, r) writel((v), (r))
|
#define GPIO_WRITE(v, r) __raw_writel((v), (r))
|
||||||
#define GPIO_REG(r) (void __iomem *)(KSEG1ADDR(ADM5120_SWITCH_BASE)+r)
|
#define GPIO_REG(r) (void __iomem *)(KSEG1ADDR(ADM5120_SWITCH_BASE)+r)
|
||||||
|
|
||||||
struct adm5120_gpio_line {
|
struct adm5120_gpio_line {
|
||||||
|
Loading…
Reference in New Issue
Block a user