]> Git Repo - u-boot.git/blobdiff - drivers/phy/phy-ti-am654.c
Merge tag 'v2023.10-rc3' into next
[u-boot.git] / drivers / phy / phy-ti-am654.c
index cc73760c8be9bd460b0585ffa3df3d55a2944774..70a746d2c92dcca45bc5948978c6059b006eceda 100644 (file)
@@ -16,7 +16,6 @@
 #include <dt-bindings/phy/phy.h>
 #include <generic-phy.h>
 #include <asm/io.h>
-#include <asm/arch/sys_proto.h>
 #include <power-domain.h>
 #include <regmap.h>
 #include <syscon.h>
@@ -28,8 +27,8 @@
 #define CMU_MASTER_CDN_O       BIT(24)
 
 #define COMLANE_R138           0xb38
-#define CONFIG_VERSION_REG_MASK        GENMASK(23, 16)
-#define CONFIG_VERSION_REG_SHIFT 16
+#define CFG_VERSION_REG_MASK   GENMASK(23, 16)
+#define CFG_VERSION_REG_SHIFT 16
 #define VERSION                        0x70
 
 #define COMLANE_R190           0xb90
@@ -187,7 +186,7 @@ U_BOOT_DRIVER(serdes_am654_mux_clk) = {
        .name = "ti-serdes-am654-mux-clk",
        .id = UCLASS_CLK,
        .probe = serdes_am654_mux_clk_probe,
-       .priv_auto_alloc_size = sizeof(struct serdes_am654_mux_clk_data),
+       .priv_auto      = sizeof(struct serdes_am654_mux_clk_data),
        .ops = &serdes_am654_mux_clk_ops,
 };
 
@@ -286,8 +285,8 @@ static int serdes_am654_init(struct phy *x)
        u32 mask;
        u32 val;
 
-       mask = CONFIG_VERSION_REG_MASK;
-       val = VERSION << CONFIG_VERSION_REG_SHIFT;
+       mask = CFG_VERSION_REG_MASK;
+       val = VERSION << CFG_VERSION_REG_SHIFT;
        regmap_update_bits(phy->regmap, COMLANE_R138, mask, val);
 
        val = CMU_MASTER_CDN_O;
@@ -344,7 +343,7 @@ static int serdes_am654_bind(struct udevice *dev)
 
        ret = device_bind_driver_to_node(dev->parent,
                                         "ti-serdes-am654-mux-clk",
-                                        dev_read_name(dev), dev->node,
+                                        dev_read_name(dev), dev_ofnode(dev),
                                         NULL);
        if (ret) {
                dev_err(dev, "%s: not able to bind clock driver\n", __func__);
@@ -412,5 +411,5 @@ U_BOOT_DRIVER(am654_serdes_phy) = {
        .bind = serdes_am654_bind,
        .ops = &serdes_am654_phy_ops,
        .probe = serdes_am654_probe,
-       .priv_auto_alloc_size = sizeof(struct serdes_am654),
+       .priv_auto      = sizeof(struct serdes_am654),
 };
This page took 0.02781 seconds and 4 git commands to generate.