@@ -17,6 +17,7 @@
#include <dm/device_compat.h>
#include <linux/err.h>
+#include <asm/arch/secure_reg_helper.h>
#include <asm/arch/system_manager.h>
struct dwmac_socfpga_platdata {
@@ -98,8 +99,8 @@ static int dwmac_socfpga_probe(struct udevice *dev)
reset_assert_bulk(&reset_bulk);
modemask = SYSMGR_EMACGRP_CTRL_PHYSEL_MASK << pdata->reg_shift;
- clrsetbits_le32(pdata->phy_intf, modemask,
- modereg << pdata->reg_shift);
+ socfpga_secure_reg_update32((phys_addr_t)pdata->phy_intf, modemask,
+ modereg << pdata->reg_shift);
reset_release_bulk(&reset_bulk);