1. 12 12月, 2009 2 次提交
    • V
      omap: serial: fix non-empty uart fifo read abort · ce13d471
      vikram pandita 提交于
      OMAP3xxx and OMAP4430 UART IP blocks have a restriction wrt RX FIFO.
      Empty RX fifo read causes an abort.
      
      OMAP3xxx:
      	UART IP revision >= 0x52 have this issue
      	MVR register format is:
      	Bits  Field Name  Description  				Type  Reset
      	31:8   RESERVED 					RO  	0x0
      	7:4    MAJOR  	Major revision number of the module.  	RO  	0x--
      	3:0    MINOR  	Minor revision number of the module.  	RO  	0x--
      
      OMAP4xxx:
      	All revisions have this issue
      	Revision id check is not used as the format of MVR resigster has changed
      	For omap4 MVR register reads as: 0x50410602 => Revision id = 0x0602
      	Format of MVR register on omap4 is: (Courtesy: Cousson, Benoit)
      	Bits  Field Name  Description  				Type  Reset
      	31:30 SCHEME  	Scheme revision number of module  	RO  	0x1
      	29:28 RESERVED   					RO  	0x1
      	27:16 FUNC  	Function revision number of module  	RO  	0x041
      	15:11 RTL  		Rtl revision number of module  	RO  	0x00
      	10:8  MAJOR 	Major revision number of the module.  	RO  	0x6
      	7:6   CUSTOM  	Custom revision number of the module.  	RO  	0x0
      	5:0   MINOR  	Minor revision number of the module.  	RO  	0x02
      
      Override the default 8250 read handler: mem_serial_in()
      by a custom handler: serial_in_8250()
      which makes sure that RX fifo is not read when empty
      
      tested on zoom3(3630) board
      
      Cc: Benoit Cousson <b-cousson@ti.com>
      Signed-off-by: NVikram Pandita <vikram.pandita@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce13d471
    • M
      OMAP3: serial - allow platforms specify which UARTs to initialize · f62349ee
      Mika Westerberg 提交于
      This patch adds new function: omap_serial_init_port(port) that can be
      used to initialize only selected UARTs as serial ports. Platforms can
      then in their board files call this function instead of omap_serial_init()
      if they don't want to use all UARTs as serial ports.
      Signed-off-by: NMika Westerberg <ext-mika.1.westerberg@nokia.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      f62349ee
  2. 23 11月, 2009 1 次提交
  3. 12 11月, 2009 1 次提交
  4. 23 10月, 2009 1 次提交
  5. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  6. 17 10月, 2009 1 次提交
  7. 25 9月, 2009 2 次提交
  8. 04 9月, 2009 1 次提交
    • P
      OMAP2/3 board-*.c files: read bootloader configuration earlier · b3c6df3a
      Paul Walmsley 提交于
      Most board-*.c files read configuration data from the bootloader in
      their .init_machine() function.  This needs to happen earlier, at some
      point before omap2_init_common_hw() is called.  This is because a
      future patch will use the bootloader serial console port information
      to enable the UART clocks earlier, immediately after omap2_clk_init().
      This is in turn necessary since otherwise clock tree usecounts on
      clocks like dpll4_m2x2_ck will be bogus, which can cause the
      currently-active console UART clock to be disabled during boot.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      b3c6df3a
  9. 03 9月, 2009 2 次提交
  10. 29 8月, 2009 3 次提交
  11. 06 8月, 2009 4 次提交
  12. 28 7月, 2009 1 次提交
  13. 29 5月, 2009 4 次提交
    • S
      ARM: OMAP4: Add minimal support for omap4 · 44169075
      Santosh Shilimkar 提交于
      This patch adds the support for OMAP4. The platform and machine specific
      headers and sources updated for OMAP4430 SDP platform.
      
      OMAP4430 is Texas Instrument's SOC based on ARM Cortex-A9 SMP architecture.
      It's a dual core SOC with GIC used for interrupt handling and SCU for cache
      coherency.
      Signed-off-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      44169075
    • V
      ARM: OMAP2/3: Serial: Remove arch_initcall dependency · 2aa57be2
      Vikram Pandita 提交于
      Move platform_device_register() for serial device to
      omap_serial_init()
      
      There is no need to have arch_initcall() dependency in serial
      as already board files call the function omap_serial_init()
      Signed-off-by: NVikram Pandita <vikram.pandita@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      2aa57be2
    • J
      OMAP: UART: Add sysfs interface for adjusting UART sleep timeout · ba87a9be
      Jouni Hogander 提交于
      This patch makes it possible to change uart sleep timeout. New sysfs
      entry is added (/sys/devices/platform/serial8250.<uart>/sleep_timeout)
      Writing zero will disable the timeout feature and prevent UART clocks
      from being disabled.
      
      Also default timeout is increased to 5 second to make serial console
      more usable.
      
      Original patch was written by Tero Kristo.
      
      Cc: Tero Kristo <Tero.Kristo@nokia.com>
      Signed-off-by: NJouni Hogander <jouni.hogander@nokia.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      ba87a9be
    • K
      OMAP3: PM: UART: disable clocks when idle and off-mode support · 4af4016c
      Kevin Hilman 提交于
      This patch allows the UART clocks to be disabled when the OMAP UARTs
      are inactive, thus permitting the chip to hit retention in idle.
      After the expiration of an activity timer, each UART is allowed to
      disable its clocks so the system can enter retention.  The activity
      timer is (re)activated on any UART interrupt, UART wake event or any
      IO pad wakeup.  The actual disable of the UART clocks is done in the
      'prepare_idle' hook called from the OMAP idle loop.
      
      While the activity timer is active, the smart-idle mode of the UART is
      also disabled.  This is due to a "feature" of the UART module that
      after a UART wakeup, the smart-idle mode may be entered before the
      UART has communicated the interrupt, or upon TX, an idle mode may be
      entered before the TX FIFOs are emptied.
      
      Upon suspend, the 'prepare_suspend' hook cancels any pending activity
      timers and allows the clocks to be disabled immediately.
      
      In addition, upon disabling clocks the UART state is saved in case
      of an off-mode transition while clocks are off.
      
      Special thanks to Tero Kristo for the initial ideas and first versions
      of UART idle support, and to Jouni Hogander for extra testing and
      bugfixes.
      
      Tested on OMAP3 (Beagle, RX51, SDP, EVM) and OMAP2 (n810)
      
      Cc: Tero Kristo <tero.kristo@nokia.com>
      Cc: Jouni Hogander <jouni.hogander@nokia.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      4af4016c
  14. 06 10月, 2008 1 次提交
  15. 06 9月, 2008 3 次提交
  16. 07 8月, 2008 1 次提交
  17. 22 8月, 2007 1 次提交
  18. 04 10月, 2006 1 次提交
  19. 23 3月, 2006 1 次提交
  20. 18 1月, 2006 1 次提交
  21. 08 1月, 2006 1 次提交
  22. 10 11月, 2005 1 次提交
    • T
      [ARM] 3145/1: OMAP 3a/5: Add support for omap24xx · 1dbae815
      Tony Lindgren 提交于
      Patch from Tony Lindgren
      
      This patch adds support for omap24xx series of processors.
      The files live in arch/arm/mach-omap2, and share common
      files with omap15xx and omap16xx processors in
      arch/arm/plat-omap.
      
      Omap24xx support was originally added for 2.6.9 by TI.
      This code was then improved and integrated to share common
      code with omap15xx and omap16xx processors by various
      omap developers, such as Paul Mundt, Juha Yrjola, Imre Deak,
      Tony Lindgren, Richard Woodruff, Nishant Menon, Komal Shah
      et al.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      1dbae815