Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
Signed-off-by: Scott Shu
---
arch/arm/boot/dts/mt6580.dtsi | 20
1 file
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu
---
drivers/soc/mediatek/mtk-scpsys.c | 250
include/linux/soc/mediatek/scpsys.h | 9 ++
2 files changed, 259 insertions(+)
create mode 100644 include
This adds the SCPSYS device node to the MT6580 dtsi file.
Signed-off-by: Scott Shu
---
arch/arm/boot/dts/mt6580.dtsi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index 06fdf6c..40957d3 100644
--- a/arch/arm/boot/dts
Add support for cpu enable-method "mediatek,mt6580-smp" for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/platsmp.c | 67
1 file changed, 67 insertions(+)
diff --git a/arch/arm/mach-mediatek/platsmp.c
This adds "mediatek,mt6580-scpsys" in the compatible properties of
SCPSYS node for MT6580 SoC.
Signed-off-by: Scott Shu
---
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bi
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT6589, one new enable method is needed.
This method using the SPM (System Power Manager) inside the SCPSYS to
control the CPU power.
Signed-off-by: Scott Shu
---
Documentation/devicetree/bindings
We enable GTP6 which ungates the arch timer clock.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
The INFRACFG contains various infrastructure registers and the SCPSYS handles
several power management related tasks. Both are needed for SMP and CPU
hotplug on MT6580.
Signed-off-by: Scott Shu
---
arch/arm/configs/multi_v7_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch
ge in v2:
1. Rebase to 4.2-rc1
2. Fix using usleep() in atomic context
3. Put a timeout in cpu power on/off sequence
4. Fix some coding style
Scott Shu (8):
Document: bindings: DT: Add SMP enable method for MT6580 SoC platform
dt-bindings: soc: Add SCPSYS compatible support for mt6580
soc:
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/platsmp.c | 67
1 file changed, 67 insertions(+)
diff --git a/arch/arm/mach-mediatek
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
drivers/soc/mediatek/mtk-scpsys.c | 250
include/linux/soc/mediatek/scpsys.h | 9 ++
2 files changed, 259 insertions(+)
create
This adds the SCPSYS device node to the MT6580 dtsi file.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/boot/dts/mt6580.dtsi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index 06fdf6c..40957d3 100644
This adds mediatek,mt6580-scpsys in the compatible properties of
SCPSYS node for MT6580 SoC.
Signed-off-by: Scott Shu scott@mediatek.com
---
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/boot/dts/mt6580.dtsi | 20
using usleep() in atomic context
3. Put a timeout in cpu power on/off sequence
4. Fix some coding style
Scott Shu (8):
Document: bindings: DT: Add SMP enable method for MT6580 SoC platform
dt-bindings: soc: Add SCPSYS compatible support for mt6580
soc: Mediatek: Add SCPSYS CPU power domain
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT6589, one new enable method is needed.
This method using the SPM (System Power Manager) inside the SCPSYS to
control the CPU power.
Signed-off-by: Scott Shu scott@mediatek.com
We enable GTP6 which ungates the arch timer clock.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67
The INFRACFG contains various infrastructure registers and the SCPSYS handles
several power management related tasks. Both are needed for SMP and CPU
hotplug on MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/configs/multi_v7_defconfig | 2 ++
1 file changed, 2 insertions
On Wed, 2015-08-05 at 10:44 +0100, Russell King - ARM Linux wrote:
> On Tue, Aug 04, 2015 at 09:54:21PM +0800, Scott Shu wrote:
> > Add support for cpu enable-method "mediatek,mt6580-smp" for booting
> > secondary CPUs on MT6580.
>
> If you have CPU power d
On Thu, 2015-08-06 at 08:19 +0200, Sascha Hauer wrote:
> On Wed, Aug 05, 2015 at 06:47:03PM +0200, Matthias Brugger wrote:
> > On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote:
> > > Add support for cpu enable-method "mediatek,mt6580-smp" for booting
&g
On Thu, 2015-08-06 at 12:03 +0200, Sascha Hauer wrote:
> On Thu, Aug 06, 2015 at 10:59:02AM +0800, Scott Shu wrote:
> > On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote:
> > > don't do this then it indeed doesn't make much sense to put it into the
> > > same file.
&
On Wed, 2015-08-05 at 18:47 +0200, Matthias Brugger wrote:
> On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote:
> > Add support for cpu enable-method "mediatek,mt6580-smp" for booting
> > secondary CPUs on MT6580.
> >
> > Signed-off-by: Scott Shu
On Wed, 2015-08-05 at 10:44 +0100, Russell King - ARM Linux wrote:
On Tue, Aug 04, 2015 at 09:54:21PM +0800, Scott Shu wrote:
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
If you have CPU power domain support, and you power up and power down
On Thu, 2015-08-06 at 12:03 +0200, Sascha Hauer wrote:
On Thu, Aug 06, 2015 at 10:59:02AM +0800, Scott Shu wrote:
On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote:
don't do this then it indeed doesn't make much sense to put it into the
same file.
From what I see we would need
On Thu, 2015-08-06 at 08:19 +0200, Sascha Hauer wrote:
On Wed, Aug 05, 2015 at 06:47:03PM +0200, Matthias Brugger wrote:
On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote:
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
Signed-off
On Wed, 2015-08-05 at 18:47 +0200, Matthias Brugger wrote:
On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote:
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek
On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote:
> On Tue, Aug 04, 2015 at 09:54:19PM +0800, Scott Shu wrote:
> > This adds a CPU power domain driver for the Mediatek SCPSYS unit on
> > MT6580.
> >
> > Signed-off-by: Scott Shu
> > ---
> > dri
On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote:
On Tue, Aug 04, 2015 at 09:54:19PM +0800, Scott Shu wrote:
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
drivers/soc/mediatek/mtk-scpsys.c
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
Signed-off-by: Scott Shu
---
arch/arm/boot/dts/mt6580.dtsi | 20
1
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu
---
drivers/soc/mediatek/mtk-scpsys.c | 250 +++
include/linux/soc/mediatek/scpsys.h |9 ++
2 files changed, 259 insertions(+)
create mode 100644 include
The INFRACFG contains various infrastructure registers and the SCPSYS handles
several power management related tasks. Both are needed for SMP and CPU
hotplug on MT6580.
Signed-off-by: Scott Shu
---
arch/arm/configs/multi_v7_defconfig |2 ++
1 file changed, 2 insertions(+)
diff --git a/arch
This adds "mediatek,mt6580-scpsys" in the compatible properties of
SCPSYS node for MT6580 SoC.
Signed-off-by: Scott Shu
---
.../devicetree/bindings/soc/mediatek/scpsys.txt|2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/so
Add support for cpu enable-method "mediatek,mt6580-smp" for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/platsmp.c | 137 ++
1 file changed, 137 insertions(+)
diff --git a/arch/arm/mach-mediatek/platsmp.c
We enable GTP6 which ungates the arch timer clock.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/mediatek.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
This adds the SCPSYS device node to the MT6580 dtsi file.
Signed-off-by: Scott Shu
---
arch/arm/boot/dts/mt6580.dtsi |6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index 06fdf6c..40957d3 100644
--- a/arch/arm/boot/dts
a timeout in cpu power on/off sequence
4. Fix some coding style
Scott Shu (8):
Document: bindings: DT: Add SMP enable method for MT6580 SoC
platform
dt-bindings: soc: Add SCPSYS compatible support for mt6580
soc: Mediatek: Add SCPSYS CPU power domain driver
ARM: multi_v7_defconfig: enab
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT6589, one new enable method is needed.
This method using the SPM (System Power Manager) inside the SCPSYS to
control the CPU power.
Signed-off-by: Scott Shu
---
Documentation/devicetree/bindings
. Fix some coding style
Scott Shu (8):
Document: bindings: DT: Add SMP enable method for MT6580 SoC
platform
dt-bindings: soc: Add SCPSYS compatible support for mt6580
soc: Mediatek: Add SCPSYS CPU power domain driver
ARM: multi_v7_defconfig: enable INFRACFG and SCPSYS modules
ARM
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT6589, one new enable method is needed.
This method using the SPM (System Power Manager) inside the SCPSYS to
control the CPU power.
Signed-off-by: Scott Shu scott@mediatek.com
This adds the SCPSYS device node to the MT6580 dtsi file.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/boot/dts/mt6580.dtsi |6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index 06fdf6c..40957d3 100644
We enable GTP6 which ungates the arch timer clock.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/mediatek.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
drivers/soc/mediatek/mtk-scpsys.c | 250 +++
include/linux/soc/mediatek/scpsys.h |9 ++
2 files changed, 259 insertions
The INFRACFG contains various infrastructure registers and the SCPSYS handles
several power management related tasks. Both are needed for SMP and CPU
hotplug on MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/configs/multi_v7_defconfig |2 ++
1 file changed, 2 insertions
This adds mediatek,mt6580-scpsys in the compatible properties of
SCPSYS node for MT6580 SoC.
Signed-off-by: Scott Shu scott@mediatek.com
---
.../devicetree/bindings/soc/mediatek/scpsys.txt|2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/platsmp.c | 137 ++
1 file changed, 137 insertions(+)
diff --git a/arch/arm/mach-mediatek
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/boot/dts/mt6580.dtsi | 20
This patch adds support SMP on MediaTek MT6795 Cortex-A53 Octa-core SoC.
The patch is based on v4.2-rc1 and following patch series:
(1) Mars Cheng's "Add mt6795 basic chip support" [1]
[1] https://lkml.org/lkml/2015/7/14/63
Signed-off-by: Scott Shu
---
arch/arm64/boot/dts/mediatek/m
This patch adds support SMP on MediaTek MT6795 Cortex-A53 Octa-core SoC.
The patch is based on v4.2-rc1 and following patch series:
(1) Mars Cheng's Add mt6795 basic chip support [1]
[1] https://lkml.org/lkml/2015/7/14/63
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm64/boot/dts
On Fri, 2015-07-24 at 07:50 +0200, Sascha Hauer wrote:
> On Fri, Jul 24, 2015 at 10:02:03AM +0800, Scott Shu wrote:
> > On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote:
> > > Hi Scott,
> > >
> > > On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu
On Fri, 2015-07-24 at 07:50 +0200, Sascha Hauer wrote:
On Fri, Jul 24, 2015 at 10:02:03AM +0800, Scott Shu wrote:
On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote:
Hi Scott,
On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote:
This adds a CPU power domain driver
On Fri, 2015-07-24 at 14:59 +0200, Matthias Brugger wrote:
> On Friday, June 19, 2015 02:01:15 AM Scott Shu wrote:
> > This patchset adds support SMP on MediaTek MT6580 Cortex-A7 qual core SoC.
> >
> > This is based on v4.1-rc1 and following patch series:
> > (1) Ying
On Fri, 2015-07-24 at 14:59 +0200, Matthias Brugger wrote:
On Friday, June 19, 2015 02:01:15 AM Scott Shu wrote:
This patchset adds support SMP on MediaTek MT6580 Cortex-A7 qual core SoC.
This is based on v4.1-rc1 and following patch series:
(1) Yingjoe Chen's Add SMP bringup support
On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote:
> Hi Scott,
>
> On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote:
> > This adds a CPU power domain driver for the Mediatek SCPSYS unit on
> > MT6580.
>
> This seems to be support for the very same hard
On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote:
Hi Scott,
On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote:
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
This seems to be support for the very same hardware as I am posting
here:
https
uly 10, 2015 02:04:05 PM Scott Shu wrote:
> > This adds a CPU power domain driver for the Mediatek SCPSYS unit on
> > MT6580.
> >
> > Signed-off-by: Scott Shu
> > ---
> > arch/arm/mach-mediatek/Makefile | 2 +-
> > arch/arm/mach-mediatek/generic.h |
10, 2015 02:04:05 PM Scott Shu wrote:
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/Makefile | 2 +-
arch/arm/mach-mediatek/generic.h | 23
arch/arm/mach-mediatek
?
On Fri, 2015-07-10 at 16:31 +0200, Matthias Brugger wrote:
> On Friday, July 10, 2015 02:04:05 PM Scott Shu wrote:
> > This adds a CPU power domain driver for the Mediatek SCPSYS unit on
> > MT6580.
> >
> > Signed-off-by: Scott Shu
> > ---
> > arch/arm/mac
?
On Fri, 2015-07-10 at 16:31 +0200, Matthias Brugger wrote:
On Friday, July 10, 2015 02:04:05 PM Scott Shu wrote:
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/Makefile | 2
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
Signed-off-by: Scott Shu
---
arch/arm/boot/dts/mt6580.dtsi | 20
1 file
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT65xx series SoC, one new enable method
is needed. This method using the SPM (System Power Manager) inside
the SCPSYS to control the CPU power.
Signed-off-by: Scott Shu
---
Documentation
[3] for more information about SCPSYS.
[1] https://lkml.org/lkml/2015/5/16/33
[2] https://lkml.org/lkml/2015/7/7/122
[3] https://lkml.org/lkml/2015/6/9/172
Change in v2:
1. Rebase to 4.2-rc1
2. Fix using usleep() in atomic context
3. Put a timeout in cpu power on/off sequence
4. Fix some coding st
This adds the SCPSYS device node to the MT6580 dtsi file.
Signed-off-by: Scott Shu
---
arch/arm/boot/dts/mt6580.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index 09852cd..4a9df6a 100644
--- a/arch/arm/boot/dts
Add support for cpu enable-method "mediatek,mt6580-smp" for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/platsmp.c | 139 ++-
1 file changed, 138 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mac
We enable GTP6 which ungates the arch timer clock.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu
---
arch/arm/mach-mediatek/Makefile | 2 +-
arch/arm/mach-mediatek/generic.h | 23
arch/arm/mach-mediatek/hotplug.c | 267 +++
3 files changed, 291
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT65xx series SoC, one new enable method
is needed. This method using the SPM (System Power Manager) inside
the SCPSYS to control the CPU power.
Signed-off-by: Scott Shu scott@mediatek.com
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/boot/dts/mt6580.dtsi | 20
.
[1] https://lkml.org/lkml/2015/5/16/33
[2] https://lkml.org/lkml/2015/7/7/122
[3] https://lkml.org/lkml/2015/6/9/172
Change in v2:
1. Rebase to 4.2-rc1
2. Fix using usleep() in atomic context
3. Put a timeout in cpu power on/off sequence
4. Fix some coding style
Scott Shu (6):
Document
This adds the SCPSYS device node to the MT6580 dtsi file.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/boot/dts/mt6580.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index 09852cd..4a9df6a 100644
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/platsmp.c | 139 ++-
1 file changed, 138 insertions(+), 1 deletion(-)
diff --git a/arch/arm
We enable GTP6 which ungates the arch timer clock.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
Signed-off-by: Scott Shu scott@mediatek.com
---
arch/arm/mach-mediatek/Makefile | 2 +-
arch/arm/mach-mediatek/generic.h | 23
arch/arm/mach-mediatek/hotplug.c | 267
; Hi Scott,
>
> On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote:
> > This adds a CPU power domain driver for the Mediatek SCPSYS unit on
> > MT6580.
>
> This seems to be support for the very same hardware as I am posting
> here:
>
> https://lkml.org/lk
, 2015 at 02:01:17AM +0800, Scott Shu wrote:
This adds a CPU power domain driver for the Mediatek SCPSYS unit on
MT6580.
This seems to be support for the very same hardware as I am posting
here:
https://lkml.org/lkml/2015/6/22/41
We should consolidate this.
My driver is currently
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
---
arch/arm/boot/dts/mt6580.dtsi | 20
1 file changed, 20 insertions(+)
Add support for cpu enable-method "mediatek,mt6580-smp" for booting
secondary CPUs on MT6580.
---
arch/arm/mach-mediatek/platsmp.c | 107 +++
1 file changed, 107 insertions(+)
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT65xx series SoC, one new enable method
is needed. This method using the SPM (System Power Manager) inside
the SCYSYS to control the CPU power.
---
Documentation/devicetree/bindings/arm/cpus.txt |
We enable GTP6 which ungates the arch timer clock.
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
---
..2a0d0c8
--- /dev/null
+++ b/arch/arm/mach-mediatek/generic.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2015 Mediatek Inc.
+ * Author: Scott Shu
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published
This adds the SCPSYS device node to the MT6580 dtsi file.
---
arch/arm/boot/dts/mt6580.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index ae3cdb6..a974830 100644
--- a/arch/arm/boot/dts/mt6580.dtsi
+++
[3] for more information about SCPSYS.
[1] https://lkml.org/lkml/2015/5/16/33
[2] https://lkml.org/lkml/2015/6/3/113
[3] https://lkml.org/lkml/2015/6/9/172
Scott Shu (6):
Document: bindings: DT: Add SMP enable method for MT6580 SoC platform
soc: Mediatek: Add SCPSYS CPU power domain driver
This adds the SCPSYS device node to the MT6580 dtsi file.
---
arch/arm/boot/dts/mt6580.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index ae3cdb6..a974830 100644
--- a/arch/arm/boot/dts/mt6580.dtsi
+++
.
[1] https://lkml.org/lkml/2015/5/16/33
[2] https://lkml.org/lkml/2015/6/3/113
[3] https://lkml.org/lkml/2015/6/9/172
Scott Shu (6):
Document: bindings: DT: Add SMP enable method for MT6580 SoC platform
soc: Mediatek: Add SCPSYS CPU power domain driver
ARM: mediatek: add smp bringup code
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT65xx series SoC, one new enable method
is needed. This method using the SPM (System Power Manager) inside
the SCYSYS to control the CPU power.
---
Documentation/devicetree/bindings/arm/cpus.txt |
We enable GTP6 which ungates the arch timer clock.
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
---
..2a0d0c8
--- /dev/null
+++ b/arch/arm/mach-mediatek/generic.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2015 Mediatek Inc.
+ * Author: Scott Shu scott@mediatek.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
---
arch/arm/boot/dts/mt6580.dtsi | 20
1 file changed, 20 insertions(+)
Add support for cpu enable-method mediatek,mt6580-smp for booting
secondary CPUs on MT6580.
---
arch/arm/mach-mediatek/platsmp.c | 107 +++
1 file changed, 107 insertions(+)
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
index
We enable GTP6 which ungates the arch timer clock.
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
---
..2a0d0c8
--- /dev/null
+++ b/arch/arm/mach-mediatek/generic.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2015 Mediatek Inc.
+ * Author: Scott Shu
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
---
arch/arm/boot/dts/mt6580.dtsi | 20
1 file changed, 20 insertions(+)
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT65xx series SoC, one new enable method
is needed. This method using the SPM (System Power Manager) inside
the SCYSYS to control the CPU power.
---
Documentation/devicetree/bindings/arm/cpus.txt |
This adds the SCPSYS device node to the MT6580 dtsi file.
---
arch/arm/boot/dts/mt6580.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi
index ae3cdb6..a974830 100644
--- a/arch/arm/boot/dts/mt6580.dtsi
+++
Add support for cpu enable-method "mediatek,mt6580-smp" for booting
secondary CPUs on MT6580.
---
arch/arm/mach-mediatek/platsmp.c | 107 +++
1 file changed, 107 insertions(+)
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
[3] for more information about SCPSYS.
[1] https://lkml.org/lkml/2015/5/16/33
[2] https://lkml.org/lkml/2015/6/3/113
[3] https://lkml.org/lkml/2015/6/9/172
Scott Shu (6):
Document: bindings: DT: Add SMP enable method for MT6580 SoC platform
soc: Mediatek: Add SCPSYS CPU power domain driver
For MT6580 SoC platform, the secondary cores are in powered off state
as default, so compared with MT65xx series SoC, one new enable method
is needed. This method using the SPM (System Power Manager) inside
the SCYSYS to control the CPU power.
---
Documentation/devicetree/bindings/arm/cpus.txt |
We enable GTP6 which ungates the arch timer clock.
---
arch/arm/mach-mediatek/mediatek.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c
b/arch/arm/mach-mediatek/mediatek.c
index 6b38d67..469d332 100644
---
..2a0d0c8
--- /dev/null
+++ b/arch/arm/mach-mediatek/generic.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2015 Mediatek Inc.
+ * Author: Scott Shu scott@mediatek.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version
Add arch timer node to enable arch-timer support. MT6580 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.
This set cpu enable-method to enable SMP.
---
arch/arm/boot/dts/mt6580.dtsi | 20
1 file changed, 20 insertions(+)
.
[1] https://lkml.org/lkml/2015/5/16/33
[2] https://lkml.org/lkml/2015/6/3/113
[3] https://lkml.org/lkml/2015/6/9/172
Scott Shu (6):
Document: bindings: DT: Add SMP enable method for MT6580 SoC platform
soc: Mediatek: Add SCPSYS CPU power domain driver
ARM: mediatek: add smp bringup code
1 - 100 of 102 matches
Mail list logo