diff options
author | Khoronzhuk, Ivan <ivan.khoronzhuk@ti.com> | 2014-08-28 16:07:45 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-04 13:06:00 -0400 |
commit | e6c9428a2fe584c69374fd2d49ed61fdb1568114 (patch) | |
tree | d5f9695e467fb030488ee473fc126a5194026768 /arch/arm/include/asm | |
parent | 09642269a6f697786c66efcd5182ce0c0b3e29dd (diff) | |
download | u-boot-imx-e6c9428a2fe584c69374fd2d49ed61fdb1568114.zip u-boot-imx-e6c9428a2fe584c69374fd2d49ed61fdb1568114.tar.gz u-boot-imx-e6c9428a2fe584c69374fd2d49ed61fdb1568114.tar.bz2 |
keystone2: use readl/writel functions instead of redefinition
There is no reason to redefine pure readl/writel functions.
So remove this redundancy.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Acked-by: Vitaly Andrianov <vitalya@ti.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/arch-keystone/emac_defs.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/include/asm/arch-keystone/emac_defs.h b/arch/arm/include/asm/arch-keystone/emac_defs.h index 0aa2f89..9cd8925 100644 --- a/arch/arm/include/asm/arch-keystone/emac_defs.h +++ b/arch/arm/include/asm/arch-keystone/emac_defs.h @@ -13,9 +13,6 @@ #include <asm/arch/hardware.h> #include <asm/io.h> -#define DEVICE_REG32_R(a) readl(a) -#define DEVICE_REG32_W(a, v) writel(v, a) - #define EMAC_EMACSL_BASE_ADDR (KS2_PASS_BASE + 0x00090900) #define EMAC_MDIO_BASE_ADDR (KS2_PASS_BASE + 0x00090300) #define EMAC_SGMII_BASE_ADDR (KS2_PASS_BASE + 0x00090100) @@ -182,8 +179,8 @@ struct mac_sl_cfg { #endif #define hw_config_streaming_switch() \ - DEVICE_REG32_W(DEVICE_PSTREAM_CFG_REG_ADDR, \ - DEVICE_PSTREAM_CFG_REG_VAL_ROUTE_CPPI); + writel(DEVICE_PSTREAM_CFG_REG_VAL_ROUTE_CPPI,\ + DEVICE_PSTREAM_CFG_REG_ADDR); /* EMAC MDIO Registers Structure */ struct mdio_regs { |