Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-06 Thread Anatolij Gustschin
Hello Heiko,

On Mon, 06 Dec 2010 08:30:37 +0100
Heiko Schocher h...@denx.de wrote:

 Hello Wolfram,
 
 Wolfram Sang wrote:
  On Sat, Dec 04, 2010 at 09:21:54AM +0100, Heiko Schocher wrote:
  
  There shall be only one mpc5200-defconfig. Does the genric one work with 
  your
  board?
 
 Just tried, mpc5200_defconfig works for me, but...
 
 ... I miss there the LM81 and RTC DS1374 support ... and in another
 patchset from me, I add SM501 support for this board ... also
 for example, I don;t need CONFIG_FB_RADEON*, CONFIG_SPI* defines
 
 Hmm.. I understand that maintaining the board_defconfigs is a nightmare.
 Just a fast thought (I am not a kconfig expert):
 
 As there is a mpc5200_defconfig, couldn;t we get rid of the board
 defconfig(s), and add instead a possibility to store only the changes
 against the mpc5200_defconfig in a file? That would save a lot of unneeded
 lines, and maintaining would be easier as common 5200 config options
 are stored in mpc5200_defconfig ... and a make board_settings would do:

You can save a reduced config file in ./defconfig by running
make savedefconfig. This ./defconfig file can also be used as a
board config file in arch/powerpc/configs/52xx/. Look e.g. at the
config files under arch/powerpc/configs/52xx/.

Anatolij
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-06 Thread Heiko Schocher
Hello Anatolij,

Anatolij Gustschin wrote:
 On Mon, 06 Dec 2010 08:30:37 +0100
 Heiko Schocher h...@denx.de wrote:
 
 Hello Wolfram,

 Wolfram Sang wrote:
 On Sat, Dec 04, 2010 at 09:21:54AM +0100, Heiko Schocher wrote:

 There shall be only one mpc5200-defconfig. Does the genric one work with 
 your
 board?
 Just tried, mpc5200_defconfig works for me, but...

 ... I miss there the LM81 and RTC DS1374 support ... and in another
 patchset from me, I add SM501 support for this board ... also
 for example, I don;t need CONFIG_FB_RADEON*, CONFIG_SPI* defines

 Hmm.. I understand that maintaining the board_defconfigs is a nightmare.
 Just a fast thought (I am not a kconfig expert):

 As there is a mpc5200_defconfig, couldn;t we get rid of the board
 defconfig(s), and add instead a possibility to store only the changes
 against the mpc5200_defconfig in a file? That would save a lot of unneeded
 lines, and maintaining would be easier as common 5200 config options
 are stored in mpc5200_defconfig ... and a make board_settings would do:
 
 You can save a reduced config file in ./defconfig by running
 make savedefconfig. This ./defconfig file can also be used as a
 board config file in arch/powerpc/configs/52xx/. Look e.g. at the
 config files under arch/powerpc/configs/52xx/.

Ah, Ok, great.

If such a file is accepted in mainline, I make a v2 post.

bye,
Heiko
-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-06 Thread Wolfram Sang
On Mon, Dec 06, 2010 at 10:13:00AM +0100, Heiko Schocher wrote:
 If such a file is accepted in mainline, I make a v2 post.

===

commit 0a0a5af30b9831e4f049610b5a2d9d5108ff027a
Author: Grant Likely grant.lik...@secretlab.ca
Date:   Mon Jan 21 11:22:22 2008 -0700

[POWERPC] mpc5200: merge defconfigs for all mpc5200 boards

There is no reason to have separate defconfigs for each mpc5200 board.
Instead, here is a common defconfig that can be used for all supported
platforms.

Merging the defconfigs means there are fewer configuration to test when
compile testing all of arch/powerpc and should make support easier.

Supported boards:
Lite5200(b), Efika, TQM5200, CM5200, MotionPro

Signed-off-by: Grant Likely grant.lik...@secretlab.ca

===

A defconfig which brings the board up is good enough. Specific projects tend to
have specialized configs anyhow.

Regards,

   Wolfram

-- 
Pengutronix e.K.   | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/  |


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-06 Thread Heiko Schocher
Hello Wolfram,

