diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 10:51:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 10:51:49 -0400 |
commit | 1dfd166e93f98892aa4427069a23ed73259983c8 (patch) | |
tree | c70a347b963091b99bd16842537153fa36e5c0e9 /drivers/serial | |
parent | 8e775167d54e6521e7cdbc03ee7ec42a8c67b49a (diff) | |
parent | 8df399018df120d28f89fda6f2515cc6e096e43d (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (110 commits)
sh: i2c-sh7760: Replase from ctrl_* to __raw_*
sh: clkfwk: Shuffle around to match the intc split up.
sh: clkfwk: modify for_each_frequency end condition
sh: fix clk_get() error handling
sh: clkfwk: Fix fault in frequency iterator.
sh: clkfwk: Add a helper for rate rounding by divisor ranges.
sh: clkfwk: Abstract rate rounding helper.
sh: clkfwk: support clock remapping.
sh: pci: Convert to upper/lower_32_bits() helpers.
sh: mach-sdk7786: Add support for the FPGA SRAM.
sh: Provide a generic SRAM pool for tiny memories.
sh: pci: Support secondary FPGA-driven PCIe clocks on SDK7786.
sh: pci: Support slot 4 routing on SDK7786.
sh: Fix up PMB locking.
sh: mach-sdk7786: Add support for fpga gpios.
sh: use pr_fmt for clock framework, too.
sh: remove name and id from struct clk
sh: free-without-alloc fix for sh_mobile_lcdcfb
sh: perf: Set up perf_max_events.
sh: perf: Support SH-X3 hardware counters.
...
Fix up trivial conflicts (perf_max_events got removed) in arch/sh/kernel/perf_event.c
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sh-sci.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h index 9b52f77a9305..d2352ac437c5 100644 --- a/drivers/serial/sh-sci.h +++ b/drivers/serial/sh-sci.h | |||
@@ -140,7 +140,15 @@ | |||
140 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ | 140 | # define SCSPTR0 0xffe00024 /* 16 bit SCIF */ |
141 | # define SCSPTR1 0xffe10024 /* 16 bit SCIF */ | 141 | # define SCSPTR1 0xffe10024 /* 16 bit SCIF */ |
142 | # define SCIF_ORER 0x0001 /* Overrun error bit */ | 142 | # define SCIF_ORER 0x0001 /* Overrun error bit */ |
143 | # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ | 143 | |
144 | #if defined(CONFIG_SH_SH2007) | ||
145 | /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=0 */ | ||
146 | # define SCSCR_INIT(port) 0x38 | ||
147 | #else | ||
148 | /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,CKE1=1 */ | ||
149 | # define SCSCR_INIT(port) 0x3a | ||
150 | #endif | ||
151 | |||
144 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ | 152 | #elif defined(CONFIG_CPU_SUBTYPE_SH7785) || \ |
145 | defined(CONFIG_CPU_SUBTYPE_SH7786) | 153 | defined(CONFIG_CPU_SUBTYPE_SH7786) |
146 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ | 154 | # define SCSPTR0 0xffea0024 /* 16 bit SCIF */ |
@@ -616,9 +624,10 @@ static inline int sci_rxd_in(struct uart_port *port) | |||
616 | * -- Mitch Davis - 15 Jul 2000 | 624 | * -- Mitch Davis - 15 Jul 2000 |
617 | */ | 625 | */ |
618 | 626 | ||
619 | #if defined(CONFIG_CPU_SUBTYPE_SH7780) || \ | 627 | #if (defined(CONFIG_CPU_SUBTYPE_SH7780) || \ |
620 | defined(CONFIG_CPU_SUBTYPE_SH7785) || \ | 628 | defined(CONFIG_CPU_SUBTYPE_SH7785) || \ |
621 | defined(CONFIG_CPU_SUBTYPE_SH7786) | 629 | defined(CONFIG_CPU_SUBTYPE_SH7786)) && \ |
630 | !defined(CONFIG_SH_SH2007) | ||
622 | #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(16*bps)-1) | 631 | #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(16*bps)-1) |
623 | #elif defined(CONFIG_CPU_SUBTYPE_SH7705) || \ | 632 | #elif defined(CONFIG_CPU_SUBTYPE_SH7705) || \ |
624 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ | 633 | defined(CONFIG_CPU_SUBTYPE_SH7720) || \ |