[uClinux-dev] [PATCH] m68knommu: ColdFire 5271 only has a single FEC controller

2015-03-17 Thread gerg
From: Greg Ungerer g...@uclinux.org The inclusion of multiple FEC ethernet platform devices is based around the FEC address definitions in the platform headers. The ColdFire m527x platform is defining 2 FEC modules, but the 5271 SoC only has a single FEC hardware module. The attempt to probe and

[uClinux-dev] [PATCH] m68knommu: add DMA timer counter to entropy

2014-05-28 Thread gerg
From: Greg Ungerer g...@uclinux.org The ColdFire DMA timer hardware module is a free running counter that is derived from the master system clock. It is effectively a cycle counter, so lets add it to the entropy pool. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH] m68knommu: enable clock when using PIT hardware module

2014-05-28 Thread gerg
From: Greg Ungerer g...@uclinux.org Acquire the SoC clock when using the PIT timer hardware module. It seems to be powered up and enabled by default on most ColdFire SoC, but this just makes sure that is true. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/pit.c |

[uClinux-dev] [PATCH] m68k: merge arch free memory functions into a single function

2012-11-29 Thread gerg
From: Greg Ungerer g...@uclinux.org We have separate architecture functions for freeing the initrd memory, and for freeing the init sections. But they are essentially the same code, they are doing exactly the same thing. Create a common local arch free memory function and make the current users

[uClinux-dev] [PATCH 1/4] m68knommu: create and use a common M53xx ColdFire class of CPUs

2012-11-18 Thread gerg
From: Greg Ungerer g...@uclinux.org The current CONFIG_M532x support definitions are actually common to a larger set of version 3 ColdFire CPU types. In the future we want to add support for the 537x family. It is very similar to the 532x internally, and will be able to use most of the same

[uClinux-dev] [PATCH 3/4] m68knommu: add support for the ColdFire 537x family of CPUs

2012-11-18 Thread gerg
From: Greg Ungerer g...@uclinux.org The ColdFire 537x family is very similar internally to the ColdFire 532x family. So with just a little extra configuration we can configure and target them as well. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/Kconfig.cpu |8

[uClinux-dev] [PATCH 4/4] m68knommu: add support for configuring a Freescale M5373EVB board

2012-11-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a configuration switch for supporting the Freescale M5373EVB board. It is based on the newly added ColdFire 537x CPU support. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/Kconfig.machine |7 +++ 1 files changed, 7 insertions(+), 0

[uClinux-dev] [PATCH 00/12] m68knommu: generalize the ColdFire clock support for all CPU types

2012-11-15 Thread gerg
The current Coldfire clock code only really supports those ColdFire CPU types that have the more advanced enable/disable clock hardware support. If we generalize our clock code we can support all types, even those with simpler fixed clock trees. This results in much cleaner and consistent clock

[uClinux-dev] [PATCH 04/12] m68knommu: add clock definitions for 5249 ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 5249 ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m5249.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 05/12] m68knommu: add clock definitions for 525x ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 525x ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m525x.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 08/12] m68knommu: add clock definitions for 528x ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 528x ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m528x.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 07/12] m68knommu: add clock definitions for 527x ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 527x ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m527x.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 10/12] m68knommu: add clock definitions for 5407 ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 5407 ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m5407.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 03/12] m68knommu: add clock definitions for 523x ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 523x ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m523x.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 02/12] m68knommu: add clock definitions for 5206 ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 5206 ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m5206.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 09/12] m68knommu: add clock definitions for 5307 ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 5307 ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m5307.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 01/12] m68knommu: add clock creation support macro for other ColdFire CPUs

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org The clock support code for ColdFire CPUs currently supports those that have the clock control register PPMCR. Expose the struct clk for all CPU types and add a definition for all other ColdFire CPU types. With this we will be able to define simple clock trees

[uClinux-dev] [PATCH 11/12] m68knommu: add clock definitions for 54xx ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a base set of clocks for the 54xx ColdFire CPU types. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m54xx.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 12/12] m68knommu: modify clock code so it can be used by all ColdFire CPU types

