summaryrefslogtreecommitdiff
path: root/drivers/phy/marvell/comphy_core.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-01-18 12:33:20 +0300
committerStefan Roese <sr@denx.de>2022-01-20 16:46:03 +0300
commit2928d2cd502a73eca2773f9ce3d5d96daca72788 (patch)
tree51dd3deb4effe20525bb8049b02c7cf9bcaa9f9b /drivers/phy/marvell/comphy_core.h
parentf33d67647f8ac1fdb940865053348176d9afe20b (diff)
downloadu-boot-2928d2cd502a73eca2773f9ce3d5d96daca72788.tar.xz
phy: marvell: Remove unused function comphy_update_map()
This weak function is not used anymore, so completely remove it. Private struct comphy_map is not used by any board code anymore, so move it into private driver header file comphy_core.h. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/phy/marvell/comphy_core.h')
-rw-r--r--drivers/phy/marvell/comphy_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/phy/marvell/comphy_core.h b/drivers/phy/marvell/comphy_core.h
index d573776c05..f3d0493938 100644
--- a/drivers/phy/marvell/comphy_core.h
+++ b/drivers/phy/marvell/comphy_core.h
@@ -8,6 +8,7 @@
#include <fdtdec.h>
#include <mvebu/comphy.h>
+#include <dt-bindings/comphy/comphy_data.h>
#if defined(DEBUG)
#define debug_enter() printf("----> Enter %s\n", __func__);
@@ -20,6 +21,14 @@
#define MAX_LANE_OPTIONS 10
#define MAX_UTMI_PHY_COUNT 6
+struct comphy_map {
+ u32 type;
+ u32 speed;
+ u32 invert;
+ bool clk_src;
+ bool end_point;
+};
+
struct comphy_mux_options {
u32 type;
u32 mux_value;