Skip to contentSkip to conversation

PM/Devfreq: Exynos4210 Bus/VDD_int

PATCH Superseded MyungJoo Ham 4 participants 14 messages Dec 1, 2011 – Dec 18, 2011

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

MyungJoo Ham

author maintainer
#0 lore raw

cover PM/Devfreq: Exynos4210 Bus/VDD_int

This patchset adds DVFS (Dynamic Voltage and Frequency Scaling) capability to Exynos4210 memory-bus and vdd_int of the SoC.

The Exynos4210 Bus Devfreq driver uses PPMU counters of memory controllers (DMC0/DMC1 of Exynos4210), and adjusts OPP based on the current load.

In other to support Exynos4210-bus devfreq driver (patch 2/4), we have added patches:
1/4: Enable DMC1, Enable PPMU for DMC0/1.
3/4: Remove compiler errors in Exynos4-Nuri board (Nuri is the test board for this driver)
4/4: Add Exynos4210-bus devfreq device to Nuri board.

Note that any Exynos4210 board may add this capability by adding the platform device "exynos4210-busfreq" and provide a regulator (VDD_INT) to the added device.

ASV (Adaptive Supply Voltage) capability has been introduced in the ARM-kernel mailing list. However, it has not been merged, yet. Thus, the device driver (exynos4210_memorybus.c) has a symbol "CONFIG_EXYNOS4_ASV" to block ASV-related code.
With support of ASV, this devfreq driver reduces power consumption futher; most Exynos4210 SoCs have lower voltage requirement than the worst case (ASV number 0) scenario.

MyungJoo Ham (4):
ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC. PM/Devfreq: Add Exynos4210-bus device DVFS driver. ARM Exynos4210-Nuri: remove compiler errors
ARM Exynos4210-Nuri: support Exynos4210-bus Devfreq driver.

 arch/arm/mach-exynos/cpu.c              |    7 +-
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 arch/arm/mach-exynos/mach-nuri.c        |   13 +-
 drivers/devfreq/Kconfig                 |   12 +
 drivers/devfreq/Makefile                |    3 +
 drivers/devfreq/exynos4210_memorybus.c  |  636 +++++++++++++++++++++++++++++++
 6 files changed, 668 insertions(+), 4 deletions(-)
 create mode 100644 drivers/devfreq/exynos4210_memorybus.c
Signature · 1 line
1.7.4.1
author maintainer
#1 lore raw

PATCH 1/4 ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC.

- Add DMC1
- Enlarge address space for DMC from 4k to 64k so that PPMU registers may be accessed.