2012-11-15 Thread gerg
From: Greg Ungerer g...@uclinux.org The existing clk.c code for ColdFire CPUs has one set of functions to support those CPU types that have selectable clocks (those with a PPMCR register), and a duplicate simpler set for those with static clocks. Modify the clk.c code so there is just one set of

[uClinux-dev] [PATCH] m68k: fix unused variable warning in mempcy.c

2012-10-29 Thread gerg
From: Greg Ungerer g...@uclinux.org When compiling for original 68000 or ColdFire targets you will get the following warning when compiling arch/m68k/lib/memcpy.c: CC arch/m68k/lib/memcpy.o arch/m68k/lib/memcpy.c: In function ‘__builtin_memcpy’: arch/m68k/lib/memcpy.c:13:15: warning:

[uClinux-dev] [PATCH] m68k: remove unused asm/dbg.h

2012-10-28 Thread gerg
From: Greg Ungerer g...@uclinux.org The contents of the m68k asm/dbg.h are never used, remove the file and remove the one reference to it. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/dbg.h |6 -- drivers/tty/serial/68328serial.c |1 - 2 files changed,

[uClinux-dev] [PATCH] m68knommu: merge ColdFire 5249 and 525x definitions

2012-10-21 Thread gerg
From: Greg Ungerer g...@uclinux.org The ColdFire 5249 and 525x family of SoCs are very similar. Most of the internals are the same, and are mapped the same. We can use a single set of peripheral definitions for all of them. So merge the current m5249sim.h and m525xsim.h definitions into a single

[uClinux-dev] [PATCH] m68knommu: add KMAP definitions for non-MMU definitions

2012-10-21 Thread gerg
From: Greg Ungerer g...@uclinux.org To be consistent with the set of MMU definitions we should define KMAP_START and KMAP_END. Future common m68k code will use their values. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/pgtable_no.h |2 ++ 1 files changed, 2

[uClinux-dev] [PATCH] m68knommu: make non-MMU page_to_virt() return a void *

2012-10-21 Thread gerg
From: Greg Ungerer g...@uclinux.org The page_to_virt() macro for m68knommu is currently effectively returning an int type. But the equivilent m68k macro returns a void * virtual address. Modify the non-MMU macro to return a void * as well (using the __va macro). This change will remove compiler

[uClinux-dev] [PATCH 0/5] m68knommu: fix define formating in some ColdFire headers

2012-09-22 Thread gerg
Reformat broken tab alignment on some defines. This makes the format mostly consistent in these files. --- arch/m68k/include/asm/m523xsim.h | 18 +- arch/m68k/include/asm/m5272sim.h |7 --- arch/m68k/include/asm/m527xsim.h | 34 +-

[uClinux-dev] [PATCH 3/5] m68knommu: fix inconsistent formating in ColdFire 527x definitions

2012-09-22 Thread gerg
From: Greg Ungerer g...@uclinux.org Fix tab broken address defines to be consistent with others in this file. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/m527xsim.h | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) diff

[uClinux-dev] [PATCH 1/5] m68knommu: fix inconsistent formating in ColdFire 523x definitions

2012-09-22 Thread gerg
From: Greg Ungerer g...@uclinux.org Fix tab broken address defines to be consistent with others in this file. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/m523xsim.h | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git

[uClinux-dev] [PATCH 00/11] m68knommu: clean up ColdFire Peripheral headers

2012-09-21 Thread gerg
This patch series is a bunch of cleanups and fixes across the ColdFire periperhal header files. Primarily they are: . fix mixed up uses of relative and absolute address . convert hard coded addresses into proper definitions . use consistent names for definitions across different ColdFire types .

[uClinux-dev] [PATCH 02/11] m68knommu: remove unused ColdFire 5282 register definitions

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org There is a bunch of old unused and ugly register definitions in the ColdFire 5282 header. Remove them. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/m528xsim.h | 51 +- 1 files changed, 1

[uClinux-dev] [PATCH 04/11] m68knommu: use definitions for the ColdFire 528x FEC multi-function pins

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org Currently the setup code for the FEC multi-function pins on the ColdFire 528x has the addresses hard coded in the code. Use the register defines that already exist for this. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/coldfire/m528x.c

