diff options
author | John Crispin <john@openwrt.org> | 2008-06-07 16:04:31 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-06-07 16:04:31 +0000 |
commit | 93441174d623fa52c7d3780772ed01d1a25ef01b (patch) | |
tree | 09eb7adedb0abea188b46607112a2503d96e25c4 /target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c | |
parent | 06447d5cfac7991cbf45e4e9235ad10cdd112c7f (diff) | |
download | mtk-20170518-93441174d623fa52c7d3780772ed01d1a25ef01b.zip mtk-20170518-93441174d623fa52c7d3780772ed01d1a25ef01b.tar.gz mtk-20170518-93441174d623fa52c7d3780772ed01d1a25ef01b.tar.bz2 |
fixes ifxmips pci support and adds GENERIC_GPIO
SVN-Revision: 11396
Diffstat (limited to 'target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c')
-rw-r--r-- | target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c b/target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c index 4d14b89..91e17a9 100644 --- a/target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c +++ b/target/linux/ifxmips/files/drivers/char/ifxmips_mei_core.c @@ -260,7 +260,7 @@ unsigned char got_int = 0; static void meiLongwordWrite (u32* ul_address, u32 ul_data) { - writel(ul_data, ul_address); + ifxmips_w32(ul_data, ul_address); wmb(); return; } // end of "meiLongwordWrite(..." @@ -277,7 +277,7 @@ static void meiLongwordRead (u32* ul_address, u32 * pul_data) { //*pul_data = *((volatile u32 *)ul_address); - *pul_data = readl(ul_address); + *pul_data = ifxmips_r32(ul_address); wmb(); return; } // end of "meiLongwordRead(..." @@ -3561,9 +3561,9 @@ ifxmips_mei_init_module (void) ifxmips_mei_ceoc_init (); #endif // power up mei - temp = readl(IFXMIPS_PMU_PWDCR); + temp = ifxmips_r32(IFXMIPS_PMU_PWDCR); temp &= 0xffff7dbe; - writel(temp, IFXMIPS_PMU_PWDCR); + ifxmips_w32(temp, IFXMIPS_PMU_PWDCR); #if defined (CONFIG_ATM_IFXMIPS) IFX_ATM_LED_Callback_Register (adsl_led_flash); |