Skip to contentSkip to conversation

ARM: mach-shmobile: defconfig updates

PATCH New Simon Horman 3 participants 8 messages Jan 11, 2013 – Jan 14, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ARM: mach-shmobile: defconfig updates

Hi,

I would like to propose the following defconfig updates for mach-shmobile for 3.9. I will send a pull-request containing them after the forthcoming long weekend if there are no objections in the meantime.

#1 lore raw

PATCH 1/5 ARM: mach-shmobile: mackerel: update defconfig

* Enable ARM_APPENDED_DTB

Typically the bootloader of a mackerel board does not support DT so this option is useful

* Add "rw" to command line

This appears to be necessary for a successful NFS-root boot

* Remove memchunk from kernel command line,
it is not used outside of arch/sh

* Move command line to dts

This brings us one small step closer to sharing defconfig between mackerel and other boards

---
 arch/arm/boot/dts/sh7372-mackerel.dts |    4 ++++
 arch/arm/configs/mackerel_defconfig   |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sh7372-mackerel.dts +4 -0
index 286f0ca..2623de8 100644
@@ -15,6 +15,10 @@
 	model = "Mackerel (AP4 EVM 2nd)";
 	compatible = "renesas,mackerel";
 
+	chosen {
+		bootargs = "console=tty0, console=ttySC0,115200 earlyprintk=sh-sci.0,115200 root=/dev/nfs nfsroot=,tcp,v3 ip=dhcp mem=240m rw";
+	};
+
 	memory {
 		device_type = "memory";
 		reg = <0x40000000 0x10000000>;
arch/arm/configs/mackerel_defconfig +1 -1
index 2098ce1..e6881ac 100644
@@ -23,7 +23,7 @@ CONFIG_AEABI=y
 CONFIG_FORCE_MAX_ZONEORDER=15
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="console=tty0, console=ttySC0,115200 earlyprintk=sh-sci.0,115200 root=/dev/nfs nfsroot=,tcp,v3 ip=dhcp memchunk.vpu=64m memchunk.veu0=8m memchunk.spu0=2m mem=240m"
+CONFIG_ARM_APPENDED_DTB=y
 CONFIG_KEXEC=y
 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
 CONFIG_PM=y
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/5 ARM: mach-shmobile: fix memory size for kota2_defconfig

In reply to Simon Horman

The CONFIG_MEMORY_SIZE value is interpreted as a 32 bit integer, which makes sense on a system without PAE. It appears that a trailing 0 was appended to the value and after some testing it appears that 0x1e000000 is the correct value.

Without this patch, building kota2_defconfig results in:

/home/arnd/linux-arm/arch/arm/kernel/setup.c:790:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]

---
 arch/arm/configs/kota2_defconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/configs/kota2_defconfig +1 -1
index fa83db1..57ad3d4 100644
@@ -21,7 +21,7 @@ CONFIG_ARCH_SHMOBILE=y
 CONFIG_KEYBOARD_GPIO_POLLED=y
 CONFIG_ARCH_SH73A0=y
 CONFIG_MACH_KOTA2=y
-CONFIG_MEMORY_SIZE=0x1e0000000
+CONFIG_MEMORY_SIZE=0x1e000000
 # CONFIG_SH_TIMER_TMU is not set
 # CONFIG_SWP_EMULATE is not set
 CONFIG_CPU_BPREDICT_DISABLE=y
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 2/5 ARM: mach-shmobile: fix memory size for kota2_defconfig

Quoted 5 lines · Simon Horman

The CONFIG_MEMORY_SIZE value is interpreted as a 32 bit integer, which makes sense on a system without PAE. It appears that a trailing 0 was appended to the value and after some testing it appears that 0x1e000000 is the correct value.

Quoted 7 lines

Without this patch, building kota2_defconfig results in:

/home/arnd/linux-arm/arch/arm/kernel/setup.c:790:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]

Or is this the only fix you have right now, so I should just apply it directly?

-Olof

#4 lore raw

PATCH 2/5 ARM: mach-shmobile: fix memory size for kota2_defconfig

Quoted 11 lines · Olof Johansson
Quoted 9 lines · Simon Horman

The CONFIG_MEMORY_SIZE value is interpreted as a 32 bit integer, which makes sense on a system without PAE. It appears that a trailing 0 was appended to the value and after some testing it appears that 0x1e000000 is the correct value.

Without this patch, building kota2_defconfig results in:

/home/arnd/linux-arm/arch/arm/kernel/setup.c:790:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]

Quoted 7 lines
Quoted 3 lines

Or is this the only fix you have right now, so I should just apply it directly?

As far as I know the change does not appear to have any affect
at run-time, at least for the default config. So there is no particular rush. I'll include this as part of a pull request a little later today.

#5 lore raw

PATCH 3/5 ARM: mach-shmobile: kzm9g: defconfig update

In reply to Simon Horman

* Enable ARM_APPENDED_DTB

Typically the bootloader of a kzm9g board does not support DT so this option is useful.

* Use voltage regulators by default

