source: rtems/c/src/lib/libbsp/sh/gensh4/README @ 991fdb33

4.115
Last change on this file since 991fdb33 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1#  Author: Alexandra Kossovsky <sasha@oktet.ru>
2#          Victor Vengerov     <vvv@oktet.ru>
3#   OKTET Ltd, http://www.oktet.ru
4#
5
6BSP NAME:           generic SH4 (gensh4)
7BOARD:              n/a
8BUS:                n/a
9CPU FAMILY:         Hitachi SH
10CPU:                SH 7750
11COPROCESSORS:       none
12MODE:               n/a
13
14DEBUG MONITOR:      gdb (sh-ipl-g+ loader/stub)
15
16PERIPHERALS
17===========
18TIMERS:             on-chip
19SERIAL PORTS:       on-chip (with 2 ports)
20REAL-TIME CLOCK:    none
21DMA:                not used
22VIDEO:              none
23SCSI:               none
24NETWORKING:         none
25
26DRIVER INFORMATION
27==================
28CLOCK DRIVER:       on-chip timer
29IOSUPP DRIVER:      default
30SHMSUPP:            n/a
31TIMER DRIVER:       on-chip timer
32TTY DRIVER:         /dev/console
33
34STDIO
35=====
36PORT:               /dev/console
37ELECTRICAL:         n/a
38BAUD:               n/a
39BITS PER CHARACTER: n/a
40PARITY:             n/a
41STOP BITS:          n/a
42
43NOTES
44=====
45
46(1) Driver for the on-chip serial devices is tested only with 1st serial
47    port. We cannot test it on serial port with FIFO.
48
49    Console driver has 4 modes -- 2 with termios (interrupt-driven &
50    poll-driven modes), one raw mode working with serial port directly,
51    without termios, and one mode working with gdb stub (using 'trapa'
52    handled by sh-ipl-g+).
53
54(2) The present 'hw_init.c' file provides 'early_hw_init'(void) which
55    is normally called from 'start.S' to provide such minimal HW setup.
56    It is written in C, but it should be noted that any accesses to memory
57    (except hardware registers) are prohibited until hardware not
58    initialized. To avoid access to stack, hw_init.c should be compiled with
59    -fomit-frame-pointer.
60
61    hw_init.c also provides 'bsp_cache_on'(void) normally called from
62    'start.S' after copying all data from rom to ram.
63
64(3) In 'configure.ac' you should properly set 'CPU_CLOCK_RATE_HZ'.
65    It is frequency fed to the CPU core (external clock frequency can be
66    multiplied by on-chip PLLs). Please note that it is not a frequency of
67    external oscillator! See Hardware Manual, section 10, for details.
68    Global variable 'SH4_CPU_HZ_Frequency' is declared in 'bsp.h' and
69    initilized in 'bspstart.c' to ${HZ}. It is used by sci driver,
70    which exists in 'libcpu/sh/sh7750'.
71
72(4) There is SH4_WITH_IPL macro in console driver 'sh4_uart.h'.
73    When it is defined, the application works under
74    gdb-stub (it is able to turn cache on by 'trapa', use gdb mode in console
75    driver and get out from gdb to use other console modes).
76
77(5) There are 3 likcmds:
78    - linkcmds: code and data loaded to RAM. No code/data moving required.
79    - linkcmds.rom: code executed from the ROM; .data section moved to the
80    RAM on initialization.
81    - linkcmds.rom2ram: execution started from the ROM (after reset); code
82    and data moved to the RAM and execution continued from RAM.
83
84    The same 'start.S' is used for all cases.
85
86(6) You can get gdb stub from http://www.oktet.ru/download/sh4/sh-ipl.tar.gz.
87    It is based on 'sh-ipl-g+' package used in sh-linux project.
88
89(7) This project was done in cooperation with Transas company
90    http://www.transas.com
91
Note: See TracBrowser for help on using the repository browser.