1. 23 6月, 2009 1 次提交
  2. 19 5月, 2009 2 次提交
  3. 31 12月, 2008 2 次提交
    • A
      powerpc/qe: Select QE_USB with USB_GADGET_FSL_QE · 068e8c9d
      Anton Vorontsov 提交于
      Boards should know when QE_USB is used, so that they can configure USB
      clocks and pins.
      
      Another option would be to add 'select QE_USB' into USB_GADGET_FSL_QE,
      but selects are evil since they don't support dependencies.
      
      While at it, also remove 'host' from the symbol description, since the
      QE_USB code is used to support the gadget driver as well.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      068e8c9d
    • A
      powerpc/qe: Implement QE Pin Multiplexing API · 1b9e8904
      Anton Vorontsov 提交于
      With this API we're able to set a QE pin to the GPIO mode or a dedicated
      peripheral function.
      
      The API relies on the fact that QE gpio controllers are registered. If
      they aren't, the API won't work (gracefully though).
      
      There is one caveat though: if anybody occupied the node->data before us,
      or overwrote it, then bad things will happen. Luckily this is all in the
      platform code that we fully control, so this should never happen.
      
      I could implement more checks (for example we could create a list of
      successfully registered QE controllers, and compare the node->data in the
      qe_pin_request()), but this is unneeded if nobody is going to do silly
      things behind our back.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      1b9e8904
  4. 04 12月, 2008 1 次提交
  5. 14 10月, 2008 1 次提交
  6. 21 8月, 2008 1 次提交
  7. 26 7月, 2008 1 次提交
    • M
      gpiolib: allow user-selection · 7444a72e
      Michael Buesch 提交于
      This patch adds functionality to the gpio-lib subsystem to make it
      possible to enable the gpio-lib code even if the architecture code didn't
      request to get it built in.
      
      The archtitecture code does still need to implement the gpiolib accessor
      functions in its asm/gpio.h file.  This patch adds the implementations for
      x86 and PPC.
      
      With these changes it is possible to run generic GPIO expansion cards on
      every architecture that implements the trivial wrapper functions.  Support
      for more architectures can easily be added.
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
      Cc: Jesper Nilsson <jesper.nilsson@axis.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Samuel Ortiz <sameo@openedhand.com>
      Cc: Kumar Gala <galak@gate.crashing.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Adrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7444a72e
  8. 17 7月, 2008 1 次提交
  9. 26 6月, 2008 1 次提交
  10. 12 6月, 2008 1 次提交
  11. 11 6月, 2008 2 次提交
  12. 10 6月, 2008 2 次提交
  13. 09 6月, 2008 2 次提交
  14. 17 4月, 2008 3 次提交
  15. 01 4月, 2008 1 次提交
  16. 11 3月, 2008 1 次提交
  17. 07 3月, 2008 1 次提交
  18. 06 2月, 2008 1 次提交
  19. 28 1月, 2008 1 次提交
  20. 25 1月, 2008 1 次提交
  21. 24 1月, 2008 2 次提交
  22. 14 12月, 2007 1 次提交
    • T
      [POWERPC] qe: add function qe_clock_source() · 174b0da2
      Timur Tabi 提交于
      Add function qe_clock_source() which takes a string containing the name of a
      QE clock source (as is typically found in device trees) and returns the
      matching enum qe_clock value.
      
      Update booting-without-of.txt to indicate that the UCC properties rx-clock
      and tx-clock are deprecated and replaced with rx-clock-name and tx-clock-name,
      which use strings instead of numbers to indicate QE clock sources.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      174b0da2
  23. 12 12月, 2007 1 次提交
  24. 08 10月, 2007 3 次提交
    • A
      [POWERPC] QE: pario - support for MPC85xx layout · 321872dc
      Anton Vorontsov 提交于
      8 bytes padding required to match MPC85xx registers layout.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Reviewed-by: NKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      321872dc
    • A
      [POWERPC] QEIC: Implement pluggable handlers, fix MPIC cascading · cccd2102
      Anton Vorontsov 提交于
      set_irq_chained_handler overwrites MPIC's handle_irq function
      (handle_fasteoi_irq) thus MPIC never gets eoi event from the
      cascaded IRQ. This situation hangs MPIC on MPC8568E.
      
      To solve this problem efficiently, QEIC needs pluggable handlers,
      specific to the underlaying interrupt controller.
      
      Patch extends qe_ic_init() function to accept low and high interrupt
      handlers. To avoid #ifdefs, stack of interrupt handlers specified in
      the header file and functions are marked 'static inline', thus
      handlers are compiled-in only if actually used (in the board file).
      Another option would be to lookup for parent controller and
      automatically detect handlers (will waste text size because of
      never used handlers, so this option abolished).
      
      qe_ic_init() also changed in regard to support multiplexed high/low
      lines as found in MPC8568E-MDS, plus qe_ic_cascade_muxed_mpic()
      handler implemented appropriately.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      cccd2102
    • T
      [POWERPC] qe: miscellaneous code improvements and fixes to the QE library · 6b0b594b
      Timur Tabi 提交于
      This patch makes numerous miscellaneous code improvements to the QE library.
      
      1. Remove struct ucc_common and merge ucc_init_guemr() into ucc_set_type()
         (every caller of ucc_init_guemr() also calls ucc_set_type()).  Modify all
         callers of ucc_set_type() accordingly.
      
      2. Remove the unused enum ucc_pram_initial_offset.
      
      3. Refactor qe_setbrg(), also implement work-around for errata QE_General4.
      
      4. Several printk() calls were missing the terminating \n.
      
      5. Add __iomem where needed, and change u16 to __be16 and u32 to __be32 where
         appropriate.
      
      6. In ucc_slow_init() the RBASE and TBASE registers in the PRAM were programmed
         with the wrong value.
      
      7. Add the protocol type to struct us_info and updated ucc_slow_init() to
         use it, instead of always programming QE_CR_PROTOCOL_UNSPECIFIED.
      
      8. Rename ucc_slow_restart_x() to ucc_slow_restart_tx()
      
      9. Add several macros in qe.h (mostly for slow UCC support, but also to
         standardize some naming convention) and remove several unused macros.
      
      10. Update ucc_geth.c to use the new macros.
      
      11. Add ucc_slow_info.protocol to specify which QE_CR_PROTOCOL_xxx protcol
          to use when initializing the UCC in ucc_slow_init().
      
      12. Rename ucc_slow_pram.rfcr to rbmr and ucc_slow_pram.tfcr to tbmr, since
          these are the real names of the registers.
      
      13. Use the setbits, clrbits, and clrsetbits where appropriate.
      
      14. Refactor ucc_set_qe_mux_rxtx().
      
      15. Remove all instances of 'volatile'.
      
      16. Simplify get_cmxucr_reg();
      
      17. Replace qe_mux.cmxucrX with qe_mux.cmxucr[].
      
      18. Updated struct ucc_geth because struct ucc_fast is not padded any more.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      6b0b594b
  25. 13 9月, 2007 1 次提交
  26. 03 7月, 2007 1 次提交
  27. 23 5月, 2007 1 次提交
  28. 10 5月, 2007 1 次提交
    • T
      [POWERPC] Change rheap functions to use ulongs instead of pointers · 4c35630c
      Timur Tabi 提交于
      The rheap allocation functions return a pointer, but the actual value is based
      on how the heap was initialized, and so it can be anything, e.g. an offset
      into a buffer.  A ulong is a better representation of the value returned by
      the allocation functions.
      
      This patch changes all of the relevant rheap functions to use a unsigned long
      integers instead of a pointer.  In case of an error, the value returned is
      a negative error code that has been cast to an unsigned long.  The caller can
      use the IS_ERR_VALUE() macro to check for this.
      
      All code which calls the rheap functions is updated accordingly.  Macros
      IS_MURAM_ERR() and IS_DPERR(), have been deleted in favor of IS_ERR_VALUE().
      
      Also added error checking to rh_attach_region().
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      4c35630c
  29. 28 4月, 2007 1 次提交
  30. 13 4月, 2007 1 次提交