From ab78694fe88bf0d65952c13a53ea14e92eb7885f Mon Sep 17 00:00:00 2001 From: Sungbo Eo Date: Thu, 2 Jul 2020 22:33:18 +0900 Subject: treewide: rename POWER_ON_STRIP register AR8327 datasheet[1] calls the register at address 0x0010 "Power-on Strapping Register". As it has nothing to do with "strip", let's rename it to "POWER_ON_STRAP" to make it easier to grasp. [1] https://lafibre.info/images/doc/201106_spec_AR8327.pdf Signed-off-by: Sungbo Eo --- target/linux/generic/files/drivers/net/phy/ar8327.c | 14 +++++++------- target/linux/generic/files/drivers/net/phy/ar8327.h | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'target/linux/generic/files/drivers/net') diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c index 4cbfa4d234..dce52ce0e4 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.c +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c @@ -553,15 +553,15 @@ ar8327_hw_config_pdata(struct ar8xxx_priv *priv, t = ar8327_get_pad_cfg(pdata->pad6_cfg); ar8xxx_write(priv, AR8327_REG_PAD6_MODE, t); - pos = ar8xxx_read(priv, AR8327_REG_POWER_ON_STRIP); + pos = ar8xxx_read(priv, AR8327_REG_POWER_ON_STRAP); new_pos = pos; led_cfg = pdata->led_cfg; if (led_cfg) { if (led_cfg->open_drain) - new_pos |= AR8327_POWER_ON_STRIP_LED_OPEN_EN; + new_pos |= AR8327_POWER_ON_STRAP_LED_OPEN_EN; else - new_pos &= ~AR8327_POWER_ON_STRIP_LED_OPEN_EN; + new_pos &= ~AR8327_POWER_ON_STRAP_LED_OPEN_EN; ar8xxx_write(priv, AR8327_REG_LED_CTRL0, led_cfg->led_ctrl0); ar8xxx_write(priv, AR8327_REG_LED_CTRL1, led_cfg->led_ctrl1); @@ -569,7 +569,7 @@ ar8327_hw_config_pdata(struct ar8xxx_priv *priv, ar8xxx_write(priv, AR8327_REG_LED_CTRL3, led_cfg->led_ctrl3); if (new_pos != pos) - new_pos |= AR8327_POWER_ON_STRIP_POWER_ON_SEL; + new_pos |= AR8327_POWER_ON_STRAP_POWER_ON_SEL; } if (pdata->sgmii_cfg) { @@ -586,12 +586,12 @@ ar8327_hw_config_pdata(struct ar8xxx_priv *priv, ar8xxx_write(priv, AR8327_REG_SGMII_CTRL, t); if (pdata->sgmii_cfg->serdes_aen) - new_pos &= ~AR8327_POWER_ON_STRIP_SERDES_AEN; + new_pos &= ~AR8327_POWER_ON_STRAP_SERDES_AEN; else - new_pos |= AR8327_POWER_ON_STRIP_SERDES_AEN; + new_pos |= AR8327_POWER_ON_STRAP_SERDES_AEN; } - ar8xxx_write(priv, AR8327_REG_POWER_ON_STRIP, new_pos); + ar8xxx_write(priv, AR8327_REG_POWER_ON_STRAP, new_pos); if (pdata->leds && pdata->num_leds) { int i; diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h index a59d306d6f..088b288618 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.h +++ b/target/linux/generic/files/drivers/net/phy/ar8327.h @@ -53,10 +53,10 @@ #define AR8327_PAD_RGMII_TXCLK_DELAY_EN BIT(25) #define AR8327_PAD_RGMII_EN BIT(26) -#define AR8327_REG_POWER_ON_STRIP 0x010 -#define AR8327_POWER_ON_STRIP_POWER_ON_SEL BIT(31) -#define AR8327_POWER_ON_STRIP_LED_OPEN_EN BIT(24) -#define AR8327_POWER_ON_STRIP_SERDES_AEN BIT(7) +#define AR8327_REG_POWER_ON_STRAP 0x010 +#define AR8327_POWER_ON_STRAP_POWER_ON_SEL BIT(31) +#define AR8327_POWER_ON_STRAP_LED_OPEN_EN BIT(24) +#define AR8327_POWER_ON_STRAP_SERDES_AEN BIT(7) #define AR8327_REG_INT_STATUS0 0x020 #define AR8327_INT0_VT_DONE BIT(20) -- cgit v1.2.3