ARM: sunxi: RTC support for A31/A23
Subsystems (4)
v2 cover ARM: sunxi: RTC support for A31/A23
Hi everyone,
This is v2 of the sun6i RTC series. This series adds support for the RTC in A31 and A23 SoCs. The series applies to sunxi-next.
The A31 has a new RTC block that is separate from the timer block. It has separate interrupts for each of the alarms, and a different format for the counter alarm. The driver has been tested on the A31 Hummingbird, and the A23 tablet I'm using to work on sun8i support.
Patch 1 adds the driver for the RTC.
Patch 2 is a minor cleanup. This makes rtc-sunxi depend on sun4i or sun7i, the 2 platforms the driver is actually used on.
Patch 3 adds the RTC device node to the sun6i DTSI.
Patch 4 adds the RTC device node to the sun8i DTSI.
Patch 5 adds enables rtc-sun6i in the sunxi defconfig.
Patch 6 adds enables rtc-sun6i in the multi_v7 defconfig. This patch applies to arm-soc/next/defconfig (e9a86d96)
Changes since v1:
- Enable rtc-sun6i in multi_v7_defconfig
- Cleanup the time/date GET/SET macros
- Use GENMASK for control register mask
- Change Kconfig option to show 'A31'
- Remove leftover comment from rtc-sun4i
- Remove extra newline
Cheers
ChenYu
Chen-Yu Tsai (6):
rtc: sun6i: Add sun6i RTC driver
rtc: sunxi: Depend on platforms sun4i/sun7i that actually have the rtc
ARM: dts: sun6i: add rtc device node
ARM: dts: sun8i: add rtc device node
ARM: sunxi: Add A31 RTC driver to sunxi_defconfig
ARM: sunxi: Add A31 RTC driver to multi_v7_defconfig
.../devicetree/bindings/rtc/sun6i-rtc.txt | 17 + arch/arm/boot/dts/sun6i-a31.dtsi | 6 + arch/arm/boot/dts/sun8i-a23.dtsi | 6 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm/configs/sunxi_defconfig | 1 + drivers/rtc/Kconfig | 9 +- drivers/rtc/Makefile | 1 + drivers/rtc/rtc-sun6i.c | 448 +++++++++++++++++++++ 8 files changed, 488 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/rtc/sun6i-rtc.txt create mode 100644 drivers/rtc/rtc-sun6i.c
Signature · 1 line
2.0.1
PATCH v2 1/6 rtc: sun6i: Add sun6i RTC driver
This patch introduces the driver for the RTC in the Allwinner A31 and A23 SoCs.
Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the RTC in A31/A23 are a separate hardware block, which also contain a few controls for the RTC block hardware (a regulator and RTC block GPIO pin latches), while also having separate interrupts for the alarms.
The hardware is different enough to make a different driver for it.
--- .../devicetree/bindings/rtc/sun6i-rtc.txt | 17 + drivers/rtc/Kconfig | 7 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-sun6i.c | 448 +++++++++++++++++++++ 4 files changed, 473 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/sun6i-rtc.txt create mode 100644 drivers/rtc/rtc-sun6i.c
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +17 -0
@@ -0,0 +1,17 @@ +* sun6i Real Time Clock + +RTC controller for the Allwinner A31 + +Required properties: +- compatible : Should be "allwinner,sun6i-a31-rtc" +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: IRQ line for the RTC alarm 0. + +Example: + +rtc: rtc at 01f00000 { + compatible = "allwinner,sun6i-a31-rtc"; + reg = <0x01f00000 0x54>; + interrupts = <0 40 4>; +};
drivers/rtc/Kconfig +7 -0
@@ -1167,6 +1167,13 @@ config RTC_DRV_SUN4V If you say Y here you will get support for the Hypervisor based RTC on SUN4V systems. +config RTC_DRV_SUN6I + tristate "Allwinner A31 RTC" + depends on MACH_SUN6I || MACH_SUN8I + help + If you say Y here you will get support for the RTC found on + Allwinner A31. + config RTC_DRV_SUNXI tristate "Allwinner sun4i/sun7i RTC" depends on ARCH_SUNXI
drivers/rtc/Makefile +1 -0
@@ -123,6 +123,7 @@ obj-$(CONFIG_RTC_DRV_STARFIRE) += rtc-starfire.o obj-$(CONFIG_RTC_DRV_STK17TA8) += rtc-stk17ta8.o obj-$(CONFIG_RTC_DRV_STMP) += rtc-stmp3xxx.o obj-$(CONFIG_RTC_DRV_SUN4V) += rtc-sun4v.o +obj-$(CONFIG_RTC_DRV_SUN6I) += rtc-sun6i.o obj-$(CONFIG_RTC_DRV_SUNXI) += rtc-sunxi.o obj-$(CONFIG_RTC_DRV_TEGRA) += rtc-tegra.o obj-$(CONFIG_RTC_DRV_TEST) += rtc-test.o
drivers/rtc/rtc-sun6i.c new file +448 -0
448 lines not on this page · raw message
Signature · 1 line
2.0.1
PATCH v2 2/6 rtc: sunxi: Depend on platforms sun4i/sun7i that actually have the rtc
In reply to Chen-Yu TsaiNow that we have Kconfig options for individual sunxi platforms, let the rtc-sunxi driver depend on the platforms that actually have this hardware, sun4i and sun7i.
--- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/Kconfig +1 -1
@@ -1176,7 +1176,7 @@ config RTC_DRV_SUN6I config RTC_DRV_SUNXI tristate "Allwinner sun4i/sun7i RTC" - depends on ARCH_SUNXI + depends on MACH_SUN4I || MACH_SUN7I help If you say Y here you will get support for the RTC found on Allwinner A10/A20.
Signature · 1 line
2.0.1
PATCH v2 3/6 ARM: dts: sun6i: add rtc device node
In reply to Chen-Yu TsaiNow that we have a driver for sun6i's rtc hardware, add a device node for it so we can use it.
--- arch/arm/boot/dts/sun6i-a31.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +6 -0
@@ -779,6 +779,12 @@ interrupts = <1 9 0xf04>; }; + rtc: rtc at 01f00000 { + compatible = "allwinner,sun6i-a31-rtc"; + reg = <0x01f00000 0x54>; + interrupts = <0 40 4>; + }; + nmi_intc: interrupt-controller at 01f00c0c { compatible = "allwinner,sun6i-a31-sc-nmi"; interrupt-controller;
Signature · 1 line
2.0.1
PATCH v2 4/6 ARM: dts: sun8i: add rtc device node
In reply to Chen-Yu Tsaisun8i shares the same rtc hardware as sun6i. Now that we have a driver for it, add a device node to the DTSI for it so we can use it.
--- arch/arm/boot/dts/sun8i-a23.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun8i-a23.dtsi +6 -0
@@ -285,6 +285,12 @@ interrupts = <1 9 0xf04>; }; + rtc: rtc at 01f00000 { + compatible = "allwinner,sun6i-a31-rtc"; + reg = <0x01f00000 0x54>; + interrupts = <0 40 4>; + }; + prcm at 01f01400 { compatible = "allwinner,sun8i-a23-prcm"; reg = <0x01f01400 0x200>;
Signature · 1 line
2.0.1
PATCH v2 5/6 ARM: sunxi: Add A31 RTC driver to sunxi_defconfig
In reply to Chen-Yu TsaiNow that we have a driver for A31's RTC, enable it in the default sunxi config.
--- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/sunxi_defconfig +1 -0
@@ -93,6 +93,7 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y CONFIG_RTC_CLASS=y # CONFIG_RTC_INTF_SYSFS is not set # CONFIG_RTC_INTF_PROC is not set +CONFIG_RTC_DRV_SUN6I=y CONFIG_RTC_DRV_SUNXI=y # CONFIG_IOMMU_SUPPORT is not set CONFIG_PHY_SUN4I_USB=y
Signature · 1 line
2.0.1
PATCH v2 6/6 ARM: sunxi: Add A31 RTC driver to multi_v7_defconfig
In reply to Chen-Yu TsaiNow that we have a driver for A31's RTC, enable it in multi_v7_defconfig.
--- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/multi_v7_defconfig +1 -0
@@ -346,6 +346,7 @@ CONFIG_RTC_DRV_TPS65910=y CONFIG_RTC_DRV_EM3027=y CONFIG_RTC_DRV_PL031=y CONFIG_RTC_DRV_VT8500=y +CONFIG_RTC_DRV_SUN6I=y CONFIG_RTC_DRV_SUNXI=y CONFIG_RTC_DRV_MV=y CONFIG_RTC_DRV_TEGRA=y
Signature · 1 line
2.0.1
PATCH v2 1/6 rtc: sun6i: Add sun6i RTC driver
In reply to Chen-Yu TsaiQuoted 10 lines · Chen-Yu Tsai
This patch introduces the driver for the RTC in the Allwinner A31 and A23 SoCs.
Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the RTC in A31/A23 are a separate hardware block, which also contain a few controls for the RTC block hardware (a regulator and RTC block GPIO pin latches), while also having separate interrupts for the alarms.
The hardware is different enough to make a different driver for it.
(...)
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt line 10
Quoted 6 lines
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +6
-0+Required properties: +- compatible : Should be "allwinner,sun6i-a31-rtc" +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: IRQ line for the RTC alarm 0. +
proper indentation..
- compatible : Should be "allwinner,sun6i-a31-rtc"
- reg : physical base address of the controller and length of memory mapped
region.
- interrupts : IRQ line for the RTC alarm 0.
....
Quoted 2 lines
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +2
-0+Example: +
(...)
drivers/rtc/rtc-sun6i.c line 375
Quoted 3 lines
drivers/rtc/rtc-sun6i.c new file +3
-0+ + ret =devm_request_irq (&pdev->dev, chip->irq, sun6i_rtc_alarmirq, +0 ,dev_name (&pdev->dev), chip);
should match open parenthesis...
devm_request_irq(&pdev->dev, chip->irq, sun6i_rtc_alarmirq,
0, dev_name(&pdev->dev), chip);
Quoted 23 lines
drivers/rtc/rtc-sun6i.c new file +23
-0+if (ret) { +dev_err (&pdev->dev,"Could not request IRQ\n" ); +return ret; + } + +/* clear the alarm counter value */ +writel (0 , chip->base +SUN6I_ALRM_COUNTER ); + +/* disable counter alarm */ +writel (0 , chip->base +SUN6I_ALRM_EN ); + +/* disable counter alarm interrupt */ +writel (0 , chip->base +SUN6I_ALRM_IRQ_EN ); + +/* disable week alarm */ +writel (0 , chip->base +SUN6I_ALRM1_EN ); + +/* disable week alarm interrupt */ +writel (0 , chip->base +SUN6I_ALRM1_IRQ_EN ); + +/* clear counter alarm pending interrupts */ +writel (SUN6I_ALRM_IRQ_STA_CNT_IRQ_PEND , chip->base + +SUN6I_ALRM_IRQ_STA );
drivers/rtc/rtc-sun6i.c line 408
Quoted 10 lines
drivers/rtc/rtc-sun6i.c new file +10
-0+ +/* clear week alarm pending interrupts */ +writel (SUN6I_ALRM1_IRQ_STA_WEEK_IRQ_PEND , chip->base + +SUN6I_ALRM1_IRQ_STA ); + +/* disable alarm wakeup */ +writel (0 , chip->base +SUN6I_ALARM_CONFIG ); + + chip->rtc =rtc_device_register ("rtc-sun6i" , &pdev->dev, + &sun6i_rtc_ops,THIS_MODULE );
dto....
Quoted 21 lines
drivers/rtc/rtc-sun6i.c new file +21
-0+if (IS_ERR (chip->rtc)) { +dev_err (&pdev->dev,"unable to register device\n" ); +return PTR_ERR (chip->rtc); + } + +dev_info (&pdev->dev,"RTC enabled\n" ); + +return 0 ; +} + +static int sun6i_rtc_remove (struct platform_device *pdev) +{ +struct sun6i_rtc_dev *chip =platform_get_drvdata (pdev); + +rtc_device_unregister (chip->rtc); + +return 0 ; +} + +static const struct of_device_id sun6i_rtc_dt_ids[] = { + { .compatible ="allwinner,sun6i-a31-rtc" },
drivers/rtc/rtc-sun6i.c line 439
Quoted 10 lines
drivers/rtc/rtc-sun6i.c new file +10
-0+ { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE (of, sun6i_rtc_dt_ids); + +static struct platform_driver sun6i_rtc_driver = { + .probe = sun6i_rtc_probe, + .remove = sun6i_rtc_remove, + .driver = { + .name ="sun6i-rtc" , + .owner =THIS_MODULE ,
we can drop owner field....
Quoted 9 lines
drivers/rtc/rtc-sun6i.c new file +9
-0+ .of_match_table = sun6i_rtc_dt_ids, + }, +}; + +module_platform_driver (sun6i_rtc_driver); + +MODULE_DESCRIPTION ("sun6i RTC driver" ); +MODULE_AUTHOR ("Chen-Yu Tsai <[email protected]>" ); +MODULE_LICENSE ("GPL" );
Signature · 1 line
-Varka Bhadram
PATCH v2 1/6 rtc: sun6i: Add sun6i RTC driver
Quoted 47 lines · Varka Bhadram
Quoted 11 lines · Chen-Yu Tsai
This patch introduces the driver for the RTC in the Allwinner A31 and A23 SoCs.
Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the RTC in A31/A23 are a separate hardware block, which also contain a few controls for the RTC block hardware (a regulator and RTC block GPIO pin latches), while also having separate interrupts for the alarms.
The hardware is different enough to make a different driver for it.
(...)
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt line 10
Quoted 7 lines
+Required properties:
+- compatible : Should be "allwinner,sun6i-a31-rtc" +- reg: physical base address of the controller and length of memorymapped
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +3
-0+ region. +- interrupts: IRQ line for the RTC alarm 0. +proper indentation..
- compatible : Should be "allwinner,sun6i-a31-rtc"- reg : physical base address of the controller and length of
memory mapped
region.- interrupts : IRQ line for the RTC alarm 0.
....Quoted 2 lines
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +2
-0+Example: +(...)
drivers/rtc/rtc-sun6i.c line 375
Quoted 3 lines
drivers/rtc/rtc-sun6i.c new file +3
-0+ + ret =devm_request_irq (&pdev->dev, chip->irq, sun6i_rtc_alarmirq, +0 ,dev_name (&pdev->dev), chip);
Quoted 5 lines
should match open parenthesis...
devm_request_irq(&pdev->dev,
chip->irq,sun6i_rtc_alarmirq,0, dev_name(&pdev->dev), chip);
ok.
Quoted 28 lines
Quoted 28 lines
drivers/rtc/rtc-sun6i.c new file +28
-0+if (ret) { +dev_err (&pdev->dev,"Could not request IRQ\n" ); +return ret; + } + +/* clear the alarm counter value */ +writel (0 , chip->base +SUN6I_ALRM_COUNTER ); + +/* disable counter alarm */ +writel (0 , chip->base +SUN6I_ALRM_EN ); + +/* disable counter alarm interrupt */ +writel (0 , chip->base +SUN6I_ALRM_IRQ_EN ); + +/* disable week alarm */ +writel (0 , chip->base +SUN6I_ALRM1_EN ); + +/* disable week alarm interrupt */ +writel (0 , chip->base +SUN6I_ALRM1_IRQ_EN ); + +/* clear counter alarm pending interrupts */ +writel (SUN6I_ALRM_IRQ_STA_CNT_IRQ_PEND , chip->base + +SUN6I_ALRM_IRQ_STA ); + +/* clear week alarm pending interrupts */ +writel (SUN6I_ALRM1_IRQ_STA_WEEK_IRQ_PEND , chip->base + +SUN6I_ALRM1_IRQ_STA ); +
Quoted 8 lines
drivers/rtc/rtc-sun6i.c line 408
Quoted 5 lines
drivers/rtc/rtc-sun6i.c new file +5
-0+/* disable alarm wakeup */ +writel (0 , chip->base +SUN6I_ALARM_CONFIG ); + + chip->rtc =rtc_device_register ("rtc-sun6i" , &pdev->dev, + &sun6i_rtc_ops,THIS_MODULE );dto....
ok.
Quoted 26 lines
Quoted 26 lines
drivers/rtc/rtc-sun6i.c new file +26
-0+if (IS_ERR (chip->rtc)) { +dev_err (&pdev->dev,"unable to register device\n" ); +return PTR_ERR (chip->rtc); + } + +dev_info (&pdev->dev,"RTC enabled\n" ); + +return 0 ; +} + +static int sun6i_rtc_remove (struct platform_device *pdev) +{ +struct sun6i_rtc_dev *chip =platform_get_drvdata (pdev); + +rtc_device_unregister (chip->rtc); + +return 0 ; +} + +static const struct of_device_id sun6i_rtc_dt_ids[] = { + { .compatible ="allwinner,sun6i-a31-rtc" }, + {/* sentinel */ }, +}; +MODULE_DEVICE_TABLE (of, sun6i_rtc_dt_ids); + +static struct platform_driver sun6i_rtc_driver = {
Quoted 8 lines
drivers/rtc/rtc-sun6i.c line 439
Quoted 5 lines
drivers/rtc/rtc-sun6i.c new file +5
-0+ .probe = sun6i_rtc_probe, + .remove = sun6i_rtc_remove, + .driver = { + .name = "sun6i-rtc", + .owner = THIS_MODULE,we can drop owner field....
May I ask why this is not needed? Seems most if not all drivers set it.
Thanks.
Quoted 9 lines
Quoted 9 lines
drivers/rtc/rtc-sun6i.c new file +9
-0+ .of_match_table = sun6i_rtc_dt_ids, + }, +}; + +module_platform_driver (sun6i_rtc_driver); + +MODULE_DESCRIPTION ("sun6i RTC driver" ); +MODULE_AUTHOR ("Chen-Yu Tsai <[email protected]>" ); +MODULE_LICENSE ("GPL" );
PATCH v2 1/6 rtc: sun6i: Add sun6i RTC driver
Quoted 130 lines · Chen-Yu Tsai
Quoted 47 lines · Varka Bhadram
Quoted 11 lines · Chen-Yu Tsai
This patch introduces the driver for the RTC in the Allwinner A31 and A23 SoCs.
Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the RTC in A31/A23 are a separate hardware block, which also contain a few controls for the RTC block hardware (a regulator and RTC block GPIO pin latches), while also having separate interrupts for the alarms.
The hardware is different enough to make a different driver for it.
(...)
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt line 10
Quoted 7 lines
+Required properties:
+- compatible : Should be "allwinner,sun6i-a31-rtc" +- reg: physical base address of the controller and length of memorymapped
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +3
-0+ region. +- interrupts: IRQ line for the RTC alarm 0. +proper indentation..
- compatible : Should be "allwinner,sun6i-a31-rtc"- reg : physical base address of the controller and length of
memory mapped
region.- interrupts : IRQ line for the RTC alarm 0.
....Quoted 2 lines
Documentation/devicetree/bindings/rtc/sun6i-rtc.txt new file +2
-0+Example: +(...)
drivers/rtc/rtc-sun6i.c line 375
Quoted 3 lines
drivers/rtc/rtc-sun6i.c new file +3
-0+ + ret =devm_request_irq (&pdev->dev, chip->irq, sun6i_rtc_alarmirq, +0 ,dev_name (&pdev->dev), chip);Quoted 5 lines
should match open parenthesis...
devm_request_irq(&pdev->dev,
chip->irq,sun6i_rtc_alarmirq,0, dev_name(&pdev->dev), chip);ok.
Quoted 28 lines
Quoted 28 lines
drivers/rtc/rtc-sun6i.c new file +28
-0+if (ret) { +dev_err (&pdev->dev,"Could not request IRQ\n" ); +return ret; + } + +/* clear the alarm counter value */ +writel (0 , chip->base +SUN6I_ALRM_COUNTER ); + +/* disable counter alarm */ +writel (0 , chip->base +SUN6I_ALRM_EN ); + +/* disable counter alarm interrupt */ +writel (0 , chip->base +SUN6I_ALRM_IRQ_EN ); + +/* disable week alarm */ +writel (0 , chip->base +SUN6I_ALRM1_EN ); + +/* disable week alarm interrupt */ +writel (0 , chip->base +SUN6I_ALRM1_IRQ_EN ); + +/* clear counter alarm pending interrupts */ +writel (SUN6I_ALRM_IRQ_STA_CNT_IRQ_PEND , chip->base + +SUN6I_ALRM_IRQ_STA ); + +/* clear week alarm pending interrupts */ +writel (SUN6I_ALRM1_IRQ_STA_WEEK_IRQ_PEND , chip->base + +SUN6I_ALRM1_IRQ_STA ); +Quoted 8 lines
drivers/rtc/rtc-sun6i.c line 408
Quoted 5 lines
drivers/rtc/rtc-sun6i.c new file +5
-0+/* disable alarm wakeup */ +writel (0 , chip->base +SUN6I_ALARM_CONFIG ); + + chip->rtc =rtc_device_register ("rtc-sun6i" , &pdev->dev, + &sun6i_rtc_ops,THIS_MODULE );dto....
ok.
Quoted 26 lines
Quoted 26 lines
drivers/rtc/rtc-sun6i.c new file +26
-0+if (IS_ERR (chip->rtc)) { +dev_err (&pdev->dev,"unable to register device\n" ); +return PTR_ERR (chip->rtc); + } + +dev_info (&pdev->dev,"RTC enabled\n" ); + +return 0 ; +} + +static int sun6i_rtc_remove (struct platform_device *pdev) +{ +struct sun6i_rtc_dev *chip =platform_get_drvdata (pdev); + +rtc_device_unregister (chip->rtc); + +return 0 ; +} + +static const struct of_device_id sun6i_rtc_dt_ids[] = { + { .compatible ="allwinner,sun6i-a31-rtc" }, + {/* sentinel */ }, +}; +MODULE_DEVICE_TABLE (of, sun6i_rtc_dt_ids); + +static struct platform_driver sun6i_rtc_driver = {Quoted 8 lines
drivers/rtc/rtc-sun6i.c line 439
Quoted 5 lines
drivers/rtc/rtc-sun6i.c new file +5
-0+ .probe = sun6i_rtc_probe, + .remove = sun6i_rtc_remove, + .driver = { + .name = "sun6i-rtc", + .owner = THIS_MODULE,we can drop owner field....
Quoted 4 lines
May I ask why this is not needed? Seems most if not all drivers set it.
Thanks.
Never mind. I figured it out. Sorry for the noise.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
drivers/rtc/rtc-sun6i.c new file +9
-0+ .of_match_table = sun6i_rtc_dt_ids, + }, +}; + +module_platform_driver (sun6i_rtc_driver); + +MODULE_DESCRIPTION ("sun6i RTC driver" ); +MODULE_AUTHOR ("Chen-Yu Tsai <[email protected]>" ); +MODULE_LICENSE ("GPL" );