* Move command line to dts

This brings us one small step closer to sharing defconfig between kzm9g and other boards

---
 arch/arm/boot/dts/sh73a0-kzm9g.dts |    4 ++++
 arch/arm/configs/kzm9g_defconfig   |    4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sh73a0-kzm9g.dts +4 -0
index bcb9119..9a43879 100644
@@ -15,6 +15,10 @@
 	model = "KZM-A9-GT";
 	compatible = "renesas,kzm9g", "renesas,sh73a0";
 
+	chosen {
+		bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200";
+	};
+
 	memory {
 		device_type = "memory";
 		reg = <0x41000000 0x1e800000>;
arch/arm/configs/kzm9g_defconfig +3 -1
index afbae28..670c3b6 100644
@@ -39,7 +39,7 @@ CONFIG_AEABI=y
 CONFIG_HIGHMEM=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200"
+CONFIG_ARM_APPENDED_DTB=y
 CONFIG_KEXEC=y
 CONFIG_VFP=y
 CONFIG_NEON=y
@@ -85,6 +85,8 @@ CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_SH_MOBILE=y
 CONFIG_GPIO_PCF857X=y
 # CONFIG_HWMON is not set
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_DUMMY=y
 CONFIG_FB=y
 CONFIG_FB_SH_MOBILE_LCDC=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH 4/5 ARM: mach-shmobile: armadillo: update defconfig

In reply to Simon Horman

* Enable ARM_APPENDED_DTB

Typically the bootloader of an armadillo board does not support DT so this option is useful.

* Do not disable SUSPEND

Suspend seems to work fine on the armadillo

* Enable PM_RUNTIME

This also seems to work fine.

* Move command line to dts

This brings us one small step closer to sharing defconfig between armadillo and other boards

---
 arch/arm/boot/dts/r8a7740-armadillo800eva.dts |    4 ++++
 arch/arm/configs/armadillo800eva_defconfig    |    5 ++---
 2 files changed, 6 insertions(+), 3 deletions(-)
arch/arm/boot/dts/r8a7740-armadillo800eva.dts +4 -0
index a7505a9..52cfead 100644
@@ -15,6 +15,10 @@
 	model = "armadillo 800 eva";
 	compatible = "renesas,armadillo800eva";
 
+	chosen {
+		bootargs = "console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096 rw";
+	};
+
 	memory {
 		device_type = "memory";
 		reg = <0x40000000 0x20000000>;
arch/arm/configs/armadillo800eva_defconfig +2 -3
index 2e1a825..f9e2701 100644
@@ -34,12 +34,11 @@ CONFIG_AEABI=y
 CONFIG_FORCE_MAX_ZONEORDER=13
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096 rw"
-CONFIG_CMDLINE_FORCE=y
+CONFIG_ARM_APPENDED_DTB=y
 CONFIG_KEXEC=y
 CONFIG_VFP=y
 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
-# CONFIG_SUSPEND is not set
+CONFIG_PM_RUNTIME=y
 CONFIG_NET=y
 CONFIG_PACKET=y
 CONFIG_UNIX=y
Signature · 1 line
1.7.10.4
#7 lore raw

PATCH 5/5 ARM: mach-shmobile: kzm9d: update defconfig

In reply to Simon Horman

* Do not disable SUSPEND

Suspend seems to work fine on the kzm9d.

This is part of an effort reduce differences between mach-shmobile defconfigs with a view to using a common defconfig.

* Enable PM_RUNTIME

This also seems to work fine on the kzm9d.

This is part of an effort reduce differences between mach-shmobile defconfigs with a view to using a common defconfig.

* Move kernel command line from defconfig to dts.

This brings us one small step closer to sharing defconfig between kzm9d and other boards.

---
 arch/arm/boot/dts/emev2-kzm9d.dts |    2 +-
 arch/arm/configs/kzm9d_defconfig  |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/emev2-kzm9d.dts +1 -1
index 297e3ba..b9b3241 100644
@@ -21,6 +21,6 @@
 	};
 
 	chosen {
-		bootargs = "console=ttyS1,115200n81";
+		bootargs = "console=tty0 console=ttyS1,115200n81 earlyprintk=serial8250-em.1,115200n81 mem=128M at 0x40000000 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096";
 	};
 };
arch/arm/configs/kzm9d_defconfig +1 -3
index 8c49df6..6c37f4a 100644
@@ -32,11 +32,9 @@ CONFIG_FORCE_MAX_ZONEORDER=13
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
 CONFIG_ARM_APPENDED_DTB=y
-CONFIG_CMDLINE="console=tty0 console=ttyS1,115200n81 earlyprintk=serial8250-em.1,115200n81 mem=128M at 0x40000000 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096"
-CONFIG_CMDLINE_FORCE=y
 CONFIG_VFP=y
 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
-# CONFIG_SUSPEND is not set
+CONFIG_PM_RUNTIME=y
 CONFIG_NET=y
 CONFIG_PACKET=y
 CONFIG_UNIX=y
Signature · 1 line
1.7.10.4