1. 23 4月, 2012 5 次提交
  2. 17 4月, 2012 2 次提交
    • G
      m68knommu: make sure 2nd FEC eth interface pins are enabled on 5275 ColdFire · 938ed250
      Greg Ungerer 提交于
      The CONFIG_FEC2 define was removed from the kernel many versions ago.
      But it is still being used to set the multi-function pins when compiling
      for a ColdFire 527[45] SoC that has 2 ethernet interfaces. Remove the
      last remaining uses of this define, and so fix the setting of the pins
      for the 2nd ethernet interface.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      938ed250
    • G
      m68knommu: fix id number for second eth device on 5275 ColdFire · bfdd769a
      Greg Ungerer 提交于
      The second ColdFire FEC ethernet device should have an id number of 1,
      not 0. Otherwise it clashes with the first FEC ethernet device.
      
      On booting a kernel on a 5275 based board you will get messages out of
      the kernel like this:
      
          <4>------------[ cut here ]------------
          <4>WARNING: at fs/sysfs/dir.c:508 0x0a8b50()
          <4>sysfs: cannot create duplicate filename 'fec.0'
      
      And likely you won't be able to completely boot up after this at all.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      bfdd769a
  3. 16 4月, 2012 2 次提交
  4. 02 4月, 2012 3 次提交
  5. 29 3月, 2012 3 次提交
  6. 09 3月, 2012 1 次提交
  7. 05 3月, 2012 24 次提交
    • G
      m68knommu: factor more common ColdFire cpu reset code · ae909ea4
      Greg Ungerer 提交于
      Most of the more modern ColdFire cores use the same code to reset the CPU
      (but it is different to most of the earlier cores). Currently that is
      duplicated in each of the sub-arch files. Pull out this common code and
      out a single copy of it with the other common reset code.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      ae909ea4
    • G
      m68knommu: make 528x CPU reset register addressing consistent · 645e5333
      Greg Ungerer 提交于
      If we make all MCF_RCR (CPU reset register) addressing consistent across all
      ColdFire CPU family members that use it then we will be able to remove the
      duplicated copies of the code that use it.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      645e5333
    • G
      m68knommu: make 527x CPU reset register addressing consistent · 0b2a2139
      Greg Ungerer 提交于
      If we make all MCF_RCR (CPU reset register) addressing consistent across all
      ColdFire CPU family members that use it then we will be able to remove the
      duplicated copies of the code that use it.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      0b2a2139
    • G
      m68knommu: make 523x CPU reset register addressing consistent · 320de7d0
      Greg Ungerer 提交于
      If we make all MCF_RCR (CPU reset register) addressing consistent across all
      ColdFire CPU family members that use it then we will be able to remove the
      duplicated copies of the code that use it.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      320de7d0
    • G
      m68knommu: factor some common ColdFire cpu reset code · d894b89b
      Greg Ungerer 提交于
      A number of the early ColdFire cores use the same code to reset the CPU.
      Currently that is duplicated in each of the sub-arch files. Pull out this
      common code and use a single copy of it for all CPU types that use it.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      d894b89b
    • G
      m68knommu: move old ColdFire timers init from CPU init to timers code · 440f6ffc
      Greg Ungerer 提交于
      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: NGreg Ungerer <gerg@uclinux.org>
      440f6ffc
    • G
      m68knommu: clean up init code in ColdFire 532x startup · c05793c7
      Greg Ungerer 提交于
      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: NGreg Ungerer <gerg@uclinux.org>
      c05793c7
    • G
      m68knommu: clean up init code in ColdFire 528x startup · 9773be5f
      Greg Ungerer 提交于
      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: NGreg Ungerer <gerg@uclinux.org>
      9773be5f
    • G
      m68knommu: clean up init code in ColdFire 523x startup · 2ba168a9
      Greg Ungerer 提交于
      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: NGreg Ungerer <gerg@uclinux.org>
      2ba168a9
    • G
      m68knommu: merge common ColdFire QSPI platform setup code · fa1fc246
      Greg Ungerer 提交于
      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: NGreg Ungerer <gerg@uclinux.org>
      fa1fc246
    • G
      m68knommu: make 532x QSPI platform addressing consistent · ed8a2798
      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 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: NGreg Ungerer <gerg@uclinux.org>
      ed8a2798
    • G
      m68knommu: make 528x QSPI platform addressing consistent · 3b2039b2
      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: NGreg Ungerer <gerg@uclinux.org>
      3b2039b2
    • G
      m68knommu: make 527x QSPI platform addressing consistent · 6c84a60e
      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: NGreg Ungerer <gerg@uclinux.org>
      6c84a60e
    • G
      m68knommu: make 5249 QSPI platform addressing consistent · 2424f549
      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: NGreg Ungerer <gerg@uclinux.org>
      2424f549
    • G
      m68knommu: make 523x QSPI platform addressing consistent · 36d175a4
      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: NGreg Ungerer <gerg@uclinux.org>
      36d175a4
    • G
      m68knommu: make 520x QSPI platform addressing consistent · a4e2e2ac
      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: NGreg Ungerer <gerg@uclinux.org>
      a4e2e2ac
    • G
      m68knommu: merge common ColdFire FEC platform setup code · b7ce7f0d
      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: NGreg Ungerer <gerg@uclinux.org>
      b7ce7f0d
    • G
      m68knommu: make 532x FEC platform addressing consistent · 50469547
      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: NGreg Ungerer <gerg@uclinux.org>
      50469547
    • G
      m68knommu: make 528x FEC platform addressing consistent · 4f8f9fb8
      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: NGreg Ungerer <gerg@uclinux.org>
      4f8f9fb8
    • G
      m68knommu: make 527x FEC platform addressing consistent · 308bfc12
      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: NGreg Ungerer <gerg@uclinux.org>
      308bfc12
    • G
      m68knommu: make 5272 FEC platform addressing consistent · 9a11b493
      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: NGreg Ungerer <gerg@uclinux.org>
      9a11b493
    • G
      m68knommu: make 523x FEC platform addressing consistent · 21634593
      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: NGreg Ungerer <gerg@uclinux.org>
      21634593
    • G
      m68knommu: make 520x FEC platform addressing consistent · d4e08372
      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: NGreg Ungerer <gerg@uclinux.org>
      d4e08372
    • G
      m68knommu: merge common ColdFire UART IRQ setup · 55148f6f
      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: NGreg Ungerer <gerg@uclinux.org>
      55148f6f