1. 26 5月, 2009 4 次提交
    • T
    • C
      davinci: use 32-bit accesses for low-level debug macros · 17eb1570
      Chaithrika U S 提交于
      This patch defines debug macros for low-level debugging for Davinci
      based platforms
      
      Tested on :
              - DM644x DaVinci EVM
              - DM646X DaVinciHD EVM
      	- DM355 EVM
      
      This patch attempts to solve the low-level debug issue in DM646x. The
      UART on DM646x SoC allows only 32-bit access. The existing
      debug-macro.S uses the macros from debug-8250.S file. This led to
      garbage serial out in the case of DM646x.
      
      The inclusion of debug-8250.S does not allow for run time fix for this
      issue.  There are compile time errors due to multiple definitions of
      the macros.  Also when building a single image for multiple DaVinci
      Platforms, the ifdefs cannot be relied upon.
      
      The solution below does not include the debug-8250.S file and defines
      the necessary macros. This solution was arrived at after observing
      that word access does not affect the low-level debug messages on
      DM644x/DM355.
      
      The other approach to this issue is to use the UART module information
      available in the peripheral registers to decide the access
      mechanism. But this will have to be done for every access of UART
      specifically for DM646x. Also this calls for a modification of the
      debug-8250.S file.
      Signed-off-by: NChaithrika U S <chaithrika@ti.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      17eb1570
    • K
      davinci: fixups for banked GPIO interrupt handling · dc756026
      Kevin Hilman 提交于
      This patch seems to get me much more reliable performance using the
      GPIO banked interrupts on dm355 for the dm9000 driver.
      
      Changes include:
      
      - init GPIO handling along with normal GPIO init
      - mask the level-sensitive bank IRQ during handling
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      dc756026
    • D
      davinci: gpio irq enable tweaks · df4aab46
      David Brownell 提交于
      Fix two IRQ triggering bugs affecting GPIO IRQs:
      
       - Make sure enabling with IRQ_TYPE_NONE ("default, unspecified")
         isn't a NOP ... default to both edges, at least one must work.
      
       - As noted by Kevin Hilman, setting the irq trigger type for a
         banked gpio interrupt shouldn't enable irqs that are disabled.
      
      Since GPIO IRQs haven't been used much yet, it's not clear these
      bugs could have affected anything.  The few current users don't
      seem to have been obviously suffering from these issues.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      df4aab46
  2. 15 5月, 2009 1 次提交
  3. 07 5月, 2009 1 次提交
  4. 28 4月, 2009 11 次提交
  5. 24 4月, 2009 3 次提交
  6. 22 4月, 2009 1 次提交
  7. 07 4月, 2009 1 次提交
  8. 20 3月, 2009 2 次提交
    • D
      [MTD] [NAND] davinci_nand driver · ff4569c7
      David Brownell 提交于
      This is a device driver for the NAND flash controller found on the various
      DaVinci family chips.  It handles up to four SoC chipselects, and some
      flavors of secondary chipselect (e.g.  based on upper bits of the address
      bus) as used with some multichip packages.  (Including the 2 GiB chips
      used on some TI devel boards.)
      
      The 1-bit ECC hardware is supported (3 bytes ECC per 512 bytes data); but
      not yet the newer 4-bit ECC (10 bytes ECC per 512 bytes data), as
      available on chips like the DM355 or OMAP-L137 and needed with the more
      error-prone MLC NAND chips.
      
      This is a cleaned-up version of code that's been in use for several years
      now; sanity checked with the new drivers/mtd/tests.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NSudhakar Rajashekhara <sudhakar.raj@ti.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      ff4569c7
    • R
      [ARM] pass reboot command line to arch_reset() · be093beb
      Russell King 提交于
      OMAP wishes to pass state to the boot loader upon reboot in order to
      instruct it whether to wait for USB-based reflashing or not.  There is
      already a facility to do this via the reboot() syscall, except we ignore
      the string passed to machine_restart().
      
      This patch fixes things to pass this string to arch_reset().  This means
      that we keep the reboot mode limited to telling the kernel _how_ to
      perform the reboot which should be independent of what we request the
      boot loader to do.
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      be093beb
  9. 28 2月, 2009 1 次提交
    • D
      usb: musb: make Davinci *work* in mainline · 34f32c97
      David Brownell 提交于
      Now that the musb build fixes for DaVinci got merged (RC3?), kick in
      the other bits needed to get it finally *working* in mainline:
      
       - Use clk_enable()/clk_disable() ... the "always enable USB clocks"
         code this originally relied on has since been removed.
      
       - Initialize the USB device only after the relevant I2C GPIOs are
         available, so the host side can properly enable VBUS.
      
       - Tweak init sequencing to cope with mainline's relatively late init
         of the I2C system bus for power switches, transceivers, and so on.
      
      Sanity tested on DM6664 EVM for host and peripheral modes; that system
      won't boot with CONFIG_PM enabled, so OTG can't yet be tested.  Also
      verified on OMAP3.
      
      (Unrelated:  correct the MODULE_PARM_DESC spelling of musb_debug.)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Felipe Balbi <me@felipebalbi.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      34f32c97
  10. 28 1月, 2009 1 次提交
  11. 24 1月, 2009 1 次提交
  12. 09 1月, 2009 1 次提交
    • R
      [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c · 80b02c17
      Russell King 提交于
      arch/arm/mach-at91/at91cap9.c:337: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91rm9200.c:301: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9260.c:351: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9261.c:287: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9263.c:312: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-at91/at91sam9rl.c:304: error: 'NR_AIC_IRQS' undeclared here (not in a function)
      arch/arm/mach-h720x/h7202-eval.c:38: error: implicit declaration of function 'IRQ_CHAINED_GPIOB'
      arch/arm/mach-ks8695/devices.c:46: error: 'KS8695_IRQ_WAN_RX_STATUS' undeclared here (not in a function)
      arch/arm/mach-msm/devices.c:28: error: 'INT_UART1' undeclared here (not in a function)
      arch/arm/mach-mx2/devices.c:233: error: 'MXC_GPIO_IRQ_START' undeclared here (not in a function)
      arch/arm/mach-mx3/devices.c:128: error: 'MXC_GPIO_IRQ_START' undeclared here (not in a function)
      arch/arm/mach-omap1/mcbsp.c:140: error: 'INT_730_McBSP1RX' undeclared here (not in a function)
      arch/arm/mach-omap1/mcbsp.c:165: error: 'INT_McBSP1RX' undeclared here (not in a function)
      arch/arm/mach-omap1/mcbsp.c:200: error: 'INT_McBSP1RX' undeclared here (not in a function)
      arch/arm/mach-omap2/board-apollon.c:286: error: implicit declaration of function 'omap_set_gpio_direction'
      arch/arm/mach-omap2/mcbsp.c:154: error: 'INT_24XX_MCBSP1_IRQ_RX' undeclared here (not in a function)
      arch/arm/mach-omap2/mcbsp.c:181: error: 'INT_24XX_MCBSP1_IRQ_RX' undeclared here (not in a function)
      arch/arm/mach-pxa/e350.c:36: error: 'IRQ_BOARD_START' undeclared here (not in a function)
      arch/arm/plat-s3c/dev-i2c0.c:32: error: 'IRQ_IIC' undeclared here (not in a function)
      ...
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      80b02c17
  13. 13 12月, 2008 1 次提交
  14. 30 11月, 2008 4 次提交
  15. 29 11月, 2008 1 次提交
  16. 28 11月, 2008 1 次提交
    • N
      [ARM] remove a common set of __virt_to_bus definitions · b5ee9002
      Nicolas Pitre 提交于
      Let's provide an overridable default instead of having every machine
      class define __virt_to_bus and __bus_to_virt to the same thing.  What
      most platforms are using is bus_addr == phys_addr so such is the default.
      
      One exception is ebsa110 which has no DMA what so ever, so the actual
      definition is not important except only for proper compilation.  Also
      added a comment about the special footbridge bus translation.
      
      Let's also remove comments alluding to set_dma_addr which is not
      (and should not) be commonly used.
      Signed-off-by: NNicolas Pitre <nico@marvell.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b5ee9002
  17. 09 10月, 2008 1 次提交
  18. 18 9月, 2008 1 次提交
  19. 17 9月, 2008 3 次提交