Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
5eaf7a21
Commit
5eaf7a21
authored
Mar 04, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new txx9 serial driver.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
cdaed73a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
29 deletions
+53
-29
arch/mips/Kconfig
arch/mips/Kconfig
+2
-0
arch/mips/jmr3927/rbhma3100/setup.c
arch/mips/jmr3927/rbhma3100/setup.c
+28
-3
arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
+23
-0
include/asm-mips/jmr3927/jmr3927.h
include/asm-mips/jmr3927/jmr3927.h
+0
-14
include/asm-mips/serial.h
include/asm-mips/serial.h
+0
-12
No files found.
arch/mips/Kconfig
View file @
5eaf7a21
...
...
@@ -635,6 +635,7 @@ config SGI_IP32
select OWN_DMA
select DMA_IP32
select DMA_NONCOHERENT
select HAS_TXX9_SERIAL
select HW_HAS_PCI
select R5000_CPU_SCACHE
select RM7000_CPU_SCACHE
...
...
@@ -814,6 +815,7 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool
select HAS_TXX9_SERIAL
config GENERIC_CALIBRATE_DELAY
bool
...
...
arch/mips/jmr3927/rbhma3100/setup.c
View file @
5eaf7a21
...
...
@@ -44,6 +44,11 @@
#include <linux/ioport.h>
#include <linux/param.h>
/* for HZ */
#include <linux/delay.h>
#ifdef CONFIG_SERIAL_TXX9
#include <linux/tty.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#endif
#include <asm/addrspace.h>
#include <asm/time.h>
...
...
@@ -211,8 +216,8 @@ void __init plat_setup(void)
*/
ioport_resource
.
start
=
pci_io_resource
.
start
;
ioport_resource
.
end
=
pci_io_resource
.
end
;
iomem_resource
.
start
=
pci_mem_resource
.
start
;
iomem_resource
.
end
=
pci_mem_resource
.
end
;
iomem_resource
.
start
=
0
;
iomem_resource
.
end
=
0xffffffff
;
/* Reboot on panic */
panic_timeout
=
180
;
...
...
@@ -265,13 +270,33 @@ void __init plat_setup(void)
strcat
(
argptr
,
" ip=bootp"
);
}
#ifdef CONFIG_TXX927_SERIAL_CONSOLE
#ifdef CONFIG_SERIAL_TXX9
{
extern
int
early_serial_txx9_setup
(
struct
uart_port
*
port
);
int
i
;
struct
uart_port
req
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
memset
(
&
req
,
0
,
sizeof
(
req
));
req
.
line
=
i
;
req
.
iotype
=
UPIO_MEM
;
req
.
membase
=
(
char
*
)
TX3927_SIO_REG
(
i
);
req
.
mapbase
=
TX3927_SIO_REG
(
i
);
req
.
irq
=
i
==
0
?
JMR3927_IRQ_IRC_SIO0
:
JMR3927_IRQ_IRC_SIO1
;
if
(
i
==
0
)
req
.
flags
|=
UPF_BUGGY_UART
/*HAVE_CTS_LINE*/
;
req
.
uartclk
=
JMR3927_IMCLK
;
early_serial_txx9_setup
(
&
req
);
}
}
#ifdef CONFIG_SERIAL_TXX9_CONSOLE
argptr
=
prom_getcmdline
();
if
((
argptr
=
strstr
(
argptr
,
"console="
))
==
NULL
)
{
argptr
=
prom_getcmdline
();
strcat
(
argptr
,
" console=ttyS1,115200"
);
}
#endif
#endif
}
static
void
tx3927_setup
(
void
);
...
...
arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
View file @
5eaf7a21
...
...
@@ -77,6 +77,11 @@
#include <linux/hdreg.h>
#include <linux/ide.h>
#endif
#ifdef CONFIG_SERIAL_TXX9
#include <linux/tty.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#endif
#undef TOSHIBA_RBTX4927_SETUP_DEBUG
...
...
@@ -920,12 +925,30 @@ void __init toshiba_rbtx4927_setup(void)
#endif
/* CONFIG_PCI */
#ifdef CONFIG_SERIAL_TXX9
{
extern
int
early_serial_txx9_setup
(
struct
uart_port
*
port
);
int
i
;
struct
uart_port
req
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
memset
(
&
req
,
0
,
sizeof
(
req
));
req
.
line
=
i
;
req
.
iotype
=
UPIO_MEM
;
req
.
membase
=
(
char
*
)(
0xff1ff300
+
i
*
0x100
);
req
.
mapbase
=
0xff1ff300
+
i
*
0x100
;
req
.
irq
=
32
+
i
;
req
.
flags
|=
UPF_BUGGY_UART
/*HAVE_CTS_LINE*/
;
req
.
uartclk
=
50000000
;
early_serial_txx9_setup
(
&
req
);
}
}
#ifdef CONFIG_SERIAL_TXX9_CONSOLE
argptr
=
prom_getcmdline
();
if
(
strstr
(
argptr
,
"console="
)
==
NULL
)
{
strcat
(
argptr
,
" console=ttyS0,38400"
);
}
#endif
#endif
#ifdef CONFIG_ROOT_NFS
argptr
=
prom_getcmdline
();
...
...
include/asm-mips/jmr3927/jmr3927.h
View file @
5eaf7a21
...
...
@@ -201,20 +201,6 @@ static inline int jmr3927_have_isac(void)
#endif
/* !__ASSEMBLY__ */
/*
* UART defines for serial.h
*/
/* use Pre-scaler T0 (1/2) */
#define JMR3927_BASE_BAUD (JMR3927_IMCLK / 2 / 16)
#define UART0_ADDR 0xfffef300
#define UART1_ADDR 0xfffef400
#define UART0_INT JMR3927_IRQ_IRC_SIO0
#define UART1_INT JMR3927_IRQ_IRC_SIO1
#define UART0_FLAGS ASYNC_BOOT_AUTOCONF
#define UART1_FLAGS 0
/*
* IRQ mappings
*/
...
...
include/asm-mips/serial.h
View file @
5eaf7a21
...
...
@@ -103,17 +103,6 @@
#define IVR_SERIAL_PORT_DEFNS
#endif
#ifdef CONFIG_TOSHIBA_JMR3927
#include <asm/jmr3927/jmr3927.h>
#define TXX927_SERIAL_PORT_DEFNS \
{ .baud_base = JMR3927_BASE_BAUD, .port = UART0_ADDR, .irq = UART0_INT, \
.flags = UART0_FLAGS, .type = 1 }, \
{ .baud_base = JMR3927_BASE_BAUD, .port = UART1_ADDR, .irq = UART1_INT, \
.flags = UART1_FLAGS, .type = 1 },
#else
#define TXX927_SERIAL_PORT_DEFNS
#endif
#ifdef CONFIG_SERIAL_AU1X00
#include <asm/mach-au1x00/au1000.h>
#ifdef CONFIG_SOC_AU1000
...
...
@@ -343,7 +332,6 @@
MOMENCO_OCELOT_C_SERIAL_PORT_DEFNS \
MOMENCO_OCELOT_SERIAL_PORT_DEFNS \
MOMENCO_OCELOT_3_SERIAL_PORT_DEFNS \
TXX927_SERIAL_PORT_DEFNS \
AU1000_SERIAL_PORT_DEFNS
#endif
/* _ASM_SERIAL_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment