]> git.sur5r.net Git - u-boot/commit
phy: marvell: a3700: Don't create functional macro for each register
authorMarek BehĂșn <marek.behun@nic.cz>
Tue, 24 Apr 2018 15:21:14 +0000 (17:21 +0200)
committerStefan Roese <sr@denx.de>
Mon, 14 May 2018 08:00:15 +0000 (10:00 +0200)
commit210f4aae81430a59743562ac3c5d8b4d68bd809f
tree3e4ad11e8b4342e282eef4e449fb87a35333d67c
parent63cfff9fdeced543eb41093b0a143b4ba03cb0e1
phy: marvell: a3700: Don't create functional macro for each register

Currently there is for each register special functional macro, ie:
  LANE_CFG1_ADDR(u)
  GLOB_CLK_SRC_LO_ADDR(u)
  ...
where can be either PCIE or USB3.

Change this to one function PHY_ADDR(unit, addr). The code becomes:
  phy_addr(PCIE, LANE_CFG1)
  phy_addr(PCIE, GLOB_CLK_SRC_LO)
  ...

Signed-off-by: Marek Behun <marek.behun@nic.cz>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/phy/marvell/comphy_a3700.c
drivers/phy/marvell/comphy_a3700.h