1. 30 3月, 2009 1 次提交
  2. 26 2月, 2008 1 次提交
    • A
      [POWERPC] 8xx: Timebase frequency should not depend on bus-frequency · 50530378
      Anton Vorontsov 提交于
      m8xx_setup.c says:
         /* Force all 8xx processors to use divide by 16 processor clock. */
      
      And at the same time it is using bus-frequency for calculating
      timebase.  It is okay for most setups because bus-frequency is
      equal to clock-frequency.
      
      The problem emerges when cpu frequency is > 66MHz, quoting
      u-boot/cpu/mpc8xx/speed.c:
      
              if (gd->cpu_clk <= 66000000) {
                      sccr_reg |= SCCR_EBDF00;        /* bus division factor = 1 */
                      gd->bus_clk = gd->cpu_clk;
              } else {
                      sccr_reg |= SCCR_EBDF01;        /* bus division factor = 2 */
                      gd->bus_clk = gd->cpu_clk / 2;
              }
      
      So in case of cpu clock > 66MHz, bus_clk = cpu_clk / 2. An then, from
      Linux, we calculate timebase frequency as tb_freq = bus_clk / 16,
      that is cpu_clk / 2 / 16, which is wrong.
      
      This fixes the system time drifting problem on the EP885C board
      running at 133MHz.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      50530378
  3. 28 1月, 2008 4 次提交
  4. 03 12月, 2007 1 次提交
  5. 04 10月, 2007 1 次提交
    • S
      [POWERPC] 8xx: Infrastructure code cleanup. · fb533d0c
      Scott Wood 提交于
      1. Keep a global mpc8xx_immr mapping, rather than constantly
      creating temporary mappings.
      2. Look for new fsl,cpm1 and fsl,cpm1-pic names.
      3. Always reset the CPM when not using the udbg console;
      this is required in case the firmware initialized a device
      that is incompatible with one that the kernel is about to
      use.
      4. Remove some superfluous casts and header includes.
      5. Change a usage of IMAP_ADDR to get_immrbase().
      6. Use phys_addr_t, not uint, for dpram_pbase.
      7. Various sparse-related fixes, such as __iomem annotations.
      8. Remove mpc8xx_show_cpuinfo, which doesn't provide anything
      useful beyond the generic cpuinfo handler.
      9. Move prototypes for 8xx support functions from board files
      to sysdev/commproc.h.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      fb533d0c
  6. 23 8月, 2007 1 次提交
    • K
      [POWERPC] Remove old includes from arch/ppc · ed16c20d
      Kumar Gala 提交于
      Remove includes of files that existed in arch/ppc that we dont need in
      arch/powerpc anymore.  The following includes were removed:
      
       <asm/amigappc.h>
       <asm/bootinfo.h>
       <asm/ppcboot.h>
       <asm/ppc_sys.h>
       <asm/residual.h>
       <asm/m8260_pci.h>
      
      This also caused platforms/embedded6xx/mpc7448_hpc2.h to no longer be
      needed and thus removed.
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      ed16c20d
  7. 22 8月, 2007 1 次提交
  8. 10 7月, 2007 1 次提交
  9. 13 4月, 2007 1 次提交
  10. 07 2月, 2007 1 次提交