Wolfram Sang wrote:
 On Mon, Dec 06, 2010 at 10:13:00AM +0100, Heiko Schocher wrote:
 If such a file is accepted in mainline, I make a v2 post.
 
 ===
 
 commit 0a0a5af30b9831e4f049610b5a2d9d5108ff027a
 Author: Grant Likely grant.lik...@secretlab.ca
 Date:   Mon Jan 21 11:22:22 2008 -0700
 
 [POWERPC] mpc5200: merge defconfigs for all mpc5200 boards
 
 There is no reason to have separate defconfigs for each mpc5200 board.
 Instead, here is a common defconfig that can be used for all supported
 platforms.
 
 Merging the defconfigs means there are fewer configuration to test when
 compile testing all of arch/powerpc and should make support easier.
 
 Supported boards:
 Lite5200(b), Efika, TQM5200, CM5200, MotionPro
 
 Signed-off-by: Grant Likely grant.lik...@secretlab.ca
 
 ===
 
 A defconfig which brings the board up is good enough. Specific projects tend 
 to
 have specialized configs anyhow.

Hmm.. applies this also to the DTS?

bye,
Heiko
-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-06 Thread Wolfram Sang

 Wolfram Sang wrote:
  On Mon, Dec 06, 2010 at 10:13:00AM +0100, Heiko Schocher wrote:
  If such a file is accepted in mainline, I make a v2 post.
  
  ===
  
  commit 0a0a5af30b9831e4f049610b5a2d9d5108ff027a
  Author: Grant Likely grant.lik...@secretlab.ca
  Date:   Mon Jan 21 11:22:22 2008 -0700
  
  [POWERPC] mpc5200: merge defconfigs for all mpc5200 boards
  
  There is no reason to have separate defconfigs for each mpc5200 board.
  Instead, here is a common defconfig that can be used for all supported
  platforms.
  
  Merging the defconfigs means there are fewer configuration to test when
  compile testing all of arch/powerpc and should make support easier.
  
  Supported boards:
  Lite5200(b), Efika, TQM5200, CM5200, MotionPro
  
  Signed-off-by: Grant Likely grant.lik...@secretlab.ca
  
  ===
  
  A defconfig which brings the board up is good enough. Specific projects 
  tend to
  have specialized configs anyhow.
 
 Hmm.. applies this also to the DTS?

How should that work? :) There is one kernel with all needed options
(the optional ones being modules) and the DTS selects what is needed.

-- 
Pengutronix e.K.   | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/  |


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-06 Thread Heiko Schocher
Hello Wolfram,

Wolfram Sang wrote:
 Wolfram Sang wrote:
 On Mon, Dec 06, 2010 at 10:13:00AM +0100, Heiko Schocher wrote:
 If such a file is accepted in mainline, I make a v2 post.
 ===

 commit 0a0a5af30b9831e4f049610b5a2d9d5108ff027a
 Author: Grant Likely grant.lik...@secretlab.ca
 Date:   Mon Jan 21 11:22:22 2008 -0700

 [POWERPC] mpc5200: merge defconfigs for all mpc5200 boards
 
 There is no reason to have separate defconfigs for each mpc5200 board.
 Instead, here is a common defconfig that can be used for all supported
 platforms.
 
 Merging the defconfigs means there are fewer configuration to test when
 compile testing all of arch/powerpc and should make support easier.
 
 Supported boards:
 Lite5200(b), Efika, TQM5200, CM5200, MotionPro
 
 Signed-off-by: Grant Likely grant.lik...@secretlab.ca

 ===

 A defconfig which brings the board up is good enough. Specific projects 
 tend to
 have specialized configs anyhow.
 Hmm.. applies this also to the DTS?
 
 How should that work? :) There is one kernel with all needed options
 (the optional ones being modules) and the DTS selects what is needed.

Ok, so I post a v2 without defconfig patch.

bye,
Heiko
-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-05 Thread Heiko Schocher
Hello Wolfram,

Wolfram Sang wrote:
 On Sat, Dec 04, 2010 at 09:21:54AM +0100, Heiko Schocher wrote:
 
 There shall be only one mpc5200-defconfig. Does the genric one work with your
 board?

Just tried, mpc5200_defconfig works for me, but...

... I miss there the LM81 and RTC DS1374 support ... and in another
patchset from me, I add SM501 support for this board ... also
for example, I don;t need CONFIG_FB_RADEON*, CONFIG_SPI* defines

Hmm.. I understand that maintaining the board_defconfigs is a nightmare.
Just a fast thought (I am not a kconfig expert):

As there is a mpc5200_defconfig, couldn;t we get rid of the board
defconfig(s), and add instead a possibility to store only the changes
against the mpc5200_defconfig in a file? That would save a lot of unneeded
lines, and maintaining would be easier as common 5200 config options
are stored in mpc5200_defconfig ... and a make board_settings would do:

