Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include <linux/kernel.h> |
| 15 | #include <linux/module.h> |
| 16 | #include <linux/platform_device.h> |
| 17 | #include <mach/rpm-regulator.h> |
| 18 | #include <mach/msm_bus_board.h> |
| 19 | #include <mach/msm_bus.h> |
| 20 | |
| 21 | #include "acpuclock.h" |
| 22 | #include "acpuclock-krait.h" |
| 23 | |
| 24 | /* Corner type vreg VDD values */ |
| 25 | #define LVL_NONE RPM_VREG_CORNER_NONE |
| 26 | #define LVL_LOW RPM_VREG_CORNER_LOW |
| 27 | #define LVL_NOM RPM_VREG_CORNER_NOMINAL |
| 28 | #define LVL_HIGH RPM_VREG_CORNER_HIGH |
| 29 | |
| 30 | static struct hfpll_data hfpll_data __initdata = { |
| 31 | .mode_offset = 0x00, |
| 32 | .l_offset = 0x08, |
| 33 | .m_offset = 0x0C, |
| 34 | .n_offset = 0x10, |
| 35 | .config_offset = 0x04, |
| 36 | .config_val = 0x7845C665, |
| 37 | .has_droop_ctl = true, |
| 38 | .droop_offset = 0x14, |
| 39 | .droop_val = 0x0108C000, |
Matt Wagantall | 87465f5 | 2012-07-23 22:03:06 -0700 | [diff] [blame] | 40 | .low_vdd_l_max = 22, |
| 41 | .nom_vdd_l_max = 42, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 42 | .vdd[HFPLL_VDD_NONE] = LVL_NONE, |
| 43 | .vdd[HFPLL_VDD_LOW] = LVL_LOW, |
| 44 | .vdd[HFPLL_VDD_NOM] = LVL_NOM, |
Matt Wagantall | 87465f5 | 2012-07-23 22:03:06 -0700 | [diff] [blame] | 45 | .vdd[HFPLL_VDD_HIGH] = LVL_HIGH, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | static struct scalable scalable[] __initdata = { |
| 49 | [CPU0] = { |
| 50 | .hfpll_phys_base = 0x00903200, |
| 51 | .aux_clk_sel_phys = 0x02088014, |
| 52 | .aux_clk_sel = 3, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 53 | .sec_clk_sel = 2, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 54 | .l2cpmr_iaddr = 0x4501, |
Matt Wagantall | 6d9c416 | 2012-07-16 18:58:16 -0700 | [diff] [blame] | 55 | .vreg[VREG_CORE] = { "krait0", 1300000 }, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 56 | .vreg[VREG_MEM] = { "krait0_mem", 1150000 }, |
| 57 | .vreg[VREG_DIG] = { "krait0_dig", 1150000 }, |
| 58 | .vreg[VREG_HFPLL_A] = { "krait0_hfpll", 1800000 }, |
| 59 | }, |
| 60 | [CPU1] = { |
| 61 | .hfpll_phys_base = 0x00903300, |
| 62 | .aux_clk_sel_phys = 0x02098014, |
| 63 | .aux_clk_sel = 3, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 64 | .sec_clk_sel = 2, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 65 | .l2cpmr_iaddr = 0x5501, |
Matt Wagantall | 6d9c416 | 2012-07-16 18:58:16 -0700 | [diff] [blame] | 66 | .vreg[VREG_CORE] = { "krait1", 1300000 }, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 67 | .vreg[VREG_MEM] = { "krait1_mem", 1150000 }, |
| 68 | .vreg[VREG_DIG] = { "krait1_dig", 1150000 }, |
| 69 | .vreg[VREG_HFPLL_A] = { "krait1_hfpll", 1800000 }, |
| 70 | }, |
| 71 | [L2] = { |
| 72 | .hfpll_phys_base = 0x00903400, |
| 73 | .aux_clk_sel_phys = 0x02011028, |
| 74 | .aux_clk_sel = 3, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 75 | .sec_clk_sel = 2, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 76 | .l2cpmr_iaddr = 0x0500, |
| 77 | .vreg[VREG_HFPLL_A] = { "l2_hfpll", 1800000 }, |
| 78 | }, |
| 79 | }; |
| 80 | |
| 81 | static struct msm_bus_paths bw_level_tbl[] __initdata = { |
| 82 | [0] = BW_MBPS(640), /* At least 80 MHz on bus. */ |
| 83 | [1] = BW_MBPS(1064), /* At least 133 MHz on bus. */ |
| 84 | [2] = BW_MBPS(1600), /* At least 200 MHz on bus. */ |
| 85 | [3] = BW_MBPS(2128), /* At least 266 MHz on bus. */ |
| 86 | [4] = BW_MBPS(3200), /* At least 400 MHz on bus. */ |
| 87 | [5] = BW_MBPS(3600), /* At least 450 MHz on bus. */ |
| 88 | [6] = BW_MBPS(3936), /* At least 492 MHz on bus. */ |
| 89 | [7] = BW_MBPS(4264), /* At least 533 MHz on bus. */ |
| 90 | }; |
| 91 | |
| 92 | static struct msm_bus_scale_pdata bus_scale_data __initdata = { |
| 93 | .usecase = bw_level_tbl, |
| 94 | .num_usecases = ARRAY_SIZE(bw_level_tbl), |
| 95 | .active_only = 1, |
| 96 | .name = "acpuclk-8930aa", |
| 97 | }; |
| 98 | |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 99 | static struct l2_level l2_freq_tbl[] __initdata = { |
Tianyi Gou | 60f828d | 2012-12-18 12:43:11 -0800 | [diff] [blame] | 100 | [0] = { { 384000, PLL_8, 0, 0x00 }, LVL_LOW, 1050000, 1 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 101 | [1] = { { 432000, HFPLL, 2, 0x20 }, LVL_NOM, 1050000, 2 }, |
| 102 | [2] = { { 486000, HFPLL, 2, 0x24 }, LVL_NOM, 1050000, 2 }, |
| 103 | [3] = { { 540000, HFPLL, 2, 0x28 }, LVL_NOM, 1050000, 2 }, |
| 104 | [4] = { { 594000, HFPLL, 1, 0x16 }, LVL_NOM, 1050000, 2 }, |
| 105 | [5] = { { 648000, HFPLL, 1, 0x18 }, LVL_NOM, 1050000, 4 }, |
| 106 | [6] = { { 702000, HFPLL, 1, 0x1A }, LVL_NOM, 1050000, 4 }, |
| 107 | [7] = { { 756000, HFPLL, 1, 0x1C }, LVL_HIGH, 1150000, 4 }, |
| 108 | [8] = { { 810000, HFPLL, 1, 0x1E }, LVL_HIGH, 1150000, 4 }, |
| 109 | [9] = { { 864000, HFPLL, 1, 0x20 }, LVL_HIGH, 1150000, 4 }, |
| 110 | [10] = { { 918000, HFPLL, 1, 0x22 }, LVL_HIGH, 1150000, 7 }, |
| 111 | [11] = { { 972000, HFPLL, 1, 0x24 }, LVL_HIGH, 1150000, 7 }, |
| 112 | [12] = { { 1026000, HFPLL, 1, 0x26 }, LVL_HIGH, 1150000, 7 }, |
| 113 | [13] = { { 1080000, HFPLL, 1, 0x28 }, LVL_HIGH, 1150000, 7 }, |
| 114 | [14] = { { 1134000, HFPLL, 1, 0x2A }, LVL_HIGH, 1150000, 7 }, |
| 115 | [15] = { { 1188000, HFPLL, 1, 0x2C }, LVL_HIGH, 1150000, 7 }, |
Stephen Boyd | 791bca9 | 2012-09-11 21:08:13 -0700 | [diff] [blame] | 116 | { } |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 117 | }; |
| 118 | |
| 119 | static struct acpu_level acpu_freq_tbl_slow[] __initdata = { |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 120 | { 1, { 384000, PLL_8, 0, 0x00 }, L2(0), 950000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 121 | { 0, { 432000, HFPLL, 2, 0x20 }, L2(5), 975000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 122 | { 1, { 486000, HFPLL, 2, 0x24 }, L2(5), 975000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 123 | { 0, { 540000, HFPLL, 2, 0x28 }, L2(5), 1000000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 124 | { 1, { 594000, HFPLL, 1, 0x16 }, L2(5), 1000000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 125 | { 0, { 648000, HFPLL, 1, 0x18 }, L2(5), 1025000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 126 | { 1, { 702000, HFPLL, 1, 0x1A }, L2(5), 1025000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 127 | { 0, { 756000, HFPLL, 1, 0x1C }, L2(10), 1075000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 128 | { 1, { 810000, HFPLL, 1, 0x1E }, L2(10), 1075000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 129 | { 0, { 864000, HFPLL, 1, 0x20 }, L2(10), 1100000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 130 | { 1, { 918000, HFPLL, 1, 0x22 }, L2(10), 1100000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 131 | { 0, { 972000, HFPLL, 1, 0x24 }, L2(10), 1125000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 132 | { 1, { 1026000, HFPLL, 1, 0x26 }, L2(10), 1125000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 133 | { 0, { 1080000, HFPLL, 1, 0x28 }, L2(15), 1175000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 134 | { 1, { 1134000, HFPLL, 1, 0x2A }, L2(15), 1175000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 135 | { 0, { 1188000, HFPLL, 1, 0x2C }, L2(15), 1200000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 136 | { 1, { 1242000, HFPLL, 1, 0x2E }, L2(15), 1200000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 137 | { 0, { 1296000, HFPLL, 1, 0x30 }, L2(15), 1225000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 138 | { 1, { 1350000, HFPLL, 1, 0x32 }, L2(15), 1225000 }, |
| 139 | { 1, { 1404000, HFPLL, 1, 0x34 }, L2(15), 1237500 }, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 140 | { 0, { 0 } } |
| 141 | }; |
| 142 | |
| 143 | static struct acpu_level acpu_freq_tbl_nom[] __initdata = { |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 144 | { 1, { 384000, PLL_8, 0, 0x00 }, L2(0), 925000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 145 | { 0, { 432000, HFPLL, 2, 0x20 }, L2(5), 950000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 146 | { 1, { 486000, HFPLL, 2, 0x24 }, L2(5), 950000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 147 | { 0, { 540000, HFPLL, 2, 0x28 }, L2(5), 975000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 148 | { 1, { 594000, HFPLL, 1, 0x16 }, L2(5), 975000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 149 | { 0, { 648000, HFPLL, 1, 0x18 }, L2(5), 1000000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 150 | { 1, { 702000, HFPLL, 1, 0x1A }, L2(5), 1000000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 151 | { 0, { 756000, HFPLL, 1, 0x1C }, L2(10), 1050000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 152 | { 1, { 810000, HFPLL, 1, 0x1E }, L2(10), 1050000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 153 | { 0, { 864000, HFPLL, 1, 0x20 }, L2(10), 1075000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 154 | { 1, { 918000, HFPLL, 1, 0x22 }, L2(10), 1075000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 155 | { 0, { 972000, HFPLL, 1, 0x24 }, L2(10), 1100000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 156 | { 1, { 1026000, HFPLL, 1, 0x26 }, L2(10), 1100000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 157 | { 0, { 1080000, HFPLL, 1, 0x28 }, L2(15), 1150000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 158 | { 1, { 1134000, HFPLL, 1, 0x2A }, L2(15), 1150000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 159 | { 0, { 1188000, HFPLL, 1, 0x2C }, L2(15), 1175000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 160 | { 1, { 1242000, HFPLL, 1, 0x2E }, L2(15), 1175000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 161 | { 0, { 1296000, HFPLL, 1, 0x30 }, L2(15), 1200000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 162 | { 1, { 1350000, HFPLL, 1, 0x32 }, L2(15), 1200000 }, |
| 163 | { 1, { 1404000, HFPLL, 1, 0x34 }, L2(15), 1212500 }, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 164 | { 0, { 0 } } |
| 165 | }; |
| 166 | |
| 167 | static struct acpu_level acpu_freq_tbl_fast[] __initdata = { |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 168 | { 1, { 384000, PLL_8, 0, 0x00 }, L2(0), 900000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 169 | { 0, { 432000, HFPLL, 2, 0x20 }, L2(5), 900000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 170 | { 1, { 486000, HFPLL, 2, 0x24 }, L2(5), 900000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 171 | { 0, { 540000, HFPLL, 2, 0x28 }, L2(5), 925000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 172 | { 1, { 594000, HFPLL, 1, 0x16 }, L2(5), 925000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 173 | { 0, { 648000, HFPLL, 1, 0x18 }, L2(5), 950000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 174 | { 1, { 702000, HFPLL, 1, 0x1A }, L2(5), 950000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 175 | { 0, { 756000, HFPLL, 1, 0x1C }, L2(10), 1000000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 176 | { 1, { 810000, HFPLL, 1, 0x1E }, L2(10), 1000000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 177 | { 0, { 864000, HFPLL, 1, 0x20 }, L2(10), 1025000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 178 | { 1, { 918000, HFPLL, 1, 0x22 }, L2(10), 1025000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 179 | { 0, { 972000, HFPLL, 1, 0x24 }, L2(10), 1050000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 180 | { 1, { 1026000, HFPLL, 1, 0x26 }, L2(10), 1050000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 181 | { 0, { 1080000, HFPLL, 1, 0x28 }, L2(15), 1100000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 182 | { 1, { 1134000, HFPLL, 1, 0x2A }, L2(15), 1100000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 183 | { 0, { 1188000, HFPLL, 1, 0x2C }, L2(15), 1125000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 184 | { 1, { 1242000, HFPLL, 1, 0x2E }, L2(15), 1125000 }, |
Tianyi Gou | d278616 | 2012-11-28 15:28:05 -0800 | [diff] [blame] | 185 | { 0, { 1296000, HFPLL, 1, 0x30 }, L2(15), 1150000 }, |
Matt Wagantall | 6cd5d75 | 2012-09-27 19:56:57 -0700 | [diff] [blame] | 186 | { 1, { 1350000, HFPLL, 1, 0x32 }, L2(15), 1150000 }, |
| 187 | { 1, { 1404000, HFPLL, 1, 0x34 }, L2(15), 1162500 }, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 188 | { 0, { 0 } } |
| 189 | }; |
| 190 | |
Patrick Daly | 18d2d48 | 2012-08-24 14:22:06 -0700 | [diff] [blame] | 191 | static struct pvs_table pvs_tables[NUM_SPEED_BINS][NUM_PVS] __initdata = { |
| 192 | [0][PVS_SLOW] = { acpu_freq_tbl_slow, sizeof(acpu_freq_tbl_slow), 0 }, |
| 193 | [0][PVS_NOMINAL] = { acpu_freq_tbl_nom, sizeof(acpu_freq_tbl_nom), 25000 }, |
| 194 | [0][PVS_FAST] = { acpu_freq_tbl_fast, sizeof(acpu_freq_tbl_fast), 25000 }, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 195 | }; |
| 196 | |
| 197 | static struct acpuclk_krait_params acpuclk_8930aa_params __initdata = { |
| 198 | .scalable = scalable, |
| 199 | .scalable_size = sizeof(scalable), |
| 200 | .hfpll_data = &hfpll_data, |
| 201 | .pvs_tables = pvs_tables, |
| 202 | .l2_freq_tbl = l2_freq_tbl, |
| 203 | .l2_freq_tbl_size = sizeof(l2_freq_tbl), |
| 204 | .bus_scale = &bus_scale_data, |
Matt Wagantall | ee2b437 | 2012-09-17 17:51:06 -0700 | [diff] [blame] | 205 | .pte_efuse_phys = 0x007000C0, |
Matt Wagantall | b7c231b | 2012-07-24 18:40:17 -0700 | [diff] [blame] | 206 | .stby_khz = 384000, |
Tianyi Gou | 12370f1 | 2012-07-23 19:13:57 -0700 | [diff] [blame] | 207 | }; |
| 208 | |
| 209 | static int __init acpuclk_8930aa_probe(struct platform_device *pdev) |
| 210 | { |
| 211 | return acpuclk_krait_init(&pdev->dev, &acpuclk_8930aa_params); |
| 212 | } |
| 213 | |
| 214 | static struct platform_driver acpuclk_8930aa_driver = { |
| 215 | .driver = { |
| 216 | .name = "acpuclk-8930aa", |
| 217 | .owner = THIS_MODULE, |
| 218 | }, |
| 219 | }; |
| 220 | |
| 221 | static int __init acpuclk_8930aa_init(void) |
| 222 | { |
| 223 | return platform_driver_probe(&acpuclk_8930aa_driver, |
| 224 | acpuclk_8930aa_probe); |
| 225 | } |
| 226 | device_initcall(acpuclk_8930aa_init); |