[uClinux-dev] [PATCH 05/11] m68knommu: remove a lot of unsed definitions for 532x ColdFire

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org There are a lot of unused and uneccessary definitions in the header to support the ColdFire 532x CPU family. Remove the junk. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/m532xsim.h | 1033 +- 1

[uClinux-dev] [PATCH 06/11] m68knommu: modify ColdFire 532x GPIO register definitions to be consistent

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org The ColdFire 532x CPU register definitions for the multi-function setup pins are inconsistently defined compared with other ColdFire parts. Modify the register defintions to be just the addresses, not pointers. This also fixes the erroneous use in one case of

[uClinux-dev] [PATCH 03/11] m68knommu: remove address offsets relative to IPSBAR for ColdFire 527x

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org Remove the last address definitions relative to the IPSBAR peripheral region for the ColdFire 527x family. This involved cleaning up some magic numbers used in the code part, and making them proper register definitions in the 527x specific header. This is part

[uClinux-dev] [PATCH 01/11] m68knommu: fix wrong register offsets used for ColdFire 5272 multi-function pins

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org The registers used to configure and set the multifunction pins on the 5272 ColdFire are defined as absolute addresses. So the use of them does not need to be offset relative to the peripheral region address. Fix two cases of incorrect usage of these addresses.

[uClinux-dev] [PATCH 08/11] m68knommu: move ColdFire slice timer address defiens to 54xx header

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org Move the base address defines of the ColdFire 54xx CPU slice timers into the 54xx specific header (m54xxsim.h). They are CPU specific, and belong with the CPU specific defines. Also make them relative to the MBAR peripheral region, making the define the

[uClinux-dev] [PATCH 07/11] m68knommu: use read/write IO access functions in ColdFire m532x setup code

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org Get rid of the use of local IO access macros and switch to using the standard read*/write* family of access functions for the ColdFire m532x setup code. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/m532xsim.h| 104

[uClinux-dev] [PATCH 10/11] m68knommu: clean up Pin Assignment definitions for the 54xx ColdFire CPU

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org The Pin Assignment register definitions for the ColdFire 54xx CPU family are inconsistently named and defined compared to the other ColdFire part definitions. Rename them with the same prefix as used on other parts, MCFGPIO_PAR_, and make their definitions

[uClinux-dev] [PATCH 11/11] m68knommu: clean up ColdFire 54xx General Timer definitions

2012-09-21 Thread gerg
From: Greg Ungerer g...@uclinux.org Convert the ColdFire 54xx CPU General Timer register address definitions to include the MCF_MBAR peripheral region offset. This makes them consistent with all other 54xx address register definitions (in m54xxsim.h). The goal is to reduce different definitions

[uClinux-dev] [PATCH 4/9] m68knommu: make ColdFire Pin Assignment register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make all definitions of the ColdFire Pin Assignment registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are

[uClinux-dev] [PATCH 1/9] m68knommu: make ColdFire IMR and IPR register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make all definitions of the ColdFire Interrupt Mask and Pending registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some

[uClinux-dev] [PATCH 6/9] m68knommu: make ColdFire Chip Select register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make all definitions of the ColdFire Chip Select registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are relative

[uClinux-dev] [PATCH 8/9] m68knommu: make remaining ColdFire 5272 register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make the remaining definitions of the 5272 ColdFire registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are

[uClinux-dev] [PATCH 5/9] m68knommu: make ColdFire Interrupt Source register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make all definitions of the ColdFire Interrupt Source registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are

[uClinux-dev] [PATCH 2/9] m68knommu: make ColdFire SYPCR and RSR register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make all definitions of the ColdFire Reset and System registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are

[uClinux-dev] [PATCH 3/9] m68knommu: make ColdFire watchdog register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make all definitions of the ColdFire Software watchdog registers absolute addresses. Currently some are relative to the MBAR peripheral region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are

[uClinux-dev] [PATCH 9/9] m68knommu: make ColdFire 5249 MBAR2 register definitions absolute addresses