- call make mpc5200_defconfig
- process differences stored in board_settings
  (something like menuconfig, just not interactive)

(we could generalize that approach, because I think, all defconfigs
 are not easy to maintain, if we say first line is always the defconfig
 we call, following lines are options different to that ...)

Example for the charon board charon_settings file:

call mpc5200_defconfig  // call make mpc5200_defconfig
enable SENSORS_LM80 // call something like make menuconfig -e SENSORS_LM80
disable FB_RADEON   // call something like make menuconfig -d FB_RADEON
disable SPI
disable RTC_DRV_DS1307
enable RTC_DRV_DS1374
...

bye,
Heiko
-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-04 Thread Heiko Schocher
Signed-off-by: Heiko Schocher h...@denx.de
---
based against 2.6.37-rc4

./scripts/checkpatch.pl 0002-powerpc-5200-add-defconfig-for-charon-board.patch 
lems and is ready for
total: 0 errors, 0 warnings, 1529 lines checked

0002-powerpc-5200-add-defconfig-for-charon-board.patch has no obvious style 
problems and is ready for submission.

 arch/powerpc/configs/52xx/charon_defconfig | 1529 
 1 files changed, 1529 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/configs/52xx/charon_defconfig

diff --git a/arch/powerpc/configs/52xx/charon_defconfig 
b/arch/powerpc/configs/52xx/charon_defconfig
new file mode 100644
index 000..edf3d40
--- /dev/null
+++ b/arch/powerpc/configs/52xx/charon_defconfig
@@ -0,0 +1,1529 @@
+#
+# Automatically generated make config: don't edit
+# Linux/powerpc 2.6.37-rc4 Kernel Configuration
+# Tue Nov 30 12:24:32 2010
+#
+# CONFIG_PPC64 is not set
+
+#
+# Processor support
+#
+CONFIG_PPC_BOOK3S_32=y
+# CONFIG_PPC_85xx is not set
+# CONFIG_PPC_8xx is not set
+# CONFIG_40x is not set
+# CONFIG_44x is not set
+# CONFIG_E200 is not set
+CONFIG_PPC_BOOK3S=y
+CONFIG_6xx=y
+CONFIG_PPC_FPU=y
+# CONFIG_ALTIVEC is not set
+CONFIG_PPC_STD_MMU=y
+CONFIG_PPC_STD_MMU_32=y
+# CONFIG_PPC_MM_SLICES is not set
+CONFIG_PPC_HAVE_PMU_SUPPORT=y
+# CONFIG_SMP is not set
+CONFIG_PPC32=y
+CONFIG_32BIT=y
+CONFIG_WORD_SIZE=32
+# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set
+CONFIG_MMU=y
+CONFIG_GENERIC_CMOS_UPDATE=y
+CONFIG_GENERIC_TIME_VSYSCALL=y
+CONFIG_GENERIC_CLOCKEVENTS=y
+CONFIG_GENERIC_HARDIRQS=y
+CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
+# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set
+# CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK is not set
+CONFIG_IRQ_PER_CPU=y
+CONFIG_NR_IRQS=512
+CONFIG_STACKTRACE_SUPPORT=y
+CONFIG_HAVE_LATENCYTOP_SUPPORT=y
+CONFIG_TRACE_IRQFLAGS_SUPPORT=y
+CONFIG_LOCKDEP_SUPPORT=y
+CONFIG_RWSEM_XCHGADD_ALGORITHM=y
+CONFIG_ARCH_HAS_ILOG2_U32=y
+CONFIG_GENERIC_HWEIGHT=y
+CONFIG_GENERIC_FIND_NEXT_BIT=y
+# CONFIG_ARCH_NO_VIRT_TO_BUS is not set
+CONFIG_PPC=y
+CONFIG_EARLY_PRINTK=y
+CONFIG_GENERIC_NVRAM=y
+CONFIG_SCHED_OMIT_FRAME_POINTER=y
+CONFIG_ARCH_MAY_HAVE_PC_FDC=y
+CONFIG_PPC_OF=y
+# CONFIG_PPC_UDBG_16550 is not set
+# CONFIG_GENERIC_TBSYNC is not set
+CONFIG_AUDIT_ARCH=y
+CONFIG_GENERIC_BUG=y
+CONFIG_DEFAULT_UIMAGE=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+# CONFIG_PPC_DCR_NATIVE is not set
+# CONFIG_PPC_DCR_MMIO is not set
+CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
+CONFIG_CONSTRUCTORS=y
+CONFIG_HAVE_IRQ_WORK=y
+
+#
+# General setup
+#
+CONFIG_EXPERIMENTAL=y
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_INIT_ENV_ARG_LIMIT=32
+CONFIG_CROSS_COMPILE=
+CONFIG_LOCALVERSION=
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_SWAP=y
+CONFIG_SYSVIPC=y
+CONFIG_SYSVIPC_SYSCTL=y
+# CONFIG_POSIX_MQUEUE is not set
+# CONFIG_BSD_PROCESS_ACCT is not set
+# CONFIG_TASKSTATS is not set
+# CONFIG_AUDIT is not set
+# CONFIG_HAVE_GENERIC_HARDIRQS is not set
+CONFIG_SPARSE_IRQ=y
+
+#
+# RCU Subsystem
+#
+CONFIG_TINY_RCU=y
+# CONFIG_PREEMPT_RCU is not set
+# CONFIG_TREE_RCU_TRACE is not set
+# CONFIG_IKCONFIG is not set
+CONFIG_LOG_BUF_SHIFT=14
+# CONFIG_CGROUPS is not set
+# CONFIG_NAMESPACES is not set
+# CONFIG_SYSFS_DEPRECATED is not set
+# CONFIG_RELAY is not set
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE=
+CONFIG_RD_GZIP=y
+# CONFIG_RD_BZIP2 is not set
+# CONFIG_RD_LZMA is not set
+# CONFIG_RD_LZO is not set
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+CONFIG_SYSCTL=y
+CONFIG_ANON_INODES=y
+CONFIG_EMBEDDED=y
+# CONFIG_SYSCTL_SYSCALL is not set
+# CONFIG_KALLSYMS is not set
+CONFIG_HOTPLUG=y
+CONFIG_PRINTK=y
+CONFIG_BUG=y
+CONFIG_ELF_CORE=y
+CONFIG_BASE_FULL=y
+CONFIG_FUTEX=y
+# CONFIG_EPOLL is not set
+CONFIG_SIGNALFD=y
+CONFIG_TIMERFD=y
+CONFIG_EVENTFD=y
+CONFIG_SHMEM=y
+CONFIG_AIO=y
+CONFIG_HAVE_PERF_EVENTS=y
+
+#
+# Kernel Performance Events And Counters
+#
+# CONFIG_PERF_EVENTS is not set
+# CONFIG_PERF_COUNTERS is not set
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_SLUB_DEBUG=y
+CONFIG_COMPAT_BRK=y
+# CONFIG_SLAB is not set
+CONFIG_SLUB=y
+# CONFIG_SLOB is not set
+# CONFIG_PROFILING is not set
+CONFIG_HAVE_OPROFILE=y
+# CONFIG_KPROBES is not set
+CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
+CONFIG_HAVE_IOREMAP_PROT=y
+CONFIG_HAVE_KPROBES=y
+CONFIG_HAVE_KRETPROBES=y
+CONFIG_HAVE_ARCH_TRACEHOOK=y
+CONFIG_HAVE_DMA_ATTRS=y
+CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
+CONFIG_HAVE_CLK=y
+CONFIG_HAVE_DMA_API_DEBUG=y
+
+#
+# GCOV-based kernel profiling
+#
+# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
+CONFIG_SLABINFO=y
+CONFIG_RT_MUTEXES=y
+CONFIG_BASE_SMALL=0
+CONFIG_MODULES=y
+# CONFIG_MODULE_FORCE_LOAD is not set
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_MODULE_FORCE_UNLOAD is not set
+CONFIG_MODVERSIONS=y
+# CONFIG_MODULE_SRCVERSION_ALL is not set
+CONFIG_BLOCK=y
+CONFIG_LBDAF=y
+# CONFIG_BLK_DEV_BSG is not set
+# CONFIG_BLK_DEV_INTEGRITY is not set
+
+#
+# IO Schedulers
+#
+CONFIG_IOSCHED_NOOP=y
+CONFIG_IOSCHED_DEADLINE=y
+CONFIG_IOSCHED_CFQ=y
+# 

Re: [PATCH 2/2] powerpc, 5200: add defconfig for charon board

2010-12-04 Thread Wolfram Sang
On Sat, Dec 04, 2010 at 09:21:54AM +0100, Heiko Schocher wrote:

There shall be only one mpc5200-defconfig. Does the genric one work with your
board?

-- 
Pengutronix e.K.   | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/  |


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev