clk: mediatek: mt7988: reorder TOPCKGEN factor ID
Reorder TOPCKGEN factor ID to put TOP_FACTOR first and then PLL. This is to match how it's done in upstream kernel linux and in preparation for OF_UPSTREAM support. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:

committed by
Tom Rini

parent
8b75c2c479
commit
1bafda9851
@@ -121,71 +121,71 @@
|
||||
|
||||
/* TOPCKGEN */
|
||||
/* mtk_fixed_factor */
|
||||
#define CK_TOP_XTAL 0 /* Linux CLK ID (74) */
|
||||
#define CK_TOP_CB_MPLL_416M 1 /* Linux CLK ID (75) */
|
||||
#define CK_TOP_MPLL_D2 2 /* Linux CLK ID (76) */
|
||||
#define CK_TOP_MPLL_D3_D2 3 /* Linux CLK ID (77) */
|
||||
#define CK_TOP_MPLL_D4 4 /* Linux CLK ID (78) */
|
||||
#define CK_TOP_MPLL_D8 5 /* Linux CLK ID (79) */
|
||||
#define CK_TOP_MPLL_D8_D2 6 /* Linux CLK ID (80) */
|
||||
#define CK_TOP_CB_MMPLL_720M 7 /* Linux CLK ID (81) */
|
||||
#define CK_TOP_MMPLL_D2 8 /* Linux CLK ID (82) */
|
||||
#define CK_TOP_MMPLL_D3_D5 9 /* Linux CLK ID (83) */
|
||||
#define CK_TOP_MMPLL_D4 10 /* Linux CLK ID (84) */
|
||||
#define CK_TOP_MMPLL_D6_D2 11 /* Linux CLK ID (85) */
|
||||
#define CK_TOP_MMPLL_D8 12 /* Linux CLK ID (86) */
|
||||
#define CK_TOP_CB_APLL2_196M 13 /* Linux CLK ID (87) */
|
||||
#define CK_TOP_APLL2_D4 14 /* Linux CLK ID (88) */
|
||||
#define CK_TOP_NET1PLL_D4 15 /* Linux CLK ID (89) */
|
||||
#define CK_TOP_NET1PLL_D5 16 /* Linux CLK ID (90) */
|
||||
#define CK_TOP_NET1PLL_D5_D2 17 /* Linux CLK ID (91) */
|
||||
#define CK_TOP_NET1PLL_D5_D4 18 /* Linux CLK ID (92) */
|
||||
#define CK_TOP_NET1PLL_D8 19 /* Linux CLK ID (93) */
|
||||
#define CK_TOP_NET1PLL_D8_D2 20 /* Linux CLK ID (94) */
|
||||
#define CK_TOP_NET1PLL_D8_D4 21 /* Linux CLK ID (95) */
|
||||
#define CK_TOP_NET1PLL_D8_D8 22 /* Linux CLK ID (96) */
|
||||
#define CK_TOP_NET1PLL_D8_D16 23 /* Linux CLK ID (97) */
|
||||
#define CK_TOP_CB_NET2PLL_800M 24 /* Linux CLK ID (98) */
|
||||
#define CK_TOP_NET2PLL_D2 25 /* Linux CLK ID (99) */
|
||||
#define CK_TOP_NET2PLL_D4 26 /* Linux CLK ID (100) */
|
||||
#define CK_TOP_NET2PLL_D4_D4 27 /* Linux CLK ID (101) */
|
||||
#define CK_TOP_NET2PLL_D4_D8 28 /* Linux CLK ID (102) */
|
||||
#define CK_TOP_NET2PLL_D6 29 /* Linux CLK ID (103) */
|
||||
#define CK_TOP_NET2PLL_D8 30 /* Linux CLK ID (104) */
|
||||
#define CK_TOP_CB_WEDMCUPLL_208M 31 /* Linux CLK ID (105) */
|
||||
#define CK_TOP_CB_SGMPLL_325M 32 /* Linux CLK ID (106) */
|
||||
#define CK_TOP_CB_NETSYSPLL_850M 33 /* Linux CLK ID (107) */
|
||||
#define CK_TOP_CB_MSDCPLL_400M 34 /* Linux CLK ID (108) */
|
||||
#define CK_TOP_XTAL_D2 35 /* Linux CLK ID (109) */
|
||||
#define CK_TOP_RTC_32K 36 /* Linux CLK ID (110) */
|
||||
#define CK_TOP_RTC_32P7K 37 /* Linux CLK ID (111) */
|
||||
#define CK_TOP_INFRA_F32K 38 /* Linux CLK ID (112) */
|
||||
#define CK_TOP_CKSQ_SRC 39 /* Linux CLK ID (113) */
|
||||
#define CK_TOP_NETSYS_2X 40 /* Linux CLK ID (114) */
|
||||
#define CK_TOP_NETSYS_GSW 41 /* Linux CLK ID (115) */
|
||||
#define CK_TOP_NETSYS_WED_MCU 42 /* Linux CLK ID (116) */
|
||||
#define CK_TOP_EIP197 43 /* Linux CLK ID (117) */
|
||||
#define CK_TOP_EMMC_250M 44 /* Linux CLK ID (118) */
|
||||
#define CK_TOP_EMMC_400M 45 /* Linux CLK ID (119) */
|
||||
#define CK_TOP_SPI 46 /* Linux CLK ID (120) */
|
||||
#define CK_TOP_SPIM_MST 47 /* Linux CLK ID (121) */
|
||||
#define CK_TOP_NFI1X 48 /* Linux CLK ID (122) */
|
||||
#define CK_TOP_SPINFI_BCK 49 /* Linux CLK ID (123) */
|
||||
#define CK_TOP_I2C_BCK 50 /* Linux CLK ID (124) */
|
||||
#define CK_TOP_USB_SYS 51 /* Linux CLK ID (125) */
|
||||
#define CK_TOP_USB_SYS_P1 52 /* Linux CLK ID (126) */
|
||||
#define CK_TOP_USB_XHCI 53 /* Linux CLK ID (127) */
|
||||
#define CK_TOP_USB_XHCI_P1 54 /* Linux CLK ID (128) */
|
||||
#define CK_TOP_USB_FRMCNT 55 /* Linux CLK ID (129) */
|
||||
#define CK_TOP_USB_FRMCNT_P1 56 /* Linux CLK ID (130) */
|
||||
#define CK_TOP_AUD 57 /* Linux CLK ID (131) */
|
||||
#define CK_TOP_A1SYS 58 /* Linux CLK ID (132) */
|
||||
#define CK_TOP_AUD_L 59 /* Linux CLK ID (133) */
|
||||
#define CK_TOP_A_TUNER 60 /* Linux CLK ID (134) */
|
||||
#define CK_TOP_SYSAXI 61 /* Linux CLK ID (135) */
|
||||
#define CK_TOP_INFRA_F26M 62 /* Linux CLK ID (136) */
|
||||
#define CK_TOP_USB_REF 63 /* Linux CLK ID (137) */
|
||||
#define CK_TOP_USB_CK_P1 64 /* Linux CLK ID (138) */
|
||||
#define CK_TOP_XTAL_D2 0 /* Linux CLK ID (109) */
|
||||
#define CK_TOP_RTC_32K 1 /* Linux CLK ID (110) */
|
||||
#define CK_TOP_RTC_32P7K 2 /* Linux CLK ID (111) */
|
||||
#define CK_TOP_INFRA_F32K 3 /* Linux CLK ID (112) */
|
||||
#define CK_TOP_CKSQ_SRC 4 /* Linux CLK ID (113) */
|
||||
#define CK_TOP_NETSYS_2X 5 /* Linux CLK ID (114) */
|
||||
#define CK_TOP_NETSYS_GSW 6 /* Linux CLK ID (115) */
|
||||
#define CK_TOP_NETSYS_WED_MCU 7 /* Linux CLK ID (116) */
|
||||
#define CK_TOP_EIP197 8 /* Linux CLK ID (117) */
|
||||
#define CK_TOP_EMMC_250M 9 /* Linux CLK ID (118) */
|
||||
#define CK_TOP_EMMC_400M 10 /* Linux CLK ID (119) */
|
||||
#define CK_TOP_SPI 11 /* Linux CLK ID (120) */
|
||||
#define CK_TOP_SPIM_MST 12 /* Linux CLK ID (121) */
|
||||
#define CK_TOP_NFI1X 13 /* Linux CLK ID (122) */
|
||||
#define CK_TOP_SPINFI_BCK 14 /* Linux CLK ID (123) */
|
||||
#define CK_TOP_I2C_BCK 15 /* Linux CLK ID (124) */
|
||||
#define CK_TOP_USB_SYS 16 /* Linux CLK ID (125) */
|
||||
#define CK_TOP_USB_SYS_P1 17 /* Linux CLK ID (126) */
|
||||
#define CK_TOP_USB_XHCI 18 /* Linux CLK ID (127) */
|
||||
#define CK_TOP_USB_XHCI_P1 19 /* Linux CLK ID (128) */
|
||||
#define CK_TOP_USB_FRMCNT 20 /* Linux CLK ID (129) */
|
||||
#define CK_TOP_USB_FRMCNT_P1 21 /* Linux CLK ID (130) */
|
||||
#define CK_TOP_AUD 22 /* Linux CLK ID (131) */
|
||||
#define CK_TOP_A1SYS 23 /* Linux CLK ID (132) */
|
||||
#define CK_TOP_AUD_L 24 /* Linux CLK ID (133) */
|
||||
#define CK_TOP_A_TUNER 25 /* Linux CLK ID (134) */
|
||||
#define CK_TOP_SYSAXI 26 /* Linux CLK ID (135) */
|
||||
#define CK_TOP_INFRA_F26M 27 /* Linux CLK ID (136) */
|
||||
#define CK_TOP_USB_REF 28 /* Linux CLK ID (137) */
|
||||
#define CK_TOP_USB_CK_P1 29 /* Linux CLK ID (138) */
|
||||
#define CK_TOP_XTAL 30 /* Linux CLK ID (74) */
|
||||
#define CK_TOP_CB_MPLL_416M 31 /* Linux CLK ID (75) */
|
||||
#define CK_TOP_MPLL_D2 32 /* Linux CLK ID (76) */
|
||||
#define CK_TOP_MPLL_D3_D2 33 /* Linux CLK ID (77) */
|
||||
#define CK_TOP_MPLL_D4 35 /* Linux CLK ID (78) */
|
||||
#define CK_TOP_MPLL_D8 34 /* Linux CLK ID (79) */
|
||||
#define CK_TOP_MPLL_D8_D2 36 /* Linux CLK ID (80) */
|
||||
#define CK_TOP_CB_MMPLL_720M 37 /* Linux CLK ID (81) */
|
||||
#define CK_TOP_MMPLL_D2 38 /* Linux CLK ID (82) */
|
||||
#define CK_TOP_MMPLL_D3_D5 39 /* Linux CLK ID (83) */
|
||||
#define CK_TOP_MMPLL_D4 40 /* Linux CLK ID (84) */
|
||||
#define CK_TOP_MMPLL_D6_D2 41 /* Linux CLK ID (85) */
|
||||
#define CK_TOP_MMPLL_D8 42 /* Linux CLK ID (86) */
|
||||
#define CK_TOP_CB_APLL2_196M 43 /* Linux CLK ID (87) */
|
||||
#define CK_TOP_APLL2_D4 44 /* Linux CLK ID (88) */
|
||||
#define CK_TOP_NET1PLL_D4 45 /* Linux CLK ID (89) */
|
||||
#define CK_TOP_NET1PLL_D5 46 /* Linux CLK ID (90) */
|
||||
#define CK_TOP_NET1PLL_D5_D2 47 /* Linux CLK ID (91) */
|
||||
#define CK_TOP_NET1PLL_D5_D4 48 /* Linux CLK ID (92) */
|
||||
#define CK_TOP_NET1PLL_D8 49 /* Linux CLK ID (93) */
|
||||
#define CK_TOP_NET1PLL_D8_D2 50 /* Linux CLK ID (94) */
|
||||
#define CK_TOP_NET1PLL_D8_D4 51 /* Linux CLK ID (95) */
|
||||
#define CK_TOP_NET1PLL_D8_D8 52 /* Linux CLK ID (96) */
|
||||
#define CK_TOP_NET1PLL_D8_D16 53 /* Linux CLK ID (97) */
|
||||
#define CK_TOP_CB_NET2PLL_800M 54 /* Linux CLK ID (98) */
|
||||
#define CK_TOP_NET2PLL_D2 55 /* Linux CLK ID (99) */
|
||||
#define CK_TOP_NET2PLL_D4 56 /* Linux CLK ID (100) */
|
||||
#define CK_TOP_NET2PLL_D4_D4 57 /* Linux CLK ID (101) */
|
||||
#define CK_TOP_NET2PLL_D4_D8 58 /* Linux CLK ID (102) */
|
||||
#define CK_TOP_NET2PLL_D6 59 /* Linux CLK ID (103) */
|
||||
#define CK_TOP_NET2PLL_D8 60 /* Linux CLK ID (104) */
|
||||
#define CK_TOP_CB_WEDMCUPLL_208M 61 /* Linux CLK ID (105) */
|
||||
#define CK_TOP_CB_SGMPLL_325M 62 /* Linux CLK ID (106) */
|
||||
#define CK_TOP_CB_NETSYSPLL_850M 63 /* Linux CLK ID (107) */
|
||||
#define CK_TOP_CB_MSDCPLL_400M 64 /* Linux CLK ID (108) */
|
||||
/* mtk_mux */
|
||||
#define CK_TOP_NETSYS_SEL 65 /* Linux CLK ID (0) */
|
||||
#define CK_TOP_NETSYS_500M_SEL 66 /* Linux CLK ID (1) */
|
||||
|
Reference in New Issue
Block a user