2012-09-18 Thread gerg
From: Greg Ungerer g...@uclinux.org Make the ColdFire 5249 MBAR peripheral register definitions absolute addresses, instead of offsets into the region. The various ColdFire parts use different methods to address the internal registers, some are absolute, some are relative to peripheral regions

[uClinux-dev] [PATCH] m68k: always set stack frame format for ColdFire on thread start

2012-09-11 Thread gerg
From: Greg Ungerer g...@uclinux.org The stack frame format field needs to be explicitly set on thread creation on ColdFire. For a normal long word aligned user stack pointer the frame format is 0x4. We were doing this for non-MMU ColdFire, but not for the case with MMU enabled. So fix it so we

[uClinux-dev] [PATCH] m68knommu: select CONFIG_HAVE_CLK for ColdFire CPU types

2012-08-03 Thread gerg
From: Greg Ungerer g...@uclinux.org The ColdFire CPU sub-arch has kernel clk code support, so select CONFIG_HAVE_CLK. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/Kconfig.cpu |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/m68k/Kconfig.cpu

[uClinux-dev] [PATCH v2 2/2] mtd: allow uclinux map driver to be used on any ColdFire CPU platform

2012-07-18 Thread gerg
From: Greg Ungerer g...@uclinux.org The uclinux.c map driver has traditionally been used only on non-MMU based systems. But there is no fundamental reason it can't be used on systems running with virtual memory. Some ColdFire CPU based systems now have full paged MMU hardware and can use the

[uClinux-dev] [PATCH 0/3] m68knommu/net: add support for NS8390 based eth controllers on some ColdFire boards

2012-06-28 Thread gerg
This is an updated patch set of the NS8390 eth support for some of the older ColdFire boards. I have broken out the mcfne.h - mcf8390.h file move to its own patch, didn't want to make the actual driver patch any bigger or harder to follow. I also improved the commit log messages a little. The

[uClinux-dev] [PATCH 3/3] m68knommu: platform support for 8390 based ethernet used on some boards

2012-06-28 Thread gerg
From: Greg Ungerer g...@uclinux.org Quite a few of Freescale's older ColdFire development boards used an NS8390 based ethernet interface. Add a platform definition for the resources used by these devices so we can use it on these boards. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 3/4] m68k: add IO access definitions to support PCI on ColdFire platforms

2012-06-28 Thread gerg
From: Greg Ungerer g...@uclinux.org Define the usual memory access functions (readb/writeb/...) and I/O space functions (inb/outb/...) for PCI bus support on ColdFire CPU based platforms. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/io_mm.h | 48

[uClinux-dev] [PATCH 2/4] m68k: add PCI bus support for the ColdFire M54xx SoC family

2012-06-28 Thread gerg
From: Greg Ungerer g...@uclinux.org The ColdFire M54xx SoC family have a traditional PCI bus interface. Add the core support code to access and use this bus on these parts. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/m54xxpci.h | 138 +++

[uClinux-dev] [PATCH 4/4] m68k: allow PCI bus to be enabled for ColdFire m54xx CPUs

2012-06-28 Thread gerg
From: Greg Ungerer g...@uclinux.org All support code for the PCI bus hardware on the ColdFire 547x and 548x CPUs is now in. Allow enabling of CONFIG_PCI for them. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/Kconfig.bus |7 +++ 1 files changed, 7 insertions(+), 0

[uClinux-dev] [PATCH 1/4] m68k: common PCI support definitions and code

2012-06-28 Thread gerg
From: Greg Ungerer g...@uclinux.org Basic set of definitions and support code required to turn on CONFIG_PCI for the m68k architecture. Nothing specific to any PCI implementation in any m68k class CPU harwdare yet. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/include/asm/dma.h |

[uClinux-dev] [PATCH] m68knommu: define a local devm_clk_get() function

2012-06-24 Thread gerg
From: Greg Ungerer g...@uclinux.org Commit f4d40de39a23f0c39cca55ac63e1175c69c3d2f7 (net fec: do not depend on grouped clocks) breaks compilation of the FEC driver for non iMX platforms in linux-3.5-rc1. For example when compiling for ColdFire I get: LD vmlinux drivers/built-in.o:

