forked from Imagelibrary/rtems
2001-10-26 Alexandra Kossovsky <sasha@oktet.ru>
* README, console/console.c, hw_init/hw_init.c, include/bsp.h, startup/bspstart.c, startup/linkcmds: Minor fixes post merge.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-10-26 Alexandra Kossovsky <sasha@oktet.ru>
|
||||||
|
|
||||||
|
* README, console/console.c, hw_init/hw_init.c, include/bsp.h,
|
||||||
|
startup/bspstart.c, startup/linkcmds: Minor fixes post merge.
|
||||||
|
|
||||||
2001-10-15 Joel Sherrill <joel@OARcorp.com>
|
2001-10-15 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* console/.cvsignore: New file.
|
* console/.cvsignore: New file.
|
||||||
|
|||||||
@@ -64,12 +64,12 @@ NOTES
|
|||||||
hw_init.c also provides 'bsp_cache_on'(void) normally called from
|
hw_init.c also provides 'bsp_cache_on'(void) normally called from
|
||||||
'start.S' after copying all data from rom to ram.
|
'start.S' after copying all data from rom to ram.
|
||||||
|
|
||||||
(3) In 'make/custom/gensh4.cfg' you should properly set 'HZ=XXXX', which
|
(3) In 'configure.ac' you should properly set 'CPU_CLOCK_RATE_HZ'.
|
||||||
is frequency fed to the CPU core (external clock frequency can be
|
It is frequency fed to the CPU core (external clock frequency can be
|
||||||
multiplied by on-chip PLLs). Please note that it is not a frequency of
|
multiplied by on-chip PLLs). Please note that it is not a frequency of
|
||||||
external oscillator! See Hardware Manual, section 10, for details.
|
external oscillator! See Hardware Manual, section 10, for details.
|
||||||
Global variable 'SH4_CPU_HZ_Frequency' is declared in 'bsp.h' and
|
Global variable 'SH4_CPU_HZ_Frequency' is declared in 'bsp.h' and
|
||||||
initilized in 'bspstart.c' to ${HZ}. It is used by console driver,
|
initilized in 'bspstart.c' to ${HZ}. It is used by sci driver,
|
||||||
which exists in 'libcpu/sh/sh7750'.
|
which exists in 'libcpu/sh/sh7750'.
|
||||||
|
|
||||||
(4) There is SH4_WITH_IPL macro in console driver 'sh4_uart.h'.
|
(4) There is SH4_WITH_IPL macro in console driver 'sh4_uart.h'.
|
||||||
|
|||||||
@@ -181,7 +181,12 @@ console_first_open(int major, int minor, void *arg)
|
|||||||
static int
|
static int
|
||||||
console_last_close(int major, int minor, void *arg)
|
console_last_close(int major, int minor, void *arg)
|
||||||
{
|
{
|
||||||
return sh4uart_disable(&sh4_uarts[minor]);
|
if (console_mode != CONSOLE_MODE_IPL)
|
||||||
|
/* working from gdb we should not disable port operations */
|
||||||
|
return sh4uart_disable(&sh4_uarts[minor],
|
||||||
|
!(boot_mode == SH4_BOOT_MODE_IPL));
|
||||||
|
else
|
||||||
|
return RTEMS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* console_reserve_resources --
|
/* console_reserve_resources --
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
|
||||||
* Author: Victor V. Vengerov <vvv@oktet.ru>
|
* Author: Victor V. Vengerov <vvv@oktet.ru>
|
||||||
|
* Alexandra Kossovsky <sasha@oktet.ru>
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
* found in the file LICENSE in this distribution or at
|
* found in the file LICENSE in this distribution or at
|
||||||
@@ -174,9 +175,7 @@ early_hw_init(void)
|
|||||||
/* Time between auto-refresh commands is 15.6 microseconds; refresh
|
/* Time between auto-refresh commands is 15.6 microseconds; refresh
|
||||||
timer counter frequency is 12 MHz; 1.56e-5*1.2e7= 187.2, therefore
|
timer counter frequency is 12 MHz; 1.56e-5*1.2e7= 187.2, therefore
|
||||||
program the refresh timer divider to 187 */
|
program the refresh timer divider to 187 */
|
||||||
/* Sasha, try to run it with period 187 -- it should work! */
|
|
||||||
write16(SH7750_RTCOR_KEY | 187, SH7750_RTCOR);
|
write16(SH7750_RTCOR_KEY | 187, SH7750_RTCOR);
|
||||||
/* write16(SH7750_RTCOR_KEY | 90, SH7750_RTCOR); */
|
|
||||||
|
|
||||||
/* Clear refresh counter */
|
/* Clear refresh counter */
|
||||||
write16(SH7750_RFCR_KEY | 0, SH7750_RFCR);
|
write16(SH7750_RFCR_KEY | 0, SH7750_RFCR);
|
||||||
|
|||||||
@@ -134,13 +134,6 @@ extern unsigned32 WorkSpaceEnd ;
|
|||||||
extern void *CPU_Interrupt_stack_low ;
|
extern void *CPU_Interrupt_stack_low ;
|
||||||
extern void *CPU_Interrupt_stack_high ;
|
extern void *CPU_Interrupt_stack_high ;
|
||||||
|
|
||||||
#if OBSOLETE
|
|
||||||
/*
|
|
||||||
* This variable is nesessary for console driver.
|
|
||||||
*/
|
|
||||||
extern rtems_unsigned32 SH4_CPU_HZ_Frequency;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Defined in start.S
|
* Defined in start.S
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -46,13 +46,6 @@ rtems_cpu_table Cpu_table;
|
|||||||
|
|
||||||
char *rtems_progname;
|
char *rtems_progname;
|
||||||
|
|
||||||
#if OBSOLETE
|
|
||||||
/*
|
|
||||||
* This variable is nesessary for console driver.
|
|
||||||
*/
|
|
||||||
unsigned32 SH4_CPU_HZ_Frequency = CPU_CLOCK_RATE_HZ;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use the shared implementations of the following routines
|
* Use the shared implementations of the following routines
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -16,10 +16,9 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
OUTPUT_FORMAT("elf32-shl", "elf32-shl",
|
OUTPUT_FORMAT("elf32-shl", "elf32-shl",
|
||||||
"elf32-shl")
|
"elf32-shl")
|
||||||
*/
|
|
||||||
OUTPUT_ARCH(sh)
|
OUTPUT_ARCH(sh)
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
/* Do we need any of these for elf?
|
/* Do we need any of these for elf?
|
||||||
|
|||||||
Reference in New Issue
Block a user