remove unused typedef
[barebox-mini2440.git] / board / board.dox
blob466fc591ed60c29eb941f78ecdffb42a18235427
1 /** @page dev_board Adapting a new Board
3 To add a new board to U-Boot a few steps must be done, to extend and modify
4 the U-Boot source tree.
6 @section board_add_files Files/Directories to be added
8  - board/\<boardname\>
9  - board/\<boardname\>/Makefile
10  - board/\<boardname\>/\<boardname\>.c
11  - board/\<boardname\>/\<boardname\>.dox
12  - include/configs/\<boardname\>.h
13  - arch/\<architecture\>/configs/\<boardname\>_defconfig
15 @subsection board_makefile board/\<boardname\>Makefile
17 @verbatim
18         obj-y += all files that builds the BSP (Assembler and/or C files)
19 @endverbatim
21 @subsection board_basefile board/\<boardname\>\<boardname\>.c
23 TBD
25 @subsection board_doxygen board/\<boardname\>/\<boardname\>.dox
27 This file should describe in short words your new board, what CPU
28 it uses, what resources are provided and features it supports.
30 Use the doxygen style for this kind of documentation. Below you find a
31 template for this kind of file:
33 @verbatim
34 /** @page <boardname> <Manufacturer> <Board's Name>
36 This board uses an <architecture> based CPU. The board is shipped with:
38 - many MiB NOR type Flash Memory
39 - many MiB SDRAM
40 - a very special network controller
42 and so on.
45 @endverbatim
47 To make your new shiny file visible in the automatically generated
48 documentation you must sort in the used page lable ("<boardname>" in the
49 template above) into Documentation/boards.dox as:
51 @verbatim
52  ...
53  @subpage <boardname>
54  ...
55 @endverbatim
57 at the right architecture.
59 @note Consider to use an unique page lable.
61 @subsection board_lscript board/\<boardname\>/u-boot.ld.S
63 If your board needs a special binary U-Boot layout, you can provide a local
64 board linker script file. This will replace the generic one provided by your
65 architecture or CPU support.
67 Add this file with
69 @verbatim
70         extra-y += <board_linker_script>
71 @endverbatim
73 in your local \b Makefile to the list of files, forwarded to the last linking step.
75 @section board_defconfig arch/\<architecture\>/configs/\<boardname\>_defconfig
77 TBD
79 @section board_mod_files These files needs to be modified:
81  - modify board/board.dox
82  - modify arch/\<architecture\>/Kconfig
83   - add your board (MACH_*) to the list
84   - add your default text base address for this architecture (ARCH_TEXT_BASE)
85   - add BOARDINFO with valueable info for your board
86  - modify arch/\<architecture\>/Makefile:
87   - add board-$(MACH_*) = \<your board_dir\>
89 First, the new board should be visible in the menu.
91 @section board_specific_cpu Porting hints for specific CPUs
93 @li @subpage dev_s3c24xx_mach