Skip to content
Snippets Groups Projects
  1. Feb 27, 2010
  2. May 14, 2009
  3. Jan 11, 2009
    • Manuel Lauss's avatar
      MIPS: Alchemy: new userspace suspend interface for development boards. · 61f9c58d
      Manuel Lauss authored
      
      Replace the current sysctl-based suspend interface with a new sysfs-
      based one which also uses the Linux-2.6 suspend model.
      
      To configure wakeup sources, a subtree for the demoboards is created
      under /sys/power/db1x:
      
      sys/
      `-- power
          `-- db1x
              |-- gpio0
              |-- gpio1
              |-- gpio2
              |-- gpio3
              |-- gpio4
              |-- gpio5
              |-- gpio6
              |-- gpio7
              |-- timer
              |-- timer_timeout
              |-- wakemsk
              `-- wakesrc
      
      The nodes 'gpio[0-7]' and 'timer' configure the GPIO0..7 and M2
      bits of the SYS_WAKEMSK (wakeup source enable) register.  Writing '1'
      enables a wakesource, 0 disables it.
      
      The 'timer_timeout' node holds the timeout in seconds after which the
      TOYMATCH2 event should wake the system.
      
      The 'wakesrc' node holds the SYS_WAKESRC register after wakeup (in hex),
      the 'wakemsk' node can be used to get/set the wakeup mask directly.
      
      For example, to have the timer wake the system after 10 seconds of sleep,
      the following must be done in userspace:
      
      echo 10 > /sys/power/db1x/timer_timeout
      echo 1 > /sys/power/db1x/timer
      echo mem > /sys/power/sleep
      
      This patch also removes the homebrew CPU frequency switching code.  I don't
      understand how it could have ever worked reliably; it does not communicate
      the clock changes to peripheral devices other than uarts.
      
      Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      
       create mode 100644 arch/mips/alchemy/devboards/pm.c
      61f9c58d
    • Manuel Lauss's avatar
      MIPS: Alchemy: Fix up PM code on Au1550/Au1200 · 564365b0
      Manuel Lauss authored
      
      Au1550/Au1200 have a different memory controller which requires additi-
      onal code to properly put memory to sleep (code taken from AMD/RMI's
      Linux-2.6.11 source package).
      
      Also fix up the remaining pm-related paths to compile on Au1200/Au1550
      platforms.
      
      Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      564365b0
    • Manuel Lauss's avatar
      MIPS: Alchemy: move calc_clock function. · 2699cdfb
      Manuel Lauss authored
      
      Now that nothing in time.c depends on calc_clock, it can
      be moved to clocks.c where it belongs.
      While at it, give it a better non-generic name and call it
      as soon as possible in plat_mem_init.
      
      Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      2699cdfb
    • Manuel Lauss's avatar
      MIPS: Alchemy: remove cpu_table. · 074cf656
      Manuel Lauss authored
      
      Remove the cpu_table:
      - move detection of whether c0_config[OD] is read-only and should be set
        to fix various chip errata to au1000 headers.
      - move detection of write-only sys_cpupll to au1000 headers.
      - remove the BCLK switching code:  Activation of this features should be
        left to the boards using the chips since it also affects external devices
        tied to BCLK, and only the board designers know whether it is safe to
        enable.
      
      Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      
       delete mode 100644 arch/mips/alchemy/common/cputable.c
      074cf656
    • Manuel Lauss's avatar
      MIPS: Alchemy: remove get/set_au1x00_lcd_clock(). · 1820ec1d
      Manuel Lauss authored
      
      There are no in-tree users, so remove them.
      
      Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      1820ec1d
    • Manuel Lauss's avatar
      MIPS: Alchemy: update core interrupt code. · 785e3268
      Manuel Lauss authored
      
      This patch attempts to modernize core Alchemy interrupt handling code.
      
      - add irq_chips for irq controllers instead of irq type,
      - add a set_type() hook to change irq trigger type during runtime,
      - add a set_wake() hook to control GPIO0..7 based wakeup,
      - use linux' IRQF_TRIGGER_ constants instead of homebrew ones,
      - enable GENERIC_HARDIRQS_NO__DO_IRQ.
      - simplify plat_irq_dispatch
      - merge au1xxx_irqmap into irq.c file, the only place where its
        contents are referenced.
      - board_init_irq() is now mandatory for every board; use it to register
        the remaining (gpio-based) interrupt sources; update all boards
        accordingly.
      
      Run-tested on Db1200 and other Au1200 based platforms.
      
      Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      
       delete mode 100644 arch/mips/alchemy/common/au1xxx_irqmap.c
      785e3268
  4. Oct 11, 2008
  5. Jun 16, 2008
  6. May 24, 2008
  7. May 12, 2008
    • Sergei Shtylyov's avatar
      [MIPS] Alchemy common headers style cleanup · ff6814d5
      Sergei Shtylyov authored
      
      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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      ff6814d5
  8. Apr 28, 2008
  9. Apr 01, 2008
    • Sergei Shtylyov's avatar
      [MIPS] Alchemy: work around clock misdetection on early Au1000 · 758e285f
      Sergei Shtylyov authored
      
      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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      758e285f
  10. Dec 14, 2007
  11. Dec 06, 2007
  12. Oct 17, 2007
  13. Oct 16, 2007
  14. Oct 11, 2007
  15. Feb 06, 2007
    • Alexander Bigga's avatar
      [MIPS] Alchemy: Fix PCI-memory access · fd046eb5
      Alexander Bigga authored
      
      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: default avatarAlexander Bigga <ab@mycable.de>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      fd046eb5
    • Ralf Baechle's avatar
      [MIPS] Alchemy: Fix bunch of warnings · 786d7cdd
      Ralf Baechle authored
      
        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: default avatarRalf Baechle <ralf@linux-mips.org>
      786d7cdd
  16. Apr 26, 2006
  17. Feb 07, 2006
  18. Jan 10, 2006
  19. Oct 29, 2005
  20. Sep 05, 2005
  21. Apr 16, 2005
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
Loading