[uClinux-dev] [PATCH 0/2] m68k/net: add support for NS8390 based eth controllers on some ColdFire boards

2012-06-24 Thread gerg
I have broken up the NS8390 support for ColdFire boards into 2 patches. The first is the net support side of it, and the other is the ColdFire platform support. If no-one has any comments then I'll send the first patch onto the net list for review. I'll add the second platform patch to the

[uClinux-dev] [PATCH 1/2] net: add support for NS8390 based eth controllers on some ColdFire boards

2012-06-24 Thread gerg
From: Greg Ungerer g...@uclinux.org A number of older ColdFire based boards use NS8390 based network controllers. Most use the Davicom 9008F or the UMC 9008F. This driver provides the support code to get these devices working on these platforms. The way these devices are wired up to the ColdFire

[uClinux-dev] [PATCH] m68k/net: add support for NS8390 based eth controllers on some ColdFire boards

2012-06-19 Thread gerg
From: Greg Ungerer g...@uclinux.org A number of older ColdFire based boards use NS8390 based network controllers. Most use the Davicom 9008F or the UMC 9008F. This driver provides the support code to get these devices working on these platforms. The way these devices are wired up to the ColdFire

[uClinux-dev] [PATCH] m68k: fix inclusion of arch_gettimeoffset for non-MMU 68k classic CPU types

2012-06-07 Thread gerg
From: Greg Ungerer g...@uclinux.org When building for non-MMU based classic 68k CPU types (like the 68328 for example) you get a compilation error: CC arch/m68k/kernel/time.o arch/m68k/kernel/time.c:91:5: error: redefinition of ‘arch_gettimeoffset’ include/linux/time.h:145:19: note:

[uClinux-dev] [PATCH] m68knommu: fix 68328 local setting of timer interrupt handler

2012-06-07 Thread gerg
From: Greg Ungerer g...@uclinux.org Compiling for 68328 based targets fails with: arch/m68k/platform/68328/timers.c: In function ‘hw_tick’: arch/m68k/platform/68328/timers.c:65:2: error: implicit declaration of function ‘arch_timer_interrupt’ arch/m68k/platform/68328/timers.c: At

[uClinux-dev] [PATCH] m68k: make syscall_trace_enter/leave exist for non-MMU classic m68k types

2012-06-07 Thread gerg
From: Greg Ungerer g...@uclinux.org The assembler entry code calls directly to the syscall_trace_enter() and syscall_trace_leave() functions. But currently they are conditionaly compiled out for the non-MMU classic m68k CPU types (so 68328 for example), resulting in a link error: LD

[uClinux-dev] [PATCH] m68knommu: fix 68360 local setting of timer interrupt handler

2012-06-07 Thread gerg
From: Greg Ungerer g...@uclinux.org Compiling for 68360 based targets fails with: arch/m68k/platform/68360/config.c: In function ‘hw_tick’: arch/m68k/platform/68360/config.c:55:2: error: implicit declaration of function ‘arch_timer_interrupt’ arch/m68k/platform/68360/config.c: At

[uClinux-dev] [PATCH] m68knommu: allow ColdFire CPUs to use unaligned accesses

2012-06-07 Thread gerg
From: Greg Ungerer g...@uclinux.org All current ColdFire CPUs are able to support unaligned memory accesses. So remove the CONFIG_CPU_HAS_NO_UNALIGNED option selection for ColdFire. It seems that the current restriction was inherrited from the early non-MMU support for the basic 68000 proecssors

[uClinux-dev] [PATCH v2 00/03]: clean up and merge the MMU and non-MMU versions of entry.S

2012-05-17 Thread gerg
With a little cleanup we can use much of the entry.S code on both the MMU and non-MMU m68k targets. This is the second iteration of this patch set. I have limited the changes converting to use the ret_from_exception function entry point over the label. I have only changed those shared by both

[uClinux-dev] [PATCH v2 1/3] m68k: use some direct calls to ret_from_exception in entry code