---
 arch/arm/mach-exynos/cpu.c              |    7 ++++++-
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/cpu.c +6 -1
index 90ec247..8bdcba9 100644
@@ -108,7 +108,12 @@ static struct map_desc exynos4_iodesc[] __initdata = {
 	}, {
 		.virtual	= (unsigned long)S5P_VA_DMC0,
 		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_4K,
+		.length		= SZ_64K,
+		.type		= MT_DEVICE,
+	}, {
+		.virtual	= (unsigned long)S5P_VA_DMC1,
+		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
+		.length		= SZ_64K,
 		.type		= MT_DEVICE,
 	}, {
 		.virtual	= (unsigned long)S5P_VA_SROMC,
arch/arm/mach-exynos/include/mach/map.h +1 -0
index 058541d..870a980 100644
@@ -57,6 +57,7 @@
 #define EXYNOS4_PA_KEYPAD		0x100A0000
 
 #define EXYNOS4_PA_DMC0			0x10400000
+#define EXYNOS4_PA_DMC1			0x10410000
 
 #define EXYNOS4_PA_COMBINER		0x10440000
 
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 1/4 ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC.

Quoted 37 lines · MyungJoo Ham

- Add DMC1
- Enlarge address space for DMC from 4k to 64k so that PPMU registers may be accessed.

---
 arch/arm/mach-exynos/cpu.c              |    7 ++++++-
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/cpu.c +6 -1
index 90ec247..8bdcba9 100644
@@ -108,7 +108,12 @@ static struct map_desc exynos4_iodesc[] __initdata =
 {
 	}, {
 		.virtual	= (unsigned long)S5P_VA_DMC0,
 		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_4K,
+		.length		= SZ_64K,
+		.type		= MT_DEVICE,
+	}, {
+		.virtual	= (unsigned long)S5P_VA_DMC1,
+		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
+		.length		= SZ_64K,
 		.type		= MT_DEVICE,
 	}, {
arch/arm/mach-exynos/cpu.c +0 -0
 		.virtual	= (unsigned long)S5P_VA_SROMC,
arch/arm/mach- renamed from arch/arm/mach-exynos/include/mach/map.h +0 -0

exynos/include/mach/map.h
index 058541d..870a980 100644

arch/arm/mach-exynos/include/mach/map.h line 60

Quoted 4 lines
arch/arm/mach-exynos/include/mach/map.h +1 -0
@@ -57,6 +57,7 @@
 #define EXYNOS4_PA_KEYPAD		0x100A0000
 
 #define EXYNOS4_PA_DMC0			0x10400000
+#define EXYNOS4_PA_DMC1			0x10410000

If required, so just '.length = SZ_128K'?...

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

maintainer
#3 lore raw

PATCH 1/4 ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC.

Quoted 40 lines · Kukjin Kim
Quoted 39 lines · MyungJoo Ham

- Add DMC1
- Enlarge address space for DMC from 4k to 64k so that PPMU registers may be accessed.

---
 arch/arm/mach-exynos/cpu.c              |    7 ++++++-
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/cpu.c +6 -1
index 90ec247..8bdcba9 100644
@@ -108,7 +108,12 @@ static struct map_desc exynos4_iodesc[] __initdata =
 {
 	}, {
 		.virtual	= (unsigned long)S5P_VA_DMC0,
 		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_4K,
+		.length		= SZ_64K,
+		.type		= MT_DEVICE,
+	}, {
+		.virtual	= (unsigned long)S5P_VA_DMC1,
+		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
+		.length		= SZ_64K,
 		.type		= MT_DEVICE,
 	}, {
arch/arm/mach-exynos/cpu.c +0 -0
 		.virtual	= (unsigned long)S5P_VA_SROMC,
arch/arm/mach- renamed from arch/arm/mach-exynos/include/mach/map.h +0 -0

exynos/include/mach/map.h
index 058541d..870a980 100644

arch/arm/mach-exynos/include/mach/map.h +0 -0
@@ -57,6 +57,7 @@
 #define EXYNOS4_PA_KEYPAD		0x100A0000
 
Quoted 4 lines

arch/arm/mach-exynos/include/mach/map.h line 60

Quoted 2 lines
arch/arm/mach-exynos/include/mach/map.h +1 -0
 #define EXYNOS4_PA_DMC0			0x10400000
+#define EXYNOS4_PA_DMC1			0x10410000

If required, so just '.length = SZ_128K'?...

Doesn't it more confuse and difficult to use?

Even though there's not much definitions. it defines the offset concept. "arch/arm/mach-exynos/include/mach/regs-mem.h"

BR,

Quoted 15 lines

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

PATCH 1/4 ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC.

Quoted 43 lines · Kyungmin Park
Quoted 13 lines · Kukjin Kim
Quoted 12 lines · MyungJoo Ham

- Add DMC1
- Enlarge address space for DMC from 4k to 64k so that PPMU registers may be accessed.

---
 arch/arm/mach-exynos/cpu.c              |    7 ++++++-
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)
Quoted 5 lines

arch/arm/mach-exynos/cpu.c static struct map_desc exynos4_iodesc[] __initdata

Quoted 5 lines
arch/arm/mach-exynos/cpu.c +0 -0
index 90ec247..8bdcba9 100644
@@ -108,7 +108,12 @@ static struct map_desc exynos4_iodesc[] __initdata

=

Quoted 22 lines
Quoted 22 lines
arch/arm/mach-exynos/cpu.c +6 -1
 {
 	}, {
 		.virtual	= (unsigned long)S5P_VA_DMC0,
 		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_4K,
+		.length		= SZ_64K,
+		.type		= MT_DEVICE,
+	}, {
+		.virtual	= (unsigned long)S5P_VA_DMC1,
+		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
+		.length		= SZ_64K,
 		.type		= MT_DEVICE,
 	}, {
arch/arm/mach-exynos/cpu.c +0 -0
 		.virtual	= (unsigned long)S5P_VA_SROMC,
arch/arm/mach- renamed from arch/arm/mach-exynos/include/mach/map.h +0 -0

exynos/include/mach/map.h
index 058541d..870a980 100644

arch/arm/mach-exynos/include/mach/map.h +0 -0
@@ -57,6 +57,7 @@
 #define EXYNOS4_PA_KEYPAD		0x100A0000
 
Quoted 9 lines
Quoted 4 lines

arch/arm/mach-exynos/include/mach/map.h line 60

Quoted 2 lines
arch/arm/mach-exynos/include/mach/map.h +1 -0
 #define EXYNOS4_PA_DMC0			0x10400000
+#define EXYNOS4_PA_DMC1			0x10410000

If required, so just '.length = SZ_128K'?...

Doesn't it more confuse and difficult to use?

Even though there's not much definitions. it defines the offset concept. "arch/arm/mach-exynos/include/mach/regs-mem.h"

OK.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

maintainer
#5 lore raw

PATCH 1/4 ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC.

In reply to MyungJoo Ham

Hi Mr. Kim,

It's maybe missing for v3.3 merge at samsung soc.
Please give your opinion, how to handle it?

If you don't mind it, it can merge it by devfreq.

Thank you,
Kyungmin Park

Quoted 51 lines · MyungJoo Ham

- Add DMC1
- Enlarge address space for DMC from 4k to 64k so that PPMU registers may be accessed.

---
 arch/arm/mach-exynos/cpu.c              |    7 ++++++-
 arch/arm/mach-exynos/include/mach/map.h |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/cpu.c +6 -1
index 90ec247..8bdcba9 100644
@@ -108,7 +108,12 @@ static struct map_desc exynos4_iodesc[] __initdata = {
 	}, {
 		.virtual	= (unsigned long)S5P_VA_DMC0,
 		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_4K,
+		.length		= SZ_64K,
+		.type		= MT_DEVICE,
+	}, {
+		.virtual	= (unsigned long)S5P_VA_DMC1,
+		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
+		.length		= SZ_64K,
 		.type		= MT_DEVICE,
 	}, {
 		.virtual	= (unsigned long)S5P_VA_SROMC,
arch/arm/mach-exynos/include/mach/map.h +1 -1
index 058541d..870a980 100644
@@ -57,6 +57,7 @@
 #define EXYNOS4_PA_KEYPAD		0x100A0000
 
 #define EXYNOS4_PA_DMC0			0x10400000
+#define EXYNOS4_PA_DMC1			0x10410000
 
 #define EXYNOS4_PA_COMBINER		0x10440000
 
--

1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

PATCH 1/4 ARM: EXYNOS4: Add DMC1, allow PPMU access for DMC.

Quoted 4 lines · Kyungmin Park

Hi Mr. Kim,

It's maybe missing for v3.3 merge at samsung soc.
Please give your opinion, how to handle it?

Looks ok to me at the moment, and as a note, I'm sorting it out now.

Quoted 2 lines

If you don't mind it, it can merge it by devfreq.

Hmm, I think, it should be handled in samsung tree to avoid useless conflicts with others. And if you need this in the devfreq tree now, please let me know so that I can create topic branch for it.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Quoted 45 lines · MyungJoo Ham
Quoted 44 lines

- Add DMC1
- Enlarge address space for DMC from 4k to 64k so that PPMU registers may be accessed.

---
  arch/arm/mach-exynos/cpu.c              |    7 ++++++-
  arch/arm/mach-exynos/include/mach/map.h |    1 +
  2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/cpu.c +6 -1
index 90ec247..8bdcba9 100644
@@ -108,7 +108,12 @@ static struct map_desc exynos4_iodesc[] __initdata = {
  	}, {
  		.virtual	= (unsigned long)S5P_VA_DMC0,
  		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC0),
-		.length		= SZ_4K,
+		.length		= SZ_64K,
+		.type		= MT_DEVICE,
+	}, {
+		.virtual	= (unsigned long)S5P_VA_DMC1,
+		.pfn		= __phys_to_pfn(EXYNOS4_PA_DMC1),
+		.length		= SZ_64K,
  		.type		= MT_DEVICE,
  	}, {
  		.virtual	= (unsigned long)S5P_VA_SROMC,
arch/arm/mach-exynos/include/mach/map.h +1 -1
index 058541d..870a980 100644
@@ -57,6 +57,7 @@
  #define EXYNOS4_PA_KEYPAD		0x100A0000
 
  #define EXYNOS4_PA_DMC0			0x10400000
+#define EXYNOS4_PA_DMC1			0x10410000
 
  #define EXYNOS4_PA_COMBINER		0x10440000
 
--

1.7.4.1

author maintainer
#7 lore raw

PATCH 2/4 PM/Devfreq: Add Exynos4210-bus device DVFS driver.

In reply to MyungJoo Ham

Exynos4210-memorybus device driver add DVFS capability for Exynos4210-Bus (memory). The driver monitors PPMU counters of memory controllers and adjusts operating frequencies and voltages with OPP.

Dependency (CONFIG_EXYNOS_ASV):
Exynos4210 ASV driver has been posted in the mailing list; however, it si not yet upstreamed. Although the current revision of Exynos4210 ASV patch does not contain "CONFIG_EXYNOS_ASV", we have added the symbol to hide the dependent from compilers for now.

However, enabling ASV is essential in most Exynos4210 chips to reduce the power consumption of Exynos4210 because without ASV, this Devfreq driver assumes the worst case scenario, which consumes more power.

---
 drivers/devfreq/Kconfig                |   12 +
 drivers/devfreq/Makefile               |    3 +
 drivers/devfreq/exynos4210_memorybus.c |  636 ++++++++++++++++++++++++++++++++
 3 files changed, 651 insertions(+), 0 deletions(-)
 create mode 100644 drivers/devfreq/exynos4210_memorybus.c
drivers/devfreq/Kconfig +12 -0
index 8f04910..5b1b252 100644
@@ -65,4 +65,16 @@ config DEVFREQ_GOV_USERSPACE
 
 comment "DEVFREQ Drivers"
 
+config ARM_EXYNOS4210_MEMORYBUS_DEVFREQ
+	bool "ARM Exynos4210 Memory Bus DEVFREQ Driver"
+	depends on CPU_EXYNOS4210
+	select ARCH_HAS_OPP
+	select DEVFREQ_GOV_SIMPLE_ONDEMAND
+	help
+	  This adds the DEVFREQ driver for Exynos4210 memory bus.
+	  This driver is supposed to support busses of other Exynos4 series
+	  SoCs as well; however, for now, this driver supports Exynos4210
+	  only. It reads PPMU counters of memory controllers and adjusts
+	  the operating frequencies and voltages with OPP support.
+
 endif # PM_DEVFREQ
drivers/devfreq/Makefile +3 -0
index 4564a89..f002de5 100644
@@ -3,3 +3,6 @@ obj-$(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND)	+= governor_simpleondemand.o
 obj-$(CONFIG_DEVFREQ_GOV_PERFORMANCE)	+= governor_performance.o
 obj-$(CONFIG_DEVFREQ_GOV_POWERSAVE)	+= governor_powersave.o
 obj-$(CONFIG_DEVFREQ_GOV_USERSPACE)	+= governor_userspace.o
+
+# DEVFREQ Drivers
+obj-$(CONFIG_ARM_EXYNOS4210_MEMORYBUS_DEVFREQ)	+= exynos4210_memorybus.o
drivers/devfreq/exynos4210_memorybus.c new file +636 -0

636 lines not on this page · raw message

Signature · 1 line
1.7.4.1
author maintainer
#8 lore raw

PATCH 3/4 ARM Exynos4210-Nuri: remove compiler errors

In reply to MyungJoo Ham
---
 arch/arm/mach-exynos/mach-nuri.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/mach-nuri.c +2 -0
index 236bbe1..4cef1fb 100644
@@ -11,6 +11,8 @@
 #include <linux/platform_device.h>
 #include <linux/serial_core.h>
 #include <linux/input.h>
+#include <linux/irq.h>
+#include <linux/export.h>
 #include <linux/i2c.h>
 #include <linux/i2c/atmel_mxt_ts.h>
 #include <linux/i2c-gpio.h>
Signature · 1 line
1.7.4.1
#9 lore raw

PATCH 3/4 ARM Exynos4210-Nuri: remove compiler errors

Quoted 1 line · MyungJoo Hamm

What's the 'compiler errors'?

And I don't know why this patch included in this series, maybe this should be separated from this series?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Quoted 22 lines
---
 arch/arm/mach-exynos/mach-nuri.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/mach- renamed from arch/arm/mach-exynos/mach-nuri.c +0 -0

nuri.c
index 236bbe1..4cef1fb 100644

arch/arm/mach-exynos/mach-nuri.c +2 -1
@@ -11,6 +11,8 @@
 #include <linux/platform_device.h>
 #include <linux/serial_core.h>
 #include <linux/input.h>
+#include <linux/irq.h>
+#include <linux/export.h>
 #include <linux/i2c.h>
 #include <linux/i2c/atmel_mxt_ts.h>
 #include <linux/i2c-gpio.h>
--

1.7.4.1

author maintainer
#10 lore raw

PATCH 3/4 ARM Exynos4210-Nuri: remove compiler errors

Quoted 6 lines · Kukjin Kim
Quoted 1 line · MyungJoo Hamm

What's the 'compiler errors'?

And I don't know why this patch included in this series, maybe this should be separated from this series?

The error is:
arch/arm/mach-exynos/mach-nuri.c: In function ?nuri_power_init?:
arch/arm/mach-exynos/mach-nuri.c:1080:2: error: implicit declaration of function ?irq_alloc_descs?
It is due to the recent changes in some of the header files (they removed some header inclusion from header fiiles).

In this patchset, we are providing a test case (Exynos4210-Nuri) for the device driver and we had to resolve the compiler error first.

Cheers!
MyungJoo

Signature · 2 lines
MyungJoo Ham, Ph.D.
Mobile Software Platform Lab, DMC Business, Samsung Electronics
#11 lore raw

PATCH 3/4 ARM Exynos4210-Nuri: remove compiler errors

Quoted 6 lines · MyungJoo Ham
Quoted 4 lines · Kukjin Kim
Quoted 1 line · MyungJoo Hamm

What's the 'compiler errors'?

Quoted 8 lines
Quoted 1 line

And I don't know why this patch included in this series, maybe this

should

Quoted 1 line

be separated from this series?

The error is:
arch/arm/mach-exynos/mach-nuri.c: In function 'nuri_power_init':
arch/arm/mach-exynos/mach-nuri.c:1080:2: error: implicit declaration of function 'irq_alloc_descs'

Well, I couldn't find the 'irq_alloc_descs' at the arch/arm/mach-exynos/mach-nuri.c file in my tree and linux-next. Maybe you missed submitting some patches?

And I don't know why inclusion of <linux/export.h> is needed for 'irq_alloc_descs'...

Quoted 3 lines

It is due to the recent changes in some of the header files (they removed some header inclusion from header fiiles).

I think, if this is required, this fix should be separated because the build error what you said will be happened without this series...

Quoted 3 lines

In this patchset, we are providing a test case (Exynos4210-Nuri) for the device driver and we had to resolve the compiler error first.

If so, yes, firstly that should be fixed...but now don't we need this?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#12 lore raw

PATCH 3/4 ARM Exynos4210-Nuri: remove compiler errors

Quoted 34 lines · Kukjin Kim
Quoted 6 lines · MyungJoo Ham
Quoted 4 lines · Kukjin Kim
Quoted 1 line · MyungJoo Hamm

What's the 'compiler errors'?

Quoted 8 lines
Quoted 1 line

And I don't know why this patch included in this series, maybe this

should

Quoted 1 line

be separated from this series?

The error is:
arch/arm/mach-exynos/mach-nuri.c: In function 'nuri_power_init':
arch/arm/mach-exynos/mach-nuri.c:1080:2: error: implicit declaration of function 'irq_alloc_descs'

Well, I couldn't find the 'irq_alloc_descs' at the arch/arm/mach-exynos/mach-nuri.c file in my tree and linux-next. Maybe you missed submitting some patches?

And I don't know why inclusion of <linux/export.h> is needed for 'irq_alloc_descs'...

Quoted 3 lines

It is due to the recent changes in some of the header files (they removed some header inclusion from header fiiles).

I think, if this is required, this fix should be separated because the build error what you said will be happened without this series...

Quoted 3 lines

In this patchset, we are providing a test case (Exynos4210-Nuri) for the device driver and we had to resolve the compiler error first.

If so, yes, firstly that should be fixed...but now don't we need this?

Quoted 8 lines

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Ah.. as you've mentioned, the compiler error is found to be related with other unmerged patches (sparse IRQ). Please never mind this patch. This (patch 3/4) should be dropped from this patchset.

Thank you.

Cheers!
MyungJoo

Signature · 2 lines
MyungJoo Ham, Ph.D.
Mobile Software Platform Lab, DMC Business, Samsung Electronics
author maintainer
#13 lore raw

PATCH 4/4 ARM Exynos4210-Nuri: support Exynos4210-bus Devfreq driver.

In reply to MyungJoo Ham

Support varying voltages:
- GPIODVS for Buck2 is removed.
- Voltage ragne for Buck2 is widen.

Support Buck2 regulator for Exynos4210-bus devfreq driver:
- Added device name for buck2 regulator
- Added exynos4210-busfreq platform device fro Nuri board.

---
 arch/arm/mach-exynos/mach-nuri.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
arch/arm/mach-exynos/mach-nuri.c +8 -3
index 4cef1fb..dc4cc1d 100644
@@ -436,7 +436,7 @@ static struct regulator_consumer_supply __initdata max8997_buck1_[] = {
 	REGULATOR_SUPPLY("vdd_arm", NULL), /* CPUFREQ */
 };
 static struct regulator_consumer_supply __initdata max8997_buck2_[] = {
-	REGULATOR_SUPPLY("vdd_int", NULL), /* CPUFREQ */
+	REGULATOR_SUPPLY("vdd_int", "exynos4210-busfreq.0"), /* CPUFREQ */
 };
 static struct regulator_consumer_supply __initdata max8997_buck3_[] = {
 	REGULATOR_SUPPLY("vdd", "mali_dev.0"), /* G3D of Exynos 4 */
@@ -747,7 +747,7 @@ static struct regulator_init_data __initdata max8997_buck2_data = {
 	.constraints	= {
 		.name		= "VINT_1.1V_C210",
 		.min_uV		= 900000,
-		.max_uV		= 1100000,
+		.max_uV		= 1200000,
 		.valid_ops_mask	= REGULATOR_CHANGE_VOLTAGE,
 		.always_on	= 1,
 		.state_mem	= {
@@ -962,7 +962,6 @@ static struct max8997_platform_data __initdata nuri_max8997_pdata = {
 	.regulators		= nuri_max8997_regulators,
 
 	.buck125_gpios = { EXYNOS4_GPX0(5), EXYNOS4_GPX0(6), EXYNOS4_GPL0(0) },
-	.buck2_gpiodvs = true,
 
 	.buck1_voltage[0] = 1350000, /* 1.35V */
 	.buck1_voltage[1] = 1300000, /* 1.3V */
@@ -1244,6 +1243,11 @@ static struct s3c2410_platform_i2c nuri_i2c0_platdata __initdata = {
 	.sda_delay	= 200,
 };
 
+/* DEVFREQ controlling memory/bus */
+static struct platform_device exynos4_bus_devfreq = {
+	.name			= "exynos4210-busfreq",
+};
+
 static struct platform_device *nuri_devices[] __initdata = {
 	/* Samsung Platform Devices */
 	&s3c_device_i2c5, /* PMIC should initialize first */
@@ -1281,6 +1285,7 @@ static struct platform_device *nuri_devices[] __initdata = {
 	&nuri_max8903_device,
 	&cam_vdda_fixed_rdev,
 	&cam_8m_12v_fixed_rdev,
+	&exynos4_bus_devfreq,
 };
 
 static void __init nuri_map_io(void)
Signature · 1 line
1.7.4.1