-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 26512 b: refs/heads/master c: 6e19769 h: refs/heads/master v: v3
- Loading branch information
Vitaly Bordug
authored and
Paul Mackerras
committed
May 3, 2006
1 parent
17c8a79
commit 73d2b61
Showing
7 changed files
with
105 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 61f5657c50341198ff05e375e6f1fc0476556562 | ||
refs/heads/master: 6e1976961c9bd9a3dc368139fab1883961efc879 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Platform information definitions for the CPM Uart driver. | ||
* | ||
* 2006 (c) MontaVista Software, Inc. | ||
* Vitaly Bordug <vbordug@ru.mvista.com> | ||
* | ||
* This file is licensed under the terms of the GNU General Public License | ||
* version 2. This program is licensed "as is" without any warranty of any | ||
* kind, whether express or implied. | ||
*/ | ||
|
||
#ifndef FS_UART_PD_H | ||
#define FS_UART_PD_H | ||
|
||
#include <linux/version.h> | ||
#include <asm/types.h> | ||
|
||
enum fs_uart_id { | ||
fsid_smc1_uart, | ||
fsid_smc2_uart, | ||
fsid_scc1_uart, | ||
fsid_scc2_uart, | ||
fsid_scc3_uart, | ||
fsid_scc4_uart, | ||
fs_uart_nr, | ||
}; | ||
|
||
static inline int fs_uart_id_scc2fsid(int id) | ||
{ | ||
return fsid_scc1_uart + id - 1; | ||
} | ||
|
||
static inline int fs_uart_id_fsid2scc(int id) | ||
{ | ||
return id - fsid_scc1_uart + 1; | ||
} | ||
|
||
static inline int fs_uart_id_smc2fsid(int id) | ||
{ | ||
return fsid_smc1_uart + id - 1; | ||
} | ||
|
||
static inline int fs_uart_id_fsid2smc(int id) | ||
{ | ||
return id - fsid_smc1_uart + 1; | ||
} | ||
|
||
struct fs_uart_platform_info { | ||
void(*init_ioports)(void); | ||
/* device specific information */ | ||
int fs_no; /* controller index */ | ||
u32 uart_clk; | ||
u8 tx_num_fifo; | ||
u8 tx_buf_size; | ||
u8 rx_num_fifo; | ||
u8 rx_buf_size; | ||
u8 brg; | ||
}; | ||
|
||
#endif |