| .. | .. |
|---|
| 1 | 1 | /* |
|---|
| 2 | 2 | * DM81xx hwmod data. |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ |
|---|
| 4 | + * Copyright (C) 2010 Texas Instruments, Inc. - https://www.ti.com/ |
|---|
| 5 | 5 | * Copyright (C) 2013 SKTB SKiT, http://www.skitlab.ru/ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * This program is free software; you can redistribute it and/or |
|---|
| .. | .. |
|---|
| 125 | 125 | static struct omap_hwmod dm81xx_alwon_l3_med_hwmod = { |
|---|
| 126 | 126 | .name = "l3_med", |
|---|
| 127 | 127 | .clkdm_name = "alwon_l3_med_clkdm", |
|---|
| 128 | | - .class = &l3_hwmod_class, |
|---|
| 129 | | - .flags = HWMOD_NO_IDLEST, |
|---|
| 130 | | -}; |
|---|
| 131 | | - |
|---|
| 132 | | -static struct omap_hwmod dm81xx_alwon_l3_fast_hwmod = { |
|---|
| 133 | | - .name = "l3_fast", |
|---|
| 134 | | - .clkdm_name = "alwon_l3_fast_clkdm", |
|---|
| 135 | 128 | .class = &l3_hwmod_class, |
|---|
| 136 | 129 | .flags = HWMOD_NO_IDLEST, |
|---|
| 137 | 130 | }; |
|---|
| .. | .. |
|---|
| 432 | 425 | .class = &i2c_class, |
|---|
| 433 | 426 | }; |
|---|
| 434 | 427 | |
|---|
| 428 | +static struct omap_hwmod_ocp_if dm81xx_l4_ls__i2c2 = { |
|---|
| 429 | + .master = &dm81xx_l4_ls_hwmod, |
|---|
| 430 | + .slave = &dm81xx_i2c2_hwmod, |
|---|
| 431 | + .clk = "sysclk6_ck", |
|---|
| 432 | + .user = OCP_USER_MPU, |
|---|
| 433 | +}; |
|---|
| 434 | + |
|---|
| 435 | 435 | static struct omap_hwmod_class_sysconfig dm81xx_elm_sysc = { |
|---|
| 436 | 436 | .rev_offs = 0x0000, |
|---|
| 437 | 437 | .sysc_offs = 0x0010, |
|---|
| .. | .. |
|---|
| 441 | 441 | SYSS_HAS_RESET_STATUS, |
|---|
| 442 | 442 | .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, |
|---|
| 443 | 443 | .sysc_fields = &omap_hwmod_sysc_type1, |
|---|
| 444 | | -}; |
|---|
| 445 | | - |
|---|
| 446 | | -static struct omap_hwmod_ocp_if dm81xx_l4_ls__i2c2 = { |
|---|
| 447 | | - .master = &dm81xx_l4_ls_hwmod, |
|---|
| 448 | | - .slave = &dm81xx_i2c2_hwmod, |
|---|
| 449 | | - .clk = "sysclk6_ck", |
|---|
| 450 | | - .user = OCP_USER_MPU, |
|---|
| 451 | 444 | }; |
|---|
| 452 | 445 | |
|---|
| 453 | 446 | static struct omap_hwmod_class dm81xx_elm_hwmod_class = { |
|---|
| .. | .. |
|---|
| 484 | 477 | static struct omap_hwmod_class dm81xx_gpio_hwmod_class = { |
|---|
| 485 | 478 | .name = "gpio", |
|---|
| 486 | 479 | .sysc = &dm81xx_gpio_sysc, |
|---|
| 487 | | - .rev = 2, |
|---|
| 488 | 480 | }; |
|---|
| 489 | 481 | |
|---|
| 490 | 482 | static struct omap_hwmod_opt_clk gpio1_opt_clks[] = { |
|---|
| .. | .. |
|---|
| 535 | 527 | static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio2 = { |
|---|
| 536 | 528 | .master = &dm81xx_l4_ls_hwmod, |
|---|
| 537 | 529 | .slave = &dm81xx_gpio2_hwmod, |
|---|
| 530 | + .clk = "sysclk6_ck", |
|---|
| 531 | + .user = OCP_USER_MPU, |
|---|
| 532 | +}; |
|---|
| 533 | + |
|---|
| 534 | +static struct omap_hwmod_opt_clk gpio3_opt_clks[] = { |
|---|
| 535 | + { .role = "dbclk", .clk = "sysclk18_ck" }, |
|---|
| 536 | +}; |
|---|
| 537 | + |
|---|
| 538 | +static struct omap_hwmod dm81xx_gpio3_hwmod = { |
|---|
| 539 | + .name = "gpio3", |
|---|
| 540 | + .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 541 | + .class = &dm81xx_gpio_hwmod_class, |
|---|
| 542 | + .main_clk = "sysclk6_ck", |
|---|
| 543 | + .prcm = { |
|---|
| 544 | + .omap4 = { |
|---|
| 545 | + .clkctrl_offs = DM81XX_CM_ALWON_GPIO_1_CLKCTRL, |
|---|
| 546 | + .modulemode = MODULEMODE_SWCTRL, |
|---|
| 547 | + }, |
|---|
| 548 | + }, |
|---|
| 549 | + .opt_clks = gpio3_opt_clks, |
|---|
| 550 | + .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks), |
|---|
| 551 | +}; |
|---|
| 552 | + |
|---|
| 553 | +static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio3 = { |
|---|
| 554 | + .master = &dm81xx_l4_ls_hwmod, |
|---|
| 555 | + .slave = &dm81xx_gpio3_hwmod, |
|---|
| 556 | + .clk = "sysclk6_ck", |
|---|
| 557 | + .user = OCP_USER_MPU, |
|---|
| 558 | +}; |
|---|
| 559 | + |
|---|
| 560 | +static struct omap_hwmod_opt_clk gpio4_opt_clks[] = { |
|---|
| 561 | + { .role = "dbclk", .clk = "sysclk18_ck" }, |
|---|
| 562 | +}; |
|---|
| 563 | + |
|---|
| 564 | +static struct omap_hwmod dm81xx_gpio4_hwmod = { |
|---|
| 565 | + .name = "gpio4", |
|---|
| 566 | + .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 567 | + .class = &dm81xx_gpio_hwmod_class, |
|---|
| 568 | + .main_clk = "sysclk6_ck", |
|---|
| 569 | + .prcm = { |
|---|
| 570 | + .omap4 = { |
|---|
| 571 | + .clkctrl_offs = DM81XX_CM_ALWON_GPIO_1_CLKCTRL, |
|---|
| 572 | + .modulemode = MODULEMODE_SWCTRL, |
|---|
| 573 | + }, |
|---|
| 574 | + }, |
|---|
| 575 | + .opt_clks = gpio4_opt_clks, |
|---|
| 576 | + .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks), |
|---|
| 577 | +}; |
|---|
| 578 | + |
|---|
| 579 | +static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio4 = { |
|---|
| 580 | + .master = &dm81xx_l4_ls_hwmod, |
|---|
| 581 | + .slave = &dm81xx_gpio4_hwmod, |
|---|
| 538 | 582 | .clk = "sysclk6_ck", |
|---|
| 539 | 583 | .user = OCP_USER_MPU, |
|---|
| 540 | 584 | }; |
|---|
| .. | .. |
|---|
| 646 | 690 | .sysc = &dm816x_timer_sysc, |
|---|
| 647 | 691 | }; |
|---|
| 648 | 692 | |
|---|
| 649 | | -static struct omap_hwmod dm814x_timer1_hwmod = { |
|---|
| 650 | | - .name = "timer1", |
|---|
| 651 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 652 | | - .main_clk = "timer1_fck", |
|---|
| 653 | | - .class = &dm816x_timer_hwmod_class, |
|---|
| 654 | | - .flags = HWMOD_NO_IDLEST, |
|---|
| 655 | | -}; |
|---|
| 656 | | - |
|---|
| 657 | | -static struct omap_hwmod_ocp_if dm814x_l4_ls__timer1 = { |
|---|
| 658 | | - .master = &dm81xx_l4_ls_hwmod, |
|---|
| 659 | | - .slave = &dm814x_timer1_hwmod, |
|---|
| 660 | | - .clk = "sysclk6_ck", |
|---|
| 661 | | - .user = OCP_USER_MPU, |
|---|
| 662 | | -}; |
|---|
| 663 | | - |
|---|
| 664 | | -static struct omap_hwmod dm816x_timer1_hwmod = { |
|---|
| 665 | | - .name = "timer1", |
|---|
| 666 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 667 | | - .main_clk = "timer1_fck", |
|---|
| 668 | | - .prcm = { |
|---|
| 669 | | - .omap4 = { |
|---|
| 670 | | - .clkctrl_offs = DM816X_CM_ALWON_TIMER_1_CLKCTRL, |
|---|
| 671 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 672 | | - }, |
|---|
| 673 | | - }, |
|---|
| 674 | | - .class = &dm816x_timer_hwmod_class, |
|---|
| 675 | | -}; |
|---|
| 676 | | - |
|---|
| 677 | | -static struct omap_hwmod_ocp_if dm816x_l4_ls__timer1 = { |
|---|
| 678 | | - .master = &dm81xx_l4_ls_hwmod, |
|---|
| 679 | | - .slave = &dm816x_timer1_hwmod, |
|---|
| 680 | | - .clk = "sysclk6_ck", |
|---|
| 681 | | - .user = OCP_USER_MPU, |
|---|
| 682 | | -}; |
|---|
| 683 | | - |
|---|
| 684 | | -static struct omap_hwmod dm814x_timer2_hwmod = { |
|---|
| 685 | | - .name = "timer2", |
|---|
| 686 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 687 | | - .main_clk = "timer2_fck", |
|---|
| 688 | | - .class = &dm816x_timer_hwmod_class, |
|---|
| 689 | | - .flags = HWMOD_NO_IDLEST, |
|---|
| 690 | | -}; |
|---|
| 691 | | - |
|---|
| 692 | | -static struct omap_hwmod_ocp_if dm814x_l4_ls__timer2 = { |
|---|
| 693 | | - .master = &dm81xx_l4_ls_hwmod, |
|---|
| 694 | | - .slave = &dm814x_timer2_hwmod, |
|---|
| 695 | | - .clk = "sysclk6_ck", |
|---|
| 696 | | - .user = OCP_USER_MPU, |
|---|
| 697 | | -}; |
|---|
| 698 | | - |
|---|
| 699 | | -static struct omap_hwmod dm816x_timer2_hwmod = { |
|---|
| 700 | | - .name = "timer2", |
|---|
| 701 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 702 | | - .main_clk = "timer2_fck", |
|---|
| 703 | | - .prcm = { |
|---|
| 704 | | - .omap4 = { |
|---|
| 705 | | - .clkctrl_offs = DM816X_CM_ALWON_TIMER_2_CLKCTRL, |
|---|
| 706 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 707 | | - }, |
|---|
| 708 | | - }, |
|---|
| 709 | | - .class = &dm816x_timer_hwmod_class, |
|---|
| 710 | | -}; |
|---|
| 711 | | - |
|---|
| 712 | | -static struct omap_hwmod_ocp_if dm816x_l4_ls__timer2 = { |
|---|
| 713 | | - .master = &dm81xx_l4_ls_hwmod, |
|---|
| 714 | | - .slave = &dm816x_timer2_hwmod, |
|---|
| 715 | | - .clk = "sysclk6_ck", |
|---|
| 716 | | - .user = OCP_USER_MPU, |
|---|
| 717 | | -}; |
|---|
| 718 | | - |
|---|
| 719 | 693 | static struct omap_hwmod dm816x_timer3_hwmod = { |
|---|
| 720 | 694 | .name = "timer3", |
|---|
| 721 | 695 | .clkdm_name = "alwon_l3s_clkdm", |
|---|
| .. | .. |
|---|
| 814 | 788 | .slave = &dm816x_timer7_hwmod, |
|---|
| 815 | 789 | .clk = "sysclk6_ck", |
|---|
| 816 | 790 | .user = OCP_USER_MPU, |
|---|
| 817 | | -}; |
|---|
| 818 | | - |
|---|
| 819 | | -/* CPSW on dm814x */ |
|---|
| 820 | | -static struct omap_hwmod_class_sysconfig dm814x_cpgmac_sysc = { |
|---|
| 821 | | - .rev_offs = 0x0, |
|---|
| 822 | | - .sysc_offs = 0x8, |
|---|
| 823 | | - .syss_offs = 0x4, |
|---|
| 824 | | - .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | |
|---|
| 825 | | - SYSS_HAS_RESET_STATUS, |
|---|
| 826 | | - .idlemodes = SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE | |
|---|
| 827 | | - MSTANDBY_NO, |
|---|
| 828 | | - .sysc_fields = &omap_hwmod_sysc_type3, |
|---|
| 829 | | -}; |
|---|
| 830 | | - |
|---|
| 831 | | -static struct omap_hwmod_class dm814x_cpgmac0_hwmod_class = { |
|---|
| 832 | | - .name = "cpgmac0", |
|---|
| 833 | | - .sysc = &dm814x_cpgmac_sysc, |
|---|
| 834 | | -}; |
|---|
| 835 | | - |
|---|
| 836 | | -static struct omap_hwmod dm814x_cpgmac0_hwmod = { |
|---|
| 837 | | - .name = "cpgmac0", |
|---|
| 838 | | - .class = &dm814x_cpgmac0_hwmod_class, |
|---|
| 839 | | - .clkdm_name = "alwon_ethernet_clkdm", |
|---|
| 840 | | - .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY, |
|---|
| 841 | | - .main_clk = "cpsw_125mhz_gclk", |
|---|
| 842 | | - .prcm = { |
|---|
| 843 | | - .omap4 = { |
|---|
| 844 | | - .clkctrl_offs = DM81XX_CM_ALWON_ETHERNET_0_CLKCTRL, |
|---|
| 845 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 846 | | - }, |
|---|
| 847 | | - }, |
|---|
| 848 | | -}; |
|---|
| 849 | | - |
|---|
| 850 | | -static struct omap_hwmod_class dm814x_mdio_hwmod_class = { |
|---|
| 851 | | - .name = "davinci_mdio", |
|---|
| 852 | | -}; |
|---|
| 853 | | - |
|---|
| 854 | | -static struct omap_hwmod dm814x_mdio_hwmod = { |
|---|
| 855 | | - .name = "davinci_mdio", |
|---|
| 856 | | - .class = &dm814x_mdio_hwmod_class, |
|---|
| 857 | | - .clkdm_name = "alwon_ethernet_clkdm", |
|---|
| 858 | | - .main_clk = "cpsw_125mhz_gclk", |
|---|
| 859 | | -}; |
|---|
| 860 | | - |
|---|
| 861 | | -static struct omap_hwmod_ocp_if dm814x_l4_hs__cpgmac0 = { |
|---|
| 862 | | - .master = &dm81xx_l4_hs_hwmod, |
|---|
| 863 | | - .slave = &dm814x_cpgmac0_hwmod, |
|---|
| 864 | | - .clk = "cpsw_125mhz_gclk", |
|---|
| 865 | | - .user = OCP_USER_MPU, |
|---|
| 866 | | -}; |
|---|
| 867 | | - |
|---|
| 868 | | -static struct omap_hwmod_ocp_if dm814x_cpgmac0__mdio = { |
|---|
| 869 | | - .master = &dm814x_cpgmac0_hwmod, |
|---|
| 870 | | - .slave = &dm814x_mdio_hwmod, |
|---|
| 871 | | - .user = OCP_USER_MPU, |
|---|
| 872 | | - .flags = HWMOD_NO_IDLEST, |
|---|
| 873 | 791 | }; |
|---|
| 874 | 792 | |
|---|
| 875 | 793 | /* EMAC Ethernet */ |
|---|
| .. | .. |
|---|
| 1133 | 1051 | .class = &dm816x_mcspi_class, |
|---|
| 1134 | 1052 | }; |
|---|
| 1135 | 1053 | |
|---|
| 1054 | +static struct omap_hwmod dm81xx_mcspi2_hwmod = { |
|---|
| 1055 | + .name = "mcspi2", |
|---|
| 1056 | + .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1057 | + .main_clk = "sysclk10_ck", |
|---|
| 1058 | + .prcm = { |
|---|
| 1059 | + .omap4 = { |
|---|
| 1060 | + .clkctrl_offs = DM81XX_CM_ALWON_SPI_CLKCTRL, |
|---|
| 1061 | + .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1062 | + }, |
|---|
| 1063 | + }, |
|---|
| 1064 | + .class = &dm816x_mcspi_class, |
|---|
| 1065 | +}; |
|---|
| 1066 | + |
|---|
| 1067 | +static struct omap_hwmod dm81xx_mcspi3_hwmod = { |
|---|
| 1068 | + .name = "mcspi3", |
|---|
| 1069 | + .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1070 | + .main_clk = "sysclk10_ck", |
|---|
| 1071 | + .prcm = { |
|---|
| 1072 | + .omap4 = { |
|---|
| 1073 | + .clkctrl_offs = DM81XX_CM_ALWON_SPI_CLKCTRL, |
|---|
| 1074 | + .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1075 | + }, |
|---|
| 1076 | + }, |
|---|
| 1077 | + .class = &dm816x_mcspi_class, |
|---|
| 1078 | +}; |
|---|
| 1079 | + |
|---|
| 1080 | +static struct omap_hwmod dm81xx_mcspi4_hwmod = { |
|---|
| 1081 | + .name = "mcspi4", |
|---|
| 1082 | + .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1083 | + .main_clk = "sysclk10_ck", |
|---|
| 1084 | + .prcm = { |
|---|
| 1085 | + .omap4 = { |
|---|
| 1086 | + .clkctrl_offs = DM81XX_CM_ALWON_SPI_CLKCTRL, |
|---|
| 1087 | + .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1088 | + }, |
|---|
| 1089 | + }, |
|---|
| 1090 | + .class = &dm816x_mcspi_class, |
|---|
| 1091 | +}; |
|---|
| 1092 | + |
|---|
| 1136 | 1093 | static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi1 = { |
|---|
| 1137 | 1094 | .master = &dm81xx_l4_ls_hwmod, |
|---|
| 1138 | 1095 | .slave = &dm81xx_mcspi1_hwmod, |
|---|
| 1096 | + .clk = "sysclk6_ck", |
|---|
| 1097 | + .user = OCP_USER_MPU, |
|---|
| 1098 | +}; |
|---|
| 1099 | + |
|---|
| 1100 | +static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi2 = { |
|---|
| 1101 | + .master = &dm81xx_l4_ls_hwmod, |
|---|
| 1102 | + .slave = &dm81xx_mcspi2_hwmod, |
|---|
| 1103 | + .clk = "sysclk6_ck", |
|---|
| 1104 | + .user = OCP_USER_MPU, |
|---|
| 1105 | +}; |
|---|
| 1106 | + |
|---|
| 1107 | +static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi3 = { |
|---|
| 1108 | + .master = &dm81xx_l4_ls_hwmod, |
|---|
| 1109 | + .slave = &dm81xx_mcspi3_hwmod, |
|---|
| 1110 | + .clk = "sysclk6_ck", |
|---|
| 1111 | + .user = OCP_USER_MPU, |
|---|
| 1112 | +}; |
|---|
| 1113 | + |
|---|
| 1114 | +static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi4 = { |
|---|
| 1115 | + .master = &dm81xx_l4_ls_hwmod, |
|---|
| 1116 | + .slave = &dm81xx_mcspi4_hwmod, |
|---|
| 1139 | 1117 | .clk = "sysclk6_ck", |
|---|
| 1140 | 1118 | .user = OCP_USER_MPU, |
|---|
| 1141 | 1119 | }; |
|---|
| .. | .. |
|---|
| 1210 | 1188 | .user = OCP_USER_MPU, |
|---|
| 1211 | 1189 | }; |
|---|
| 1212 | 1190 | |
|---|
| 1213 | | -static struct omap_hwmod_class dm81xx_tpcc_hwmod_class = { |
|---|
| 1214 | | - .name = "tpcc", |
|---|
| 1215 | | -}; |
|---|
| 1216 | | - |
|---|
| 1217 | | -static struct omap_hwmod dm81xx_tpcc_hwmod = { |
|---|
| 1218 | | - .name = "tpcc", |
|---|
| 1219 | | - .class = &dm81xx_tpcc_hwmod_class, |
|---|
| 1220 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1221 | | - .main_clk = "sysclk4_ck", |
|---|
| 1222 | | - .prcm = { |
|---|
| 1223 | | - .omap4 = { |
|---|
| 1224 | | - .clkctrl_offs = DM81XX_CM_ALWON_TPCC_CLKCTRL, |
|---|
| 1225 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1226 | | - }, |
|---|
| 1227 | | - }, |
|---|
| 1228 | | -}; |
|---|
| 1229 | | - |
|---|
| 1230 | | -static struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tpcc = { |
|---|
| 1231 | | - .master = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1232 | | - .slave = &dm81xx_tpcc_hwmod, |
|---|
| 1233 | | - .clk = "sysclk4_ck", |
|---|
| 1234 | | - .user = OCP_USER_MPU, |
|---|
| 1235 | | -}; |
|---|
| 1236 | | - |
|---|
| 1237 | | -static struct omap_hwmod_class dm81xx_tptc0_hwmod_class = { |
|---|
| 1238 | | - .name = "tptc0", |
|---|
| 1239 | | -}; |
|---|
| 1240 | | - |
|---|
| 1241 | | -static struct omap_hwmod dm81xx_tptc0_hwmod = { |
|---|
| 1242 | | - .name = "tptc0", |
|---|
| 1243 | | - .class = &dm81xx_tptc0_hwmod_class, |
|---|
| 1244 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1245 | | - .main_clk = "sysclk4_ck", |
|---|
| 1246 | | - .prcm = { |
|---|
| 1247 | | - .omap4 = { |
|---|
| 1248 | | - .clkctrl_offs = DM81XX_CM_ALWON_TPTC0_CLKCTRL, |
|---|
| 1249 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1250 | | - }, |
|---|
| 1251 | | - }, |
|---|
| 1252 | | -}; |
|---|
| 1253 | | - |
|---|
| 1254 | | -static struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc0 = { |
|---|
| 1255 | | - .master = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1256 | | - .slave = &dm81xx_tptc0_hwmod, |
|---|
| 1257 | | - .clk = "sysclk4_ck", |
|---|
| 1258 | | - .user = OCP_USER_MPU, |
|---|
| 1259 | | -}; |
|---|
| 1260 | | - |
|---|
| 1261 | | -static struct omap_hwmod_ocp_if dm81xx_tptc0__alwon_l3_fast = { |
|---|
| 1262 | | - .master = &dm81xx_tptc0_hwmod, |
|---|
| 1263 | | - .slave = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1264 | | - .clk = "sysclk4_ck", |
|---|
| 1265 | | - .user = OCP_USER_MPU, |
|---|
| 1266 | | -}; |
|---|
| 1267 | | - |
|---|
| 1268 | | -static struct omap_hwmod_class dm81xx_tptc1_hwmod_class = { |
|---|
| 1269 | | - .name = "tptc1", |
|---|
| 1270 | | -}; |
|---|
| 1271 | | - |
|---|
| 1272 | | -static struct omap_hwmod dm81xx_tptc1_hwmod = { |
|---|
| 1273 | | - .name = "tptc1", |
|---|
| 1274 | | - .class = &dm81xx_tptc1_hwmod_class, |
|---|
| 1275 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1276 | | - .main_clk = "sysclk4_ck", |
|---|
| 1277 | | - .prcm = { |
|---|
| 1278 | | - .omap4 = { |
|---|
| 1279 | | - .clkctrl_offs = DM81XX_CM_ALWON_TPTC1_CLKCTRL, |
|---|
| 1280 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1281 | | - }, |
|---|
| 1282 | | - }, |
|---|
| 1283 | | -}; |
|---|
| 1284 | | - |
|---|
| 1285 | | -static struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc1 = { |
|---|
| 1286 | | - .master = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1287 | | - .slave = &dm81xx_tptc1_hwmod, |
|---|
| 1288 | | - .clk = "sysclk4_ck", |
|---|
| 1289 | | - .user = OCP_USER_MPU, |
|---|
| 1290 | | -}; |
|---|
| 1291 | | - |
|---|
| 1292 | | -static struct omap_hwmod_ocp_if dm81xx_tptc1__alwon_l3_fast = { |
|---|
| 1293 | | - .master = &dm81xx_tptc1_hwmod, |
|---|
| 1294 | | - .slave = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1295 | | - .clk = "sysclk4_ck", |
|---|
| 1296 | | - .user = OCP_USER_MPU, |
|---|
| 1297 | | -}; |
|---|
| 1298 | | - |
|---|
| 1299 | | -static struct omap_hwmod_class dm81xx_tptc2_hwmod_class = { |
|---|
| 1300 | | - .name = "tptc2", |
|---|
| 1301 | | -}; |
|---|
| 1302 | | - |
|---|
| 1303 | | -static struct omap_hwmod dm81xx_tptc2_hwmod = { |
|---|
| 1304 | | - .name = "tptc2", |
|---|
| 1305 | | - .class = &dm81xx_tptc2_hwmod_class, |
|---|
| 1306 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1307 | | - .main_clk = "sysclk4_ck", |
|---|
| 1308 | | - .prcm = { |
|---|
| 1309 | | - .omap4 = { |
|---|
| 1310 | | - .clkctrl_offs = DM81XX_CM_ALWON_TPTC2_CLKCTRL, |
|---|
| 1311 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1312 | | - }, |
|---|
| 1313 | | - }, |
|---|
| 1314 | | -}; |
|---|
| 1315 | | - |
|---|
| 1316 | | -static struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc2 = { |
|---|
| 1317 | | - .master = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1318 | | - .slave = &dm81xx_tptc2_hwmod, |
|---|
| 1319 | | - .clk = "sysclk4_ck", |
|---|
| 1320 | | - .user = OCP_USER_MPU, |
|---|
| 1321 | | -}; |
|---|
| 1322 | | - |
|---|
| 1323 | | -static struct omap_hwmod_ocp_if dm81xx_tptc2__alwon_l3_fast = { |
|---|
| 1324 | | - .master = &dm81xx_tptc2_hwmod, |
|---|
| 1325 | | - .slave = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1326 | | - .clk = "sysclk4_ck", |
|---|
| 1327 | | - .user = OCP_USER_MPU, |
|---|
| 1328 | | -}; |
|---|
| 1329 | | - |
|---|
| 1330 | | -static struct omap_hwmod_class dm81xx_tptc3_hwmod_class = { |
|---|
| 1331 | | - .name = "tptc3", |
|---|
| 1332 | | -}; |
|---|
| 1333 | | - |
|---|
| 1334 | | -static struct omap_hwmod dm81xx_tptc3_hwmod = { |
|---|
| 1335 | | - .name = "tptc3", |
|---|
| 1336 | | - .class = &dm81xx_tptc3_hwmod_class, |
|---|
| 1337 | | - .clkdm_name = "alwon_l3s_clkdm", |
|---|
| 1338 | | - .main_clk = "sysclk4_ck", |
|---|
| 1339 | | - .prcm = { |
|---|
| 1340 | | - .omap4 = { |
|---|
| 1341 | | - .clkctrl_offs = DM81XX_CM_ALWON_TPTC3_CLKCTRL, |
|---|
| 1342 | | - .modulemode = MODULEMODE_SWCTRL, |
|---|
| 1343 | | - }, |
|---|
| 1344 | | - }, |
|---|
| 1345 | | -}; |
|---|
| 1346 | | - |
|---|
| 1347 | | -static struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc3 = { |
|---|
| 1348 | | - .master = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1349 | | - .slave = &dm81xx_tptc3_hwmod, |
|---|
| 1350 | | - .clk = "sysclk4_ck", |
|---|
| 1351 | | - .user = OCP_USER_MPU, |
|---|
| 1352 | | -}; |
|---|
| 1353 | | - |
|---|
| 1354 | | -static struct omap_hwmod_ocp_if dm81xx_tptc3__alwon_l3_fast = { |
|---|
| 1355 | | - .master = &dm81xx_tptc3_hwmod, |
|---|
| 1356 | | - .slave = &dm81xx_alwon_l3_fast_hwmod, |
|---|
| 1357 | | - .clk = "sysclk4_ck", |
|---|
| 1358 | | - .user = OCP_USER_MPU, |
|---|
| 1359 | | -}; |
|---|
| 1360 | | - |
|---|
| 1361 | 1191 | /* |
|---|
| 1362 | 1192 | * REVISIT: Test and enable the following once clocks work: |
|---|
| 1363 | 1193 | * dm81xx_l4_ls__mailbox |
|---|
| .. | .. |
|---|
| 1378 | 1208 | &dm81xx_l4_ls__i2c2, |
|---|
| 1379 | 1209 | &dm81xx_l4_ls__gpio1, |
|---|
| 1380 | 1210 | &dm81xx_l4_ls__gpio2, |
|---|
| 1211 | + &dm81xx_l4_ls__gpio3, |
|---|
| 1212 | + &dm81xx_l4_ls__gpio4, |
|---|
| 1381 | 1213 | &dm81xx_l4_ls__elm, |
|---|
| 1382 | 1214 | &dm81xx_l4_ls__mcspi1, |
|---|
| 1215 | + &dm81xx_l4_ls__mcspi2, |
|---|
| 1216 | + &dm81xx_l4_ls__mcspi3, |
|---|
| 1217 | + &dm81xx_l4_ls__mcspi4, |
|---|
| 1383 | 1218 | &dm814x_l4_ls__mmc1, |
|---|
| 1384 | 1219 | &dm814x_l4_ls__mmc2, |
|---|
| 1385 | 1220 | &ti81xx_l4_ls__rtc, |
|---|
| 1386 | | - &dm81xx_alwon_l3_fast__tpcc, |
|---|
| 1387 | | - &dm81xx_alwon_l3_fast__tptc0, |
|---|
| 1388 | | - &dm81xx_alwon_l3_fast__tptc1, |
|---|
| 1389 | | - &dm81xx_alwon_l3_fast__tptc2, |
|---|
| 1390 | | - &dm81xx_alwon_l3_fast__tptc3, |
|---|
| 1391 | | - &dm81xx_tptc0__alwon_l3_fast, |
|---|
| 1392 | | - &dm81xx_tptc1__alwon_l3_fast, |
|---|
| 1393 | | - &dm81xx_tptc2__alwon_l3_fast, |
|---|
| 1394 | | - &dm81xx_tptc3__alwon_l3_fast, |
|---|
| 1395 | | - &dm814x_l4_ls__timer1, |
|---|
| 1396 | | - &dm814x_l4_ls__timer2, |
|---|
| 1397 | | - &dm814x_l4_hs__cpgmac0, |
|---|
| 1398 | | - &dm814x_cpgmac0__mdio, |
|---|
| 1399 | 1221 | &dm81xx_alwon_l3_slow__gpmc, |
|---|
| 1400 | 1222 | &dm814x_default_l3_slow__usbss, |
|---|
| 1401 | 1223 | &dm814x_alwon_l3_med__mmc3, |
|---|
| .. | .. |
|---|
| 1424 | 1246 | &dm81xx_l4_ls__elm, |
|---|
| 1425 | 1247 | &ti81xx_l4_ls__rtc, |
|---|
| 1426 | 1248 | &dm816x_l4_ls__mmc1, |
|---|
| 1427 | | - &dm816x_l4_ls__timer1, |
|---|
| 1428 | | - &dm816x_l4_ls__timer2, |
|---|
| 1429 | 1249 | &dm816x_l4_ls__timer3, |
|---|
| 1430 | 1250 | &dm816x_l4_ls__timer4, |
|---|
| 1431 | 1251 | &dm816x_l4_ls__timer5, |
|---|
| .. | .. |
|---|
| 1438 | 1258 | &dm81xx_emac0__mdio, |
|---|
| 1439 | 1259 | &dm816x_l4_hs__emac1, |
|---|
| 1440 | 1260 | &dm81xx_l4_hs__sata, |
|---|
| 1441 | | - &dm81xx_alwon_l3_fast__tpcc, |
|---|
| 1442 | | - &dm81xx_alwon_l3_fast__tptc0, |
|---|
| 1443 | | - &dm81xx_alwon_l3_fast__tptc1, |
|---|
| 1444 | | - &dm81xx_alwon_l3_fast__tptc2, |
|---|
| 1445 | | - &dm81xx_alwon_l3_fast__tptc3, |
|---|
| 1446 | | - &dm81xx_tptc0__alwon_l3_fast, |
|---|
| 1447 | | - &dm81xx_tptc1__alwon_l3_fast, |
|---|
| 1448 | | - &dm81xx_tptc2__alwon_l3_fast, |
|---|
| 1449 | | - &dm81xx_tptc3__alwon_l3_fast, |
|---|
| 1450 | 1261 | &dm81xx_alwon_l3_slow__gpmc, |
|---|
| 1451 | 1262 | &dm816x_default_l3_slow__usbss, |
|---|
| 1452 | 1263 | NULL, |
|---|