]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: ast2600: Revise MII interface delay
authorDylan Hung <dylan_hung@aspeedtech.com>
Thu, 9 Dec 2021 02:12:28 +0000 (10:12 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 18 Jan 2022 17:48:17 +0000 (12:48 -0500)
The clock delay of the RMII/RGMII interface is controlled by SCU340~35C.
These values are obtained by measurement and experiments so we simply
use macro to define them.

Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/clk/aspeed/clk_ast2600.c

index 42ca39421cff7c04af530cafae449cfb1888f649..3fb8d68d648354cb6a63cf4118880d805245ba4c 100644 (file)
@@ -19,11 +19,11 @@ DECLARE_GLOBAL_DATA_PTR;
 #define CLKIN_25M 25000000UL
 
 /* MAC Clock Delay settings */
-#define MAC12_DEF_DELAY_1G             0x0041b75d
-#define MAC12_DEF_DELAY_100M   0x00417410
-#define MAC12_DEF_DELAY_10M            0x00417410
-#define MAC34_DEF_DELAY_1G             0x0010438a
-#define MAC34_DEF_DELAY_100M   0x00104208
+#define MAC12_DEF_DELAY_1G             0x0028a410
+#define MAC12_DEF_DELAY_100M           0x00410410
+#define MAC12_DEF_DELAY_10M            0x00410410
+#define MAC34_DEF_DELAY_1G             0x00104208
+#define MAC34_DEF_DELAY_100M           0x00104208
 #define MAC34_DEF_DELAY_10M            0x00104208
 
 /*