1. 06 6月, 2008 1 次提交
  2. 25 5月, 2008 1 次提交
  3. 12 5月, 2008 1 次提交
    • S
      [MIPS] Alchemy common headers style cleanup · ff6814d5
      Sergei Shtylyov 提交于
      Fix several errors and warnings given by checkpatch.pl:
      
      - space after opening and before closing parentheses;
      
      - opening brace following 'struct' not on the same line;
      
      - leading spaces instead of tabs;
      
      - use of C99 // comments;
      
      - macros with complex values not enclosed in parentheses;
      
      - missing space between the type and asterisk in a variable declaration;
      
      - space between asterisk and function name;
      
      - including <asm/io.h> instead of <linux/io.h> and <asm/irq.h> instead of
        <linux/irq.h>;
      
      - use of '__inline__' instead of 'inline';
      
      - space between function name and opening parenthesis;
      
      - line over 80 characters.
      
      In addition to these changes, also do the following:
      
      - remove needless parentheses;
      
      - insert spaces between operator and its operands;
      
      - replace spaces after the macro name with tabs in the #define directives and
        after the type in the structure field declarations;
      
      - remove excess tabs after the macro name in the #define directives and in the
        'extern' variable declarations;
      
      - remove excess spaces between # and define for the SSI_*_MASK macros to align
        with other such macros;
      
      - put '||' operator on the same line with its first operand;
      
      - properly indent multi-line function prototypes;
      
      - make the multi-line comment style consistent with the kernel style elsewhere
        by adding empty first line and/or adding space/asterisk on their left side;
      
      - make two-line comments that only have one line of text one-line;
      
      - convert the large multi-line comment in au1xxx_ide.h into several one-liners,
        replace spaces with tabs there;
      
      - fix typos/errors, capitalize acronyms, etc. in the comments;
      
      - insert missing and remove excess new lines;
      
      - update MontaVista copyright;
      
      - remove Pete Popov's and Steve Longerbeam's old email addresses...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ff6814d5
  4. 29 4月, 2008 2 次提交
  5. 27 4月, 2008 1 次提交
  6. 17 4月, 2008 1 次提交
    • S
      Au1200: kill IDE driver function prototypes · 09a77441
      Sergei Shtylyov 提交于
      Fix these warnings emitted when compiling drivers/ide/mips/au1xxx-ide.c:
      
      include/asm/mach-au1x00/au1xxx_ide.h:137: warning: 'auide_tune_drive' declared 
      `static' but never defined
      include/asm/mach-au1x00/au1xxx_ide.h:138: warning: 'auide_tune_chipset' declared
       `static' but never defined
      
      by wiping out the whole "function prototyping" section from the header file
      <asm-mips/mach-au1x00/au1xxx_ide.h> as it mostly declared functions that are
      already dead in the IDE driver; move the only useful prototype into the driver.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      09a77441
  7. 01 4月, 2008 1 次提交
    • S
      [MIPS] Alchemy: work around clock misdetection on early Au1000 · 758e285f
      Sergei Shtylyov 提交于
      Work around the CPU clock miscalculation on Au1000DA/HA/HB due the
      sys_cpupll register being write-only, i.e. actually do what the comment
      before cal_r4off() function advertised for years but the code failed at.
      This is achieved by just giving user a chance to define the clock
      explicitly  in the board config. via CONFIG_SOC_AU1000_FREQUENCY option,
      defaulting to 396 MHz if the option is not given...
      
      The patch is based on the AMD's big unpublished patch, the issue seems to
      be an undocumented errata (or feature :-)...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      758e285f
  8. 02 2月, 2008 1 次提交
  9. 15 12月, 2007 1 次提交
  10. 09 12月, 2007 1 次提交
  11. 07 12月, 2007 1 次提交
  12. 03 11月, 2007 1 次提交
  13. 18 10月, 2007 2 次提交
  14. 17 10月, 2007 3 次提交
  15. 16 10月, 2007 1 次提交
  16. 12 10月, 2007 3 次提交
  17. 11 7月, 2007 2 次提交
  18. 10 7月, 2007 1 次提交
  19. 09 5月, 2007 1 次提交
    • J
      au1550 SPI controller driver · 63bd2359
      Jan Nikitenko 提交于
      Here is a driver for the Alchemy au1550 PSC (Programmable Serial
      Controller) in SPI master mode.
      
      It supports dma transfers using the Alchemy descriptor based dma controller
      for 4-8 bits per word SPI transfers.  For 9-24 bits per word transfers, pio
      irq based mode is used to avoid setup of dma channels from scratch on each
      number of bits per word change.
      
      Tested with au1550; this may also work on other MIPS Alchemy cpus, like
      au1200/au1210/au1250.  Used extensively with SD card connected via SPI;
      this handles 8.1MHz SPI clock transfers using dma without any problem (the
      highest SPI clock freq possible with au1550 running on 324MHz).
      
      The driver supports sharing of SPI bus by multiple devices.  All features
      of Alchemy SPI mode are supported (all SPI modes, msb/lsb first, bits per
      word in 4-24 range).
      
      As the SPI clock of the controller depends on main input clock that shall
      be configured externally, platform data structure for au1550 SPI controller
      driver contains mainclk_hz attribute to define the input clock rate.  From
      this value, dividers of the controller for SPI clock are set up for
      required frequency.
      Signed-off-by: NJan Nikitenko <jan.nikitenko@gmail.com>
      
      Whitespace and section fixups.  Remove partial workaround for platform
      setup bug in dma_mask setup; it couldn't work with multiple controllers.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      63bd2359
  20. 18 3月, 2007 1 次提交
  21. 07 2月, 2007 2 次提交
    • A
      [MIPS] Alchemy: Fix PCI-memory access · fd046eb5
      Alexander Bigga 提交于
      The problem was introduced in 2.6.18.3 with the casting of some
      36bit-defines (PCI memory) in au1000.h to resource_size_t which may be
      u32 or u64 depending on the experimental CONFIG_RESOURCES_64BIT.
      
      With unset CONFIG_RESOURCES_64BIT, the pci-memory cannot be accessed
      because the ioremap in arch/mips/au1000/common/pci.c already used the
      truncated addresses.
      With set CONFIG_RESOURCES_64BIT, things get even worse, because PCI-scan
      aborts, due to resource conflict: request_resource() in arch/mips/pci/pci.c
      fails because the maximum iomem-address is 0xffffffff (32bit) but the
      pci-memory-start-address is 0x440000000 (36bit).
      
      To get pci working again, I propose the following patch:
      
      1. remove the resource_size_t-casting from au1000.h again
      2. make the casting in arch/mips/au1000/common/pci.c (it's allowed and
      necessary here. The 36bit-handling will be done in __fixup_bigphys_addr).
      
      With this patch pci works again like in 2.6.18.2, the gcc-compile warnings
      in pci.c are gone and it doesn't depend on CONFIG_EXPERIMENTAL.
      Signed-off-by: NAlexander Bigga <ab@mycable.de>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      fd046eb5
    • R
      [MIPS] Alchemy: Fix bunch of warnings · 786d7cdd
      Ralf Baechle 提交于
        CC      arch/mips/au1000/common/pci.o
      arch/mips/au1000/common/pci.c:42: warning: large integer implicitly truncated to unsigned type
      arch/mips/au1000/common/pci.c:43: warning: large integer implicitly truncated to unsigned type
      arch/mips/au1000/common/pci.c:49: warning: large integer implicitly truncated to unsigned type
      arch/mips/au1000/common/pci.c:50: warning: large integer implicitly truncated to unsigned type
      arch/mips/au1000/common/pci.c: In function ‘au1x_pci_setup’:
      arch/mips/au1000/common/pci.c:82: warning: ISO C90 forbids mixed declarations and code
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      786d7cdd
  22. 23 11月, 2006 1 次提交
    • M
      [PATCH] make au1xxx-ide compile again · ec7080d1
      Manuel Lauss 提交于
      The Au1xx IDE controller driver doesn't compile:
      
        CC      drivers/ide/mips/au1xxx-ide.o
      /linux-2.6.19-rc6-work/drivers/ide/mips/au1xxx-ide.c:480: error: conflicting types for 'auide_ddma_tx_callback'
      include2/asm/mach-au1x00/au1xxx_ide.h:174: error: previous declaration of 'auide_ddma_tx_callback' was here
      /linux-2.6.19-rc6-work/drivers/ide/mips/au1xxx-ide.c:486: error: conflicting types for 'auide_ddma_rx_callback'
      include2/asm/mach-au1x00/au1xxx_ide.h:176: error: previous declaration of 'auide_ddma_rx_callback' was here
      Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ec7080d1
  23. 10 10月, 2006 1 次提交
  24. 09 10月, 2006 1 次提交
    • D
      IRQ: Use the new typedef for interrupt handler function pointers · 40220c1a
      David Howells 提交于
      Use the new typedef for interrupt handler function pointers rather than
      actually spelling out the full thing each time.  This was scripted with the
      following small shell script:
      
      #!/bin/sh
      egrep -nHrl -e 'irqreturn_t[ 	]*[(][*]' $* |
      while read i
      do
          echo $i
          perl -pi -e 's/irqreturn_t\s*[(]\s*[*]\s*([_a-zA-Z0-9]*)\s*[)]\s*[(]\s*int\s*,\s*void\s*[*]\s*[)]/irq_handler_t \1/g' $i || exit $?
      done
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      40220c1a
  25. 08 10月, 2006 1 次提交
  26. 26 9月, 2006 1 次提交
  27. 30 6月, 2006 1 次提交
  28. 23 6月, 2006 1 次提交
  29. 26 4月, 2006 1 次提交
  30. 07 2月, 2006 1 次提交
  31. 10 1月, 2006 1 次提交
  32. 15 12月, 2005 1 次提交