2012-05-17 Thread gerg
From: Greg Ungerer g...@uclinux.org The ret_from_excption code is referenced by its function name, or by a label set at the start of its code. The non-MMU code can share some of this code if we make direct calls to ret_from_exception instead of the associated label. The effected function paths

[uClinux-dev] [PATCH v2 2/3] m68k: use jbsr to call functions instead of bsrl

2012-05-17 Thread gerg
From: Greg Ungerer g...@uclinux.org There is a few places that the m68k entry code uses the bsrl instruction to call other functions. That instruction is only supported on 68020 and higher CPU types. If we use jbsr instead the code will be clean for all 68k and ColdFire CPU types. Signed-off-by:

[uClinux-dev] [PATCH v2 3/3] m68k: merge the MMU and non-MMU versions of the entry.S code

2012-05-17 Thread gerg
From: Greg Ungerer g...@uclinux.org Some of the entry.S code is common to both MMU and non-MMU builds. So merge the entry_no.S and entry_mm.S files back into a single file. With a little code movement we only need a single #ifdef. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH] m68k: add a defconfig for the M5475EVB ColdFire with MMU board

2012-05-15 Thread gerg
From: Greg Ungerer g...@uclinux.org Add a default configuration for the newly supported ColdFire CPUs running with MMU enabled. This is based on Freescales own M5475EVB demo board. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/configs/m5475evb_defconfig | 62

[uClinux-dev] [PATCH 1/3] m68k: consistently call ret_from_exception in entry code

2012-05-15 Thread gerg
From: Greg Ungerer g...@uclinux.org The ret_from_excption code is referenced by its function name, or by a label set at the start of its code. Modify all uses to consistently just use the function name ret_from_exception. This will help when we come to merge the MMU and non-MMU entry code.

[uClinux-dev] [PATCH 00/03] m68k: clean up and merge MMU and non-MMU versions of entry.S

2012-05-15 Thread gerg
m68k: clean up and merge the MMU and non-MMU versions of entry.S With a little cleanup we can use much of the entry.S code on both the MMU and non-MMU m68k targets. --- arch/m68k/kernel/entry.S| 452 +++- arch/m68k/kernel/entry_mm.S | 422

[uClinux-dev] [PATCH 2/3] m68k: use jbsr to call functions instead of bsrl

2012-05-15 Thread gerg
From: Greg Ungerer g...@uclinux.org There is a few places that the m68k entry code uses the bsrl instruction to call other functions. That instruction is only supported on 68020 and higher CPU types. If we use jbsr instead the code will be clean for all 68k and ColdFire CPU types. Signed-off-by:

[uClinux-dev] [PATCH 2/2] mtd: allow uclinux map driver to be used on any ColdFire CPU platform

2012-05-10 Thread gerg
From: Greg Ungerer g...@uclinux.org The uclinux.c map driver has traditionally been used only on non-MMU based systems. But there is no fundamental reason it can't be used on systems running with virtual memory. Some ColdFire CPU based systems now have full paged MMU hardware and can use the

[uClinux-dev] [PATCH 1/2] mtd: fix wrong usage of ioremap_nocache() in uclinux.c map driver

2012-05-10 Thread gerg
From: Greg Ungerer g...@uclinux.org The uclinux.c mapping driver uses ioremap_nocache() to map its physical mapping address to a system virtual address. Problem is that the region it is mapping is not device memory. It is ordinary system RAM. On most non-MMU systems this doesn't matter, and the

[uClinux-dev] [PATCH 1/2] m68knommu: reorganize the no-MMU cache flushing to match m68k

2012-05-04 Thread gerg
From: Greg Ungerer g...@uclinux.org Introduce cache_push() and cache_clear() functions for the non-MMU m68k devices. With these in place we can more easily merge some of the common m68k arch code. In particular by reorganizing the __flush_caceh_all() code and separating the cache push and clear

[uClinux-dev] [PATCH 00/02] m68k: clean up and merge arch dma code

2012-05-04 Thread gerg
m68k: clean up and merge arch dma code Much of the common m68k architecture dma code is the same for the MMU and non-MMU cases. With a little cleanup of the m68knommu dma code first we can then merge the two to end up with a single arch dma.c. I have only tested a small number of ColdFire

