Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
351080e2
Commit
351080e2
authored
17 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://www.denx.de/git/u-boot-sh
parents
8d54477b
55ed1516
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/serial/serial_sh.c
+14
-18
14 additions, 18 deletions
drivers/serial/serial_sh.c
include/configs/ms7720se.h
+0
-7
0 additions, 7 deletions
include/configs/ms7720se.h
with
14 additions
and
25 deletions
drivers/serial/serial_sh.c
+
14
−
18
View file @
351080e2
/*
/*
* SuperH SCIF device driver.
* SuperH SCIF device driver.
* Copyright (c) 2007 Nobuhiro Iwamatsu
* Copyright (c) 2007
,2008
Nobuhiro Iwamatsu
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#define SCSCR (vu_short *)(SCIF_BASE + 0x8)
#define SCSCR (vu_short *)(SCIF_BASE + 0x8)
#define SCFCR (vu_short *)(SCIF_BASE + 0x18)
#define SCFCR (vu_short *)(SCIF_BASE + 0x18)
#define SCFDR (vu_short *)(SCIF_BASE + 0x1C)
#define SCFDR (vu_short *)(SCIF_BASE + 0x1C)
#ifdef CONFIG_SH7720
/* SH7720 specific */
#ifdef CONFIG_
CPU_
SH7720
/* SH7720 specific */
#define SCFSR (vu_short *)(SCIF_BASE + 0x14)
/* SCSSR */
#define SCFSR (vu_short *)(SCIF_BASE + 0x14)
/* SCSSR */
#define SCFTDR (vu_char *)(SCIF_BASE + 0x20)
#define SCFTDR (vu_char *)(SCIF_BASE + 0x20)
#define SCFRDR (vu_char *)(SCIF_BASE + 0x24)
#define SCFRDR (vu_char *)(SCIF_BASE + 0x24)
...
@@ -57,12 +57,19 @@
...
@@ -57,12 +57,19 @@
#define SCLSR (vu_short *)(SCIF_BASE + 0x24)
#define SCLSR (vu_short *)(SCIF_BASE + 0x24)
#define LSR_ORER 1
#define LSR_ORER 1
#elif defined (CONFIG_SH3)
#elif defined (CONFIG_SH3)
#ifdef CONFIG_SH7720
/* SH7720 specific */
#ifdef CONFIG_CPU_SH7720
/* SH7720 specific */
# define SCLSR SCFSR
/* SCSSR */
#define SCLSR (vu_short *)(SCIF_BASE + 0x24)
#define LSR_ORER 0x0200
#else
#else
# define SCLSR (vu_short *)(SCIF_BASE + 0x24)
#define SCLSR SCFSR
/* SCSSR */
#define LSR_ORER 1
#endif
#endif
#define LSR_ORER 0x0200
#endif
#if defined(CONFIG_CPU_SH7720)
#define SCBRR_VALUE(bps, clk) (((clk*2)+16*bps)/(32*bps)-1)
#else
/* Generic SuperH */
#define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(32*bps)-1)
#endif
#endif
#define SCR_RE (1 << 4)
#define SCR_RE (1 << 4)
...
@@ -82,18 +89,7 @@
...
@@ -82,18 +89,7 @@
void
serial_setbrg
(
void
)
void
serial_setbrg
(
void
)
{
{
DECLARE_GLOBAL_DATA_PTR
;
DECLARE_GLOBAL_DATA_PTR
;
*
SCBRR
=
SCBRR_VALUE
(
gd
->
baudrate
,
CONFIG_SYS_CLK_FREQ
);
#if defined(CONFIG_CPU_SH7720)
int
divisor
=
gd
->
baudrate
*
16
;
*
SCBRR
=
(
CONFIG_SYS_CLK_FREQ
*
2
+
(
divisor
/
2
))
/
(
gd
->
baudrate
*
32
)
-
1
;
#else
int
divisor
=
gd
->
baudrate
*
32
;
*
SCBRR
=
(
CONFIG_SYS_CLK_FREQ
+
(
divisor
/
2
))
/
(
gd
->
baudrate
*
32
)
-
1
;
#endif
}
}
int
serial_init
(
void
)
int
serial_init
(
void
)
...
...
This diff is collapsed.
Click to expand it.
include/configs/ms7720se.h
+
0
−
7
View file @
351080e2
...
@@ -40,13 +40,6 @@
...
@@ -40,13 +40,6 @@
#define CONFIG_CMD_IDE
#define CONFIG_CMD_IDE
#define CONFIG_CMD_EXT2
#define CONFIG_CMD_EXT2
#define CFG_CMD_PCMCIA 0x01
#define CFG_CMD_IDE 0x02
#define CONFIG_COMMANDS ((CONFIG_CMD_DFL | \
CFG_CMD_IDE|CFG_CMD_PCMCIA) & \
~(CFG_CMD_FPGA))
#define CONFIG_BAUDRATE 115200
#define CONFIG_BAUDRATE 115200
#define CONFIG_BOOTARGS "console=ttySC0,115200"
#define CONFIG_BOOTARGS "console=ttySC0,115200"
#define CONFIG_BOOTFILE /boot/zImage
#define CONFIG_BOOTFILE /boot/zImage
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment