05 Mar, 2012

40 commits

  • If we make all QSPI (SPI protocol) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and code and use a single setup for all.

    So modify the ColdFire 532x QSPI addressing so that:

    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used
    . move chip select definitions (CS) to appropriate header

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all QSPI (SPI protocol) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and code and use a single setup for all.

    So modify the ColdFire 528x QSPI addressing so that:

    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used
    . move chip select definitions (CS) to appropriate header

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all QSPI (SPI protocol) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and code and use a single setup for all.

    So modify the ColdFire 527x QSPI addressing so that:

    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used
    . move chip select definitions (CS) to appropriate header

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all QSPI (SPI protocol) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and code and use a single setup for all.

    So modify the ColdFire 5249 QSPI addressing so that:

    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used
    . move chip select definitions (CS) to appropriate header

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all QSPI (SPI protocol) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and code and use a single setup for all.

    So modify the ColdFire 523x QSPI addressing so that:

    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used
    . move chip select definitions (CS) to appropriate header

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all QSPI (SPI protocol) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and code and use a single setup for all.

    So modify the ColdFire 520x QSPI addressing so that:

    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used
    . move chip select definitions (CS) to appropriate header

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • The ColdFire FEC is common to quite a few ColdFire CPUs. No need to duplicate
    its platform setup code for every CPU family member that has it. Merge all the
    setup code into a single shared file.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all FEC (ethernet) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and use a single setup for all.

    So modify the ColdFire 532x FEC addressing so that:

    . FECs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all FEC (ethernet) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and use a single setup for all.

    So modify the ColdFire 528x FEC addressing so that:

    . FECs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all FEC (ethernet) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and use a single setup for all.

    So modify the ColdFire 527x FEC addressing so that:

    . FECs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all FEC (ethernet) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and use a single setup for all.

    So modify the ColdFire 5272 FEC addressing so that:

    . FECs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all FEC (ethernet) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and use a single setup for all.

    So modify the ColdFire 523x FEC addressing so that:

    . FECs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all FEC (ethernet) addressing consistent across all ColdFire
    family members then we will be able to remove the duplicated plaform data
    and use a single setup for all.

    So modify the ColdFire 520x FEC addressing so that:

    . FECs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Some ColdFire CPU UART hardware modules can configure the IRQ they use.
    Currently the same setup code is duplicated in the init code for each of
    these ColdFire CPUs. Merge all this code to a single instance.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • The ColdFire UART is common to all ColdFire CPU's. No need to duplicate
    its platform setup code for every CPU family member. Merge all the setup
    code into a single shared file.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • Simplify the UART setup code so that it no longer loops for each UART
    present. Just make it do all the work it needs in a single function.
    This will make the code easier to share when we move to a single set
    of platform data for ColdFire UARTs.

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 54xx UART addressing so that:

    . UARTs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 5407 UART addressing so that:

    . UARTs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 532x UART addressing so that:

    . UARTs are numbered from 0 up
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 528x UART addressing so that:

    . UARTs are numbered from 0 up
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 5307 UART addressing so that:

    . UARTs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 527x UART addressing so that:

    . UARTs are numbered from 0 up
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 5272 UART addressing so that:

    . UARTs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 5249 UART addressing so that:

    . UARTs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 523x UART addressing so that:

    . UARTs are numbered from 0 up
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 520x UART addressing so that:

    . UARTs are numbered from 0 up
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • If we make all UART addressing consistent across all ColdFire family members
    then we will be able to remove the duplicated plaform data and use a single
    setup for all.

    So modify the ColdFire 5206 UART addressing so that:

    . UARTs are numbered from 0 up
    . base addresses are absolute (not relative to MBAR peripheral register)
    . use a common name for IRQs used

    Signed-off-by: Greg Ungerer

    Greg Ungerer
     
  • The MMU and non-MMU varients of the m68k arch process.c code are pretty
    much the same. Only a few minor details differ between the two. The
    majority of the difference is to deal with having or wanting hardware FPU
    support. So merge them back into a single process.c file.

    Signed-off-by: Greg Ungerer
    Acked-by: Geert Uytterhoeven

    Greg Ungerer
     
  • The classic m68k code has always supported an FPU (although it may have
    been a software emulated one). The non-MMU m68k code has never supported FPU
    hardware. To help in merging common code create a configation setting that
    signifies if we are builing in FPU support or not.

    This switch, CONFIG_FPU, is set as per the current use cases. So it is
    always enabled if CONFIG_MMU is set, and disabled otherwise. With a little
    extra code it will be possible to disable it on the classic m68k platforms
    as well, and to enable it on non-MMU platforms that do have hardware FPU.

    Signed-off-by: Greg Ungerer
    Acked-by: Geert Uytterhoeven

    Greg Ungerer
     
  • Most of the code in the non-mmu ptrace_no.c file is the same as the mmu
    version ptrace_mm.c. So merge them back into a single file.

    Signed-off-by: Greg Ungerer
    Acked-by: Geert Uytterhoeven

    Greg Ungerer
     
  • The set_rtc_mmss() function is defined "static inline" but is never used
    in this file. Remove it.

    Signed-off-by: Greg Ungerer
    Acked-by: Geert Uytterhoeven

    Greg Ungerer