1. 05 Mar, 2012 5 commits
  2. 04 Mar, 2012 35 commits
    • Greg Ungerer's avatar
      m68knommu: move old ColdFire timers init from CPU init to timers code · 440f6ffc
      Greg Ungerer authored
      The original ColdFire timer interrupt setup is used by most of the users
      of the original ColdFire timer code. But the code is currently duplicated
      in each of the ColdFire CPU specific init files. Move it to the timers
      code that it is really part of. It is strait forward to make it conditional
      on also having the original interrupt engine that it needs.
      Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
      440f6ffc
    • Greg Ungerer's avatar
      m68knommu: clean up init code in ColdFire 532x startup · c05793c7
      Greg Ungerer authored
      We can move all the init calls in the initcall code into the more general
      arch setup code (which is config_BSP() here). That makes the 532x consistent
      with other ColdFire CPUs setup code. It means we can get rid of the initcall
      setup here all together. Also make sure we set the arch mach_reset function
      pointer to get the local arch reset code called on reset.
      Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
      c05793c7
    • Greg Ungerer's avatar
      m68knommu: clean up init code in ColdFire 528x startup · 9773be5f
      Greg Ungerer authored
      We can move all the init calls in the initcall code into the more general
      arch setup code (which is config_BSP() here). That makes the 528x consistent
      with other ColdFire CPUs setup cod. It means we can get rif of the initcall
      setup here all together.
      Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
      9773be5f
    • Greg Ungerer's avatar
      m68knommu: clean up init code in ColdFire 523x startup · 2ba168a9
      Greg Ungerer authored
      We can move the QSPI init call to the more general config_BSP() code on
      the 523x platorm setup code. Then we can remove the initcall code all
      together.
      
      We can also remove the un-needed include of mcfuart.h while we are
      cleaning up here too.
      
      Also I noticed that we are not calling the fec_init() code here, and we
      should be doing that. Put that back in too.
      Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
      2ba168a9
    • Greg Ungerer's avatar
      m68knommu: merge common ColdFire QSPI platform setup code · fa1fc246
      Greg Ungerer authored
      The ColdFire QSPI 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.
      
      This also results in few platforms no longer needing any local platform
      setup code. In those cases remove the empty devices array and initcall
      code as well.
      Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
      fa1fc246
    • Greg Ungerer's avatar
      m68knommu: make 532x QSPI platform addressing consistent · ed8a2798
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      ed8a2798
    • Greg Ungerer's avatar
      m68knommu: make 528x QSPI platform addressing consistent · 3b2039b2
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      3b2039b2
    • Greg Ungerer's avatar
      m68knommu: make 527x QSPI platform addressing consistent · 6c84a60e
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      6c84a60e
    • Greg Ungerer's avatar
      m68knommu: make 5249 QSPI platform addressing consistent · 2424f549
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      2424f549
    • Greg Ungerer's avatar
      m68knommu: make 523x QSPI platform addressing consistent · 36d175a4
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      36d175a4
    • Greg Ungerer's avatar
      m68knommu: make 520x QSPI platform addressing consistent · a4e2e2ac
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      a4e2e2ac
    • Greg Ungerer's avatar
      m68knommu: merge common ColdFire FEC platform setup code · b7ce7f0d
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      b7ce7f0d
    • Greg Ungerer's avatar
      m68knommu: make 532x FEC platform addressing consistent · 50469547
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      50469547
    • Greg Ungerer's avatar
      m68knommu: make 528x FEC platform addressing consistent · 4f8f9fb8
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      4f8f9fb8
    • Greg Ungerer's avatar
      m68knommu: make 527x FEC platform addressing consistent · 308bfc12
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      308bfc12
    • Greg Ungerer's avatar
      m68knommu: make 5272 FEC platform addressing consistent · 9a11b493
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      9a11b493
    • Greg Ungerer's avatar
      m68knommu: make 523x FEC platform addressing consistent · 21634593
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      21634593
    • Greg Ungerer's avatar
      m68knommu: make 520x FEC platform addressing consistent · d4e08372
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      d4e08372
    • Greg Ungerer's avatar
      m68knommu: merge common ColdFire UART IRQ setup · 55148f6f
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      55148f6f
    • Greg Ungerer's avatar
      m68knommu: merge common ColdFire UART platform setup code · 0d2fe946
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      0d2fe946
    • Greg Ungerer's avatar
      m68knommu: simplify the 54xx UART setup code · b9a0c3f8
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      b9a0c3f8
    • Greg Ungerer's avatar
      m68knommu: simplify the 5407 UART setup code · b77fb7fa
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      b77fb7fa
    • Greg Ungerer's avatar
      m68knommu: simplify the 532x UART setup code · a75bc619
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      a75bc619
    • Greg Ungerer's avatar
      m68knommu: simplify the 5307 UART setup code · 7bdebba4
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      7bdebba4
    • Greg Ungerer's avatar
      m68knommu: simplify the 528x UART setup code · cae82a83
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      cae82a83
    • Greg Ungerer's avatar
      m68knommu: simplify the 527x UART setup code · 1eb13916
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      1eb13916
    • Greg Ungerer's avatar
      m68knommu: simplify the 5272 UART setup code · 6b656e8a
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      6b656e8a
    • Greg Ungerer's avatar
      m68knommu: simplify the 5249 UART setup code · 43d94b7f
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      43d94b7f
    • Greg Ungerer's avatar
      m68knommu: simplify the 520x UART setup code · b92225c7
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      b92225c7
    • Greg Ungerer's avatar
      m68knommu: simplify the 5206 UART setup code · a579748d
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      a579748d
    • Greg Ungerer's avatar
      m68knommu: make 54xx UART platform addressing consistent · bbbeeaf2
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      bbbeeaf2
    • Greg Ungerer's avatar
      m68knommu: make 5407 UART platform addressing consistent · 69d23b61
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      69d23b61
    • Greg Ungerer's avatar
      m68knommu: make 532x UART platform addressing consistent · 35b7cf22
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      35b7cf22
    • Greg Ungerer's avatar
      m68knommu: make 528x UART platform addressing consistent · f8bb5327
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      f8bb5327
    • Greg Ungerer's avatar
      m68knommu: make 5307 UART platform addressing consistent · 909159fe
      Greg Ungerer authored
      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: default avatarGreg Ungerer <gerg@uclinux.org>
      909159fe