Greg Kroah-Hartman | 5fd54ac | 2017-11-03 11:28:30 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Greg Kroah-Hartman | 51b751f | 2017-11-06 15:37:18 +0100 | [diff] [blame] | 2 | /* Copyright (c) 2010, Code Aurora Forum. All rights reserved. */ |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 3 | |
| 4 | #include <linux/module.h> |
| 5 | #include <linux/platform_device.h> |
| 6 | #include <linux/pm_runtime.h> |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 7 | #include <linux/usb/chipidea.h> |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 8 | #include <linux/clk.h> |
| 9 | #include <linux/reset.h> |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 10 | #include <linux/mfd/syscon.h> |
| 11 | #include <linux/regmap.h> |
| 12 | #include <linux/io.h> |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 13 | #include <linux/reset-controller.h> |
Stephen Boyd | 47654a1 | 2016-12-28 14:57:03 -0800 | [diff] [blame] | 14 | #include <linux/extcon.h> |
| 15 | #include <linux/of.h> |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 16 | |
| 17 | #include "ci.h" |
| 18 | |
Stephen Boyd | ee33f6e | 2016-12-28 14:57:00 -0800 | [diff] [blame] | 19 | #define HS_PHY_AHB_MODE 0x0098 |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 20 | |
Stephen Boyd | 47654a1 | 2016-12-28 14:57:03 -0800 | [diff] [blame] | 21 | #define HS_PHY_GENCONFIG 0x009c |
| 22 | #define HS_PHY_TXFIFO_IDLE_FORCE_DIS BIT(4) |
| 23 | |
| 24 | #define HS_PHY_GENCONFIG_2 0x00a0 |
| 25 | #define HS_PHY_SESS_VLD_CTRL_EN BIT(7) |
| 26 | #define HS_PHY_ULPI_TX_PKT_EN_CLR_FIX BIT(19) |
| 27 | |
| 28 | #define HSPHY_SESS_VLD_CTRL BIT(25) |
| 29 | |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 30 | /* Vendor base starts at 0x200 beyond CI base */ |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 31 | #define HS_PHY_CTRL 0x0040 |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 32 | #define HS_PHY_SEC_CTRL 0x0078 |
| 33 | #define HS_PHY_DIG_CLAMP_N BIT(16) |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 34 | #define HS_PHY_POR_ASSERT BIT(0) |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 35 | |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 36 | struct ci_hdrc_msm { |
| 37 | struct platform_device *ci; |
| 38 | struct clk *core_clk; |
| 39 | struct clk *iface_clk; |
| 40 | struct clk *fs_clk; |
Stephen Boyd | 26f8e3a | 2016-12-28 14:57:04 -0800 | [diff] [blame] | 41 | struct ci_hdrc_platform_data pdata; |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 42 | struct reset_controller_dev rcdev; |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 43 | bool secondary_phy; |
Stephen Boyd | 47654a1 | 2016-12-28 14:57:03 -0800 | [diff] [blame] | 44 | bool hsic; |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 45 | void __iomem *base; |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 46 | }; |
| 47 | |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 48 | static int |
| 49 | ci_hdrc_msm_por_reset(struct reset_controller_dev *r, unsigned long id) |
| 50 | { |
| 51 | struct ci_hdrc_msm *ci_msm = container_of(r, struct ci_hdrc_msm, rcdev); |
| 52 | void __iomem *addr = ci_msm->base; |
| 53 | u32 val; |
| 54 | |
| 55 | if (id) |
| 56 | addr += HS_PHY_SEC_CTRL; |
| 57 | else |
| 58 | addr += HS_PHY_CTRL; |
| 59 | |
| 60 | val = readl_relaxed(addr); |
| 61 | val |= HS_PHY_POR_ASSERT; |
| 62 | writel(val, addr); |
| 63 | /* |
| 64 | * wait for minimum 10 microseconds as suggested by manual. |
| 65 | * Use a slightly larger value since the exact value didn't |
| 66 | * work 100% of the time. |
| 67 | */ |
| 68 | udelay(12); |
| 69 | val &= ~HS_PHY_POR_ASSERT; |
| 70 | writel(val, addr); |
| 71 | |
| 72 | return 0; |
| 73 | } |
| 74 | |
| 75 | static const struct reset_control_ops ci_hdrc_msm_reset_ops = { |
| 76 | .reset = ci_hdrc_msm_por_reset, |
| 77 | }; |
| 78 | |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 79 | static int ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 80 | { |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 81 | struct device *dev = ci->dev->parent; |
| 82 | struct ci_hdrc_msm *msm_ci = dev_get_drvdata(dev); |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 83 | int ret; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 84 | |
| 85 | switch (event) { |
| 86 | case CI_HDRC_CONTROLLER_RESET_EVENT: |
| 87 | dev_dbg(dev, "CI_HDRC_CONTROLLER_RESET_EVENT received\n"); |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 88 | |
| 89 | hw_phymode_configure(ci); |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 90 | if (msm_ci->secondary_phy) { |
| 91 | u32 val = readl_relaxed(msm_ci->base + HS_PHY_SEC_CTRL); |
| 92 | val |= HS_PHY_DIG_CLAMP_N; |
| 93 | writel_relaxed(val, msm_ci->base + HS_PHY_SEC_CTRL); |
| 94 | } |
| 95 | |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 96 | ret = phy_init(ci->phy); |
| 97 | if (ret) |
| 98 | return ret; |
| 99 | |
| 100 | ret = phy_power_on(ci->phy); |
| 101 | if (ret) { |
| 102 | phy_exit(ci->phy); |
| 103 | return ret; |
| 104 | } |
| 105 | |
Andy Gross | 5ce7d27 | 2015-11-06 00:04:06 -0600 | [diff] [blame] | 106 | /* use AHB transactor, allow posted data writes */ |
Stephen Boyd | ee33f6e | 2016-12-28 14:57:00 -0800 | [diff] [blame] | 107 | hw_write_id_reg(ci, HS_PHY_AHB_MODE, 0xffffffff, 0x8); |
Stephen Boyd | 47654a1 | 2016-12-28 14:57:03 -0800 | [diff] [blame] | 108 | |
| 109 | /* workaround for rx buffer collision issue */ |
| 110 | hw_write_id_reg(ci, HS_PHY_GENCONFIG, |
| 111 | HS_PHY_TXFIFO_IDLE_FORCE_DIS, 0); |
| 112 | |
| 113 | if (!msm_ci->hsic) |
| 114 | hw_write_id_reg(ci, HS_PHY_GENCONFIG_2, |
| 115 | HS_PHY_ULPI_TX_PKT_EN_CLR_FIX, 0); |
| 116 | |
| 117 | if (!IS_ERR(ci->platdata->vbus_extcon.edev)) { |
| 118 | hw_write_id_reg(ci, HS_PHY_GENCONFIG_2, |
| 119 | HS_PHY_SESS_VLD_CTRL_EN, |
| 120 | HS_PHY_SESS_VLD_CTRL_EN); |
| 121 | hw_write(ci, OP_USBCMD, HSPHY_SESS_VLD_CTRL, |
| 122 | HSPHY_SESS_VLD_CTRL); |
| 123 | |
| 124 | } |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 125 | break; |
| 126 | case CI_HDRC_CONTROLLER_STOPPED_EVENT: |
| 127 | dev_dbg(dev, "CI_HDRC_CONTROLLER_STOPPED_EVENT received\n"); |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 128 | phy_power_off(ci->phy); |
| 129 | phy_exit(ci->phy); |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 130 | break; |
| 131 | default: |
| 132 | dev_dbg(dev, "unknown ci_hdrc event\n"); |
| 133 | break; |
| 134 | } |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 135 | |
| 136 | return 0; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 137 | } |
| 138 | |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 139 | static int ci_hdrc_msm_mux_phy(struct ci_hdrc_msm *ci, |
| 140 | struct platform_device *pdev) |
| 141 | { |
| 142 | struct regmap *regmap; |
| 143 | struct device *dev = &pdev->dev; |
| 144 | struct of_phandle_args args; |
| 145 | u32 val; |
| 146 | int ret; |
| 147 | |
| 148 | ret = of_parse_phandle_with_fixed_args(dev->of_node, "phy-select", 2, 0, |
| 149 | &args); |
| 150 | if (ret) |
| 151 | return 0; |
| 152 | |
| 153 | regmap = syscon_node_to_regmap(args.np); |
| 154 | of_node_put(args.np); |
| 155 | if (IS_ERR(regmap)) |
| 156 | return PTR_ERR(regmap); |
| 157 | |
| 158 | ret = regmap_write(regmap, args.args[0], args.args[1]); |
| 159 | if (ret) |
| 160 | return ret; |
| 161 | |
| 162 | ci->secondary_phy = !!args.args[1]; |
| 163 | if (ci->secondary_phy) { |
| 164 | val = readl_relaxed(ci->base + HS_PHY_SEC_CTRL); |
| 165 | val |= HS_PHY_DIG_CLAMP_N; |
| 166 | writel_relaxed(val, ci->base + HS_PHY_SEC_CTRL); |
| 167 | } |
| 168 | |
| 169 | return 0; |
| 170 | } |
| 171 | |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 172 | static int ci_hdrc_msm_probe(struct platform_device *pdev) |
| 173 | { |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 174 | struct ci_hdrc_msm *ci; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 175 | struct platform_device *plat_ci; |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 176 | struct clk *clk; |
| 177 | struct reset_control *reset; |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 178 | struct resource *res; |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 179 | int ret; |
Stephen Boyd | 47654a1 | 2016-12-28 14:57:03 -0800 | [diff] [blame] | 180 | struct device_node *ulpi_node, *phy_node; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 181 | |
| 182 | dev_dbg(&pdev->dev, "ci_hdrc_msm_probe\n"); |
| 183 | |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 184 | ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); |
| 185 | if (!ci) |
| 186 | return -ENOMEM; |
| 187 | platform_set_drvdata(pdev, ci); |
| 188 | |
Stephen Boyd | 26f8e3a | 2016-12-28 14:57:04 -0800 | [diff] [blame] | 189 | ci->pdata.name = "ci_hdrc_msm"; |
| 190 | ci->pdata.capoffset = DEF_CAPOFFSET; |
| 191 | ci->pdata.flags = CI_HDRC_REGS_SHARED | CI_HDRC_DISABLE_STREAMING | |
Stephen Boyd | 11893da | 2016-12-28 14:57:06 -0800 | [diff] [blame] | 192 | CI_HDRC_OVERRIDE_AHB_BURST | |
| 193 | CI_HDRC_OVERRIDE_PHY_CONTROL; |
Stephen Boyd | 26f8e3a | 2016-12-28 14:57:04 -0800 | [diff] [blame] | 194 | ci->pdata.notify_event = ci_hdrc_msm_notify_event; |
Ivan T. Ivanov | 2629b10 | 2014-05-04 09:24:41 +0800 | [diff] [blame] | 195 | |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 196 | reset = devm_reset_control_get(&pdev->dev, "core"); |
| 197 | if (IS_ERR(reset)) |
| 198 | return PTR_ERR(reset); |
| 199 | |
| 200 | ci->core_clk = clk = devm_clk_get(&pdev->dev, "core"); |
| 201 | if (IS_ERR(clk)) |
| 202 | return PTR_ERR(clk); |
| 203 | |
| 204 | ci->iface_clk = clk = devm_clk_get(&pdev->dev, "iface"); |
| 205 | if (IS_ERR(clk)) |
| 206 | return PTR_ERR(clk); |
| 207 | |
| 208 | ci->fs_clk = clk = devm_clk_get(&pdev->dev, "fs"); |
| 209 | if (IS_ERR(clk)) { |
| 210 | if (PTR_ERR(clk) == -EPROBE_DEFER) |
| 211 | return -EPROBE_DEFER; |
| 212 | ci->fs_clk = NULL; |
| 213 | } |
| 214 | |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 215 | res = platform_get_resource(pdev, IORESOURCE_MEM, 1); |
| 216 | ci->base = devm_ioremap_resource(&pdev->dev, res); |
Wei Yongjun | 753dfd2 | 2017-01-25 14:02:48 +0000 | [diff] [blame] | 217 | if (IS_ERR(ci->base)) |
| 218 | return PTR_ERR(ci->base); |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 219 | |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 220 | ci->rcdev.owner = THIS_MODULE; |
| 221 | ci->rcdev.ops = &ci_hdrc_msm_reset_ops; |
| 222 | ci->rcdev.of_node = pdev->dev.of_node; |
| 223 | ci->rcdev.nr_resets = 2; |
| 224 | ret = reset_controller_register(&ci->rcdev); |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 225 | if (ret) |
| 226 | return ret; |
| 227 | |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 228 | ret = clk_prepare_enable(ci->fs_clk); |
| 229 | if (ret) |
| 230 | goto err_fs; |
| 231 | |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 232 | reset_control_assert(reset); |
| 233 | usleep_range(10000, 12000); |
| 234 | reset_control_deassert(reset); |
| 235 | |
| 236 | clk_disable_unprepare(ci->fs_clk); |
| 237 | |
| 238 | ret = clk_prepare_enable(ci->core_clk); |
| 239 | if (ret) |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 240 | goto err_fs; |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 241 | |
| 242 | ret = clk_prepare_enable(ci->iface_clk); |
| 243 | if (ret) |
| 244 | goto err_iface; |
| 245 | |
Stephen Boyd | 2fc305b | 2016-12-28 14:57:02 -0800 | [diff] [blame] | 246 | ret = ci_hdrc_msm_mux_phy(ci, pdev); |
| 247 | if (ret) |
| 248 | goto err_mux; |
| 249 | |
Johan Hovold | 964728f | 2017-11-13 11:12:58 +0100 | [diff] [blame] | 250 | ulpi_node = of_get_child_by_name(pdev->dev.of_node, "ulpi"); |
Stephen Boyd | 47654a1 | 2016-12-28 14:57:03 -0800 | [diff] [blame] | 251 | if (ulpi_node) { |
| 252 | phy_node = of_get_next_available_child(ulpi_node, NULL); |
| 253 | ci->hsic = of_device_is_compatible(phy_node, "qcom,usb-hsic-phy"); |
| 254 | of_node_put(phy_node); |
| 255 | } |
| 256 | of_node_put(ulpi_node); |
| 257 | |
Stephen Boyd | 26f8e3a | 2016-12-28 14:57:04 -0800 | [diff] [blame] | 258 | plat_ci = ci_hdrc_add_device(&pdev->dev, pdev->resource, |
| 259 | pdev->num_resources, &ci->pdata); |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 260 | if (IS_ERR(plat_ci)) { |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 261 | ret = PTR_ERR(plat_ci); |
Stephen Boyd | ed04f19 | 2016-12-28 14:57:07 -0800 | [diff] [blame] | 262 | if (ret != -EPROBE_DEFER) |
| 263 | dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 264 | goto err_mux; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 265 | } |
| 266 | |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 267 | ci->ci = plat_ci; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 268 | |
Stephen Boyd | 2c8ea46 | 2016-12-28 14:56:58 -0800 | [diff] [blame] | 269 | pm_runtime_set_active(&pdev->dev); |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 270 | pm_runtime_no_callbacks(&pdev->dev); |
| 271 | pm_runtime_enable(&pdev->dev); |
| 272 | |
| 273 | return 0; |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 274 | |
| 275 | err_mux: |
| 276 | clk_disable_unprepare(ci->iface_clk); |
| 277 | err_iface: |
| 278 | clk_disable_unprepare(ci->core_clk); |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 279 | err_fs: |
| 280 | reset_controller_unregister(&ci->rcdev); |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 281 | return ret; |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 282 | } |
| 283 | |
| 284 | static int ci_hdrc_msm_remove(struct platform_device *pdev) |
| 285 | { |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 286 | struct ci_hdrc_msm *ci = platform_get_drvdata(pdev); |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 287 | |
| 288 | pm_runtime_disable(&pdev->dev); |
Stephen Boyd | e9f15a7 | 2016-12-28 14:57:01 -0800 | [diff] [blame] | 289 | ci_hdrc_remove_device(ci->ci); |
| 290 | clk_disable_unprepare(ci->iface_clk); |
| 291 | clk_disable_unprepare(ci->core_clk); |
Stephen Boyd | 1b8fc5a | 2016-12-28 14:57:05 -0800 | [diff] [blame] | 292 | reset_controller_unregister(&ci->rcdev); |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 293 | |
| 294 | return 0; |
| 295 | } |
| 296 | |
Ivan T. Ivanov | 2629b10 | 2014-05-04 09:24:41 +0800 | [diff] [blame] | 297 | static const struct of_device_id msm_ci_dt_match[] = { |
| 298 | { .compatible = "qcom,ci-hdrc", }, |
| 299 | { } |
| 300 | }; |
| 301 | MODULE_DEVICE_TABLE(of, msm_ci_dt_match); |
| 302 | |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 303 | static struct platform_driver ci_hdrc_msm_driver = { |
| 304 | .probe = ci_hdrc_msm_probe, |
| 305 | .remove = ci_hdrc_msm_remove, |
Ivan T. Ivanov | 2629b10 | 2014-05-04 09:24:41 +0800 | [diff] [blame] | 306 | .driver = { |
| 307 | .name = "msm_hsusb", |
| 308 | .of_match_table = msm_ci_dt_match, |
| 309 | }, |
Alexander Shishkin | 8e22978 | 2013-06-24 14:46:36 +0300 | [diff] [blame] | 310 | }; |
| 311 | |
| 312 | module_platform_driver(ci_hdrc_msm_driver); |
| 313 | |
| 314 | MODULE_ALIAS("platform:msm_hsusb"); |
| 315 | MODULE_ALIAS("platform:ci13xxx_msm"); |
| 316 | MODULE_LICENSE("GPL v2"); |