[uClinux-dev] [PATCH 2/2] m68k: merge the MMU and non-MMU versions of the arch dma code

2012-05-04 Thread gerg
From: Greg Ungerer g...@uclinux.org The majority of the m68k architecture dma code is the same, so merge the current separated files dma_no.c and dma_mm.c back into a single dma.c The main alloc and free routines are a little different, so we keep a single #ifdef based on CONFIG_MMU for them.

[uClinux-dev] [PATCH 00/11] m68knommu: remove ColdFire sub-architecture directories

2012-05-01 Thread gerg
Currently the different ColdFire sub-archiectures are split up with a directory for each family type. Most though only contain a small amount of code, it just doesn't seem to make any sense to keep them separate. Move all the ColdFire sub-architecture code into the platform/coldfire directory,

[uClinux-dev] [PATCH 02/11] m68knommu: move the 520x platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 01/11] m68knommu: move the 5206 platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 03/11] m68knommu: move the 523x platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 04/11] m68knommu: move the 5249 platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 05/11] m68knommu: move the 5272 platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 07/11] m68knommu: move the 528x platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 06/11] m68knommu: move the 527x platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 11/11] m68knommu: move the 54xx platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 09/11] m68knommu: move the 5407 platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 08/11] m68knommu: move the 5307 platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH 10/11] m68knommu: move the 532x platform code into the common ColdFire code directory

2012-05-01 Thread gerg
From: Greg Ungerer g...@uclinux.org All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory. Signed-off-by: Greg Ungerer g...@uclinux.org ---

[uClinux-dev] [PATCH v2 01/22] m68knommu: introduce macros to simplify ColdFire GPIO table initialization

2012-04-26 Thread gerg
From: Greg Ungerer g...@uclinux.org We have very large tables in the ColdFire CPU GPIO setup code that essentially boil down to 2 distinct types of GPIO pin initiaization. Using 2 macros we can reduce these large tables to at most a dozen lines of setup code, and in quite a few cases a single

[uClinux-dev] [PATCH 03/22] m68knommu: switch to GPIO init macros in ColdFire 520x init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/520x/gpio.c | 149 ++- 1

[uClinux-dev] [PATCH 02/22] m68knommu: switch to GPIO init macros in ColdFire 5206 init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/5206/gpio.c | 16 +--- 1 files changed, 1

[uClinux-dev] [PATCH 04/22] m68knommu: switch to GPIO init macros in ColdFire 523x init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/523x/gpio.c | 264 ++- 1

[uClinux-dev] [PATCH 06/22] m68knommu: switch to GPIO init macros in ColdFire 5272 init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/5272/gpio.c | 50 ++- 1

[uClinux-dev] [PATCH 05/22] m68knommu: switch to GPIO init macros in ColdFire 5249 init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/5249/gpio.c | 33 ++--- 1 files

[uClinux-dev] [PATCH 07/22] m68knommu: switch to GPIO init macros in ColdFire 527x init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/527x/gpio.c | 604 +++- 1

[uClinux-dev] [PATCH 10/22] m68knommu: switch to GPIO init macros in ColdFire 5407 init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/5407/gpio.c | 16 +--- 1 files changed, 1

[uClinux-dev] [PATCH 08/22] m68knommu: switch to GPIO init macros in ColdFire 528x init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. We also need to rename some of the GPIO registers to be consistent with all other ColdFire parts (we can't use the new GPIO macros

[uClinux-dev] [PATCH 09/22] m68knommu: switch to GPIO init macros in ColdFire 5307 init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/5307/gpio.c | 16 +--- 1 files changed, 1

[uClinux-dev] [PATCH 11/22] m68knommu: switch to GPIO init macros in ColdFire 532x init code

2012-04-25 Thread gerg
From: Greg Ungerer g...@uclinux.org Modify the GPIO setup table to use the mcfgpio.h macros for table init. Simplifies code and reduces line count significantly. Signed-off-by: Greg Ungerer g...@uclinux.org --- arch/m68k/platform/532x/gpio.c | 320 ++- 1

  1   2   >