1. 17 6月, 2009 1 次提交
  2. 07 4月, 2009 1 次提交
  3. 30 3月, 2009 1 次提交
  4. 11 1月, 2009 6 次提交
    • M
      MIPS: Alchemy: new userspace suspend interface for development boards. · 61f9c58d
      Manuel Lauss 提交于
      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: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
       create mode 100644 arch/mips/alchemy/devboards/pm.c
      61f9c58d
    • M
      MIPS: Alchemy: pb1200: update CPLD cascade irq handler. · 197b0d31
      Manuel Lauss 提交于
      Tested on Db1200.
      Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      197b0d31
    • M
      MIPS: Alchemy: update core interrupt code. · 785e3268
      Manuel Lauss 提交于
      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: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
       delete mode 100644 arch/mips/alchemy/common/au1xxx_irqmap.c
      785e3268
    • M
      MIPS: Alchemy: move commandline mangling out of common code · 7179380e
      Manuel Lauss 提交于
      Not every alchemy-based board might want these options forced on it,
      and most of this stuff seems to be intended for devboard code anyway.
      Remove commandline mangling code out of common chip code and instead
      add relevant sections to all in-tree boards to not change existing
      behaviour.
      Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      7179380e
    • M
      MIPS: Alchemy: devboards: consolidate files · 23ba25d5
      Manuel Lauss 提交于
      Share some code and merge small files:
      - Extract the prom init code from all devboard files (they only differ in
        memory configuration).
      - Merge the irq configuration into board setup code.
      - Merge smaller files into board setup code.
      Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
       delete mode 100644 arch/mips/alchemy/devboards/db1x00/init.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1000/init.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1000/irqmap.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1100/init.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1100/irqmap.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1200/init.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1500/init.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1500/irqmap.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1550/init.c
       delete mode 100644 arch/mips/alchemy/devboards/pb1550/irqmap.c
       create mode 100644 arch/mips/alchemy/devboards/prom.c
      23ba25d5
    • M
      MIPS: Alchemy: Move development board code to common subdirectory · 58e75e86
      Manuel Lauss 提交于
      This should ease sharing of common devboard code.
      Signed-off-by: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      58e75e86