1. 30 7月, 2014 8 次提交
  2. 31 3月, 2014 1 次提交
    • M
      MIPS: Alchemy: remove duplicate UART register offset definitions · 61d3edb8
      Manuel Lauss 提交于
      The UART register names are identical to the ones in uapi/linux/serial_reg.h,
      which causes build failures in various drivers when they indirectly pull in
      the au1000.h header, for example via gpio.h:
      
      In file included from arch/mips/include/asm/mach-au1x00/gpio.h:13:0,
                       from arch/mips/include/asm/gpio.h:4,
                       from include/linux/gpio.h:48,
                       from include/linux/ssb/ssb.h:9,
                       from drivers/ssb/driver_mipscore.c:11:
      arch/mips/include/asm/mach-au1x00/au1000.h:1171:0: note: this is the location of the previous definition
       #define UART_LSR 0x1C /* Line Status Register */
      
      Get rid of the altogether, nothing in the core Alchemy code depends
      on them any more.
      Signed-off-by: NManuel Lauss <manuel.lauss@gmail.com>
      Cc: Linux-MIPS <linux-mips@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/6664/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      61d3edb8
  3. 19 9月, 2013 1 次提交
  4. 01 2月, 2013 1 次提交
  5. 08 12月, 2011 2 次提交
  6. 25 10月, 2011 5 次提交
  7. 19 5月, 2011 6 次提交
  8. 06 7月, 2010 1 次提交
  9. 22 5月, 2010 1 次提交
  10. 27 2月, 2010 9 次提交
  11. 14 5月, 2009 2 次提交
  12. 11 1月, 2009 3 次提交
    • 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: Fix up PM code on Au1550/Au1200 · 564365b0
      Manuel Lauss 提交于
      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: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      564365b0
    • M
      MIPS: Alchemy: move calc_clock function. · 2699cdfb
      Manuel Lauss 提交于
      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: NManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      2699cdfb