Commit 9660e442de66e7a80513b30e5226eeec73b9c17a
Committed by
Wolfgang Denk
1 parent
deb5ca8027
Exists in
master
and in
54 other branches
cosmetic: s/BOARD_LATE_INIT/CONFIG_BOARD_LATE_INIT
This renames BOARD_LATE_INIT to CONFIG_BOARD_LATE_INIT. Along the way it removes some leftover #define BOARD_LATE_INIT 1 and adds some basic documentation for board specific callbacks in README. Signed-off-by: Helmut Raiger <helmut.raiger@hale.at> Acked-by: Stefano Babic <sbabic@denx.de>
Showing 34 changed files with 49 additions and 35 deletions Side-by-side Diff
- README
- arch/arm/lib/board.c
- arch/sandbox/lib/board.c
- arch/sh/lib/board.c
- board/freescale/mx35pdk/mx35pdk.c
- board/freescale/mx51evk/mx51evk.c
- board/imx31_phycore/imx31_phycore.c
- board/st-ericsson/u8500/u8500_href.c
- include/configs/VCMA9.h
- include/configs/cerf250.h
- include/configs/colibri_pxa270.h
- include/configs/efikamx.h
- include/configs/imx31_phycore.h
- include/configs/jadecpu.h
- include/configs/lubbock.h
- include/configs/ms7750se.h
- include/configs/mx1ads.h
- include/configs/mx31pdk.h
- include/configs/mx35pdk.h
- include/configs/mx51evk.h
- include/configs/mx53evk.h
- include/configs/nhk8815.h
- include/configs/pleb2.h
- include/configs/pxa255_idp.h
- include/configs/qong.h
- include/configs/r2dplus.h
- include/configs/sh7757lcr.h
- include/configs/trizepsiv.h
- include/configs/tx25.h
- include/configs/u8500_href.h
- include/configs/vision2.h
- include/configs/xaeniax.h
- include/configs/zipitz2.h
- include/configs/zmx25.h
README
... | ... | @@ -2447,6 +2447,20 @@ |
2447 | 2447 | |
2448 | 2448 | See also: doc/README.Modem |
2449 | 2449 | |
2450 | +Board initialization settings: | |
2451 | +------------------------------ | |
2452 | + | |
2453 | +During Initialization u-boot calls a number of board specific functions | |
2454 | +to allow the preparation of board specific prerequisites, e.g. pin setup | |
2455 | +before drivers are initialized. To enable these callbacks the | |
2456 | +following configuration macros have to be defined. Currently this is | |
2457 | +architecture specific, so please check arch/your_architecture/lib/board.c | |
2458 | +typically in board_init_f() and board_init_r(). | |
2459 | + | |
2460 | +- CONFIG_BOARD_EARLY_INIT_F: Call board_early_init_f() | |
2461 | +- CONFIG_BOARD_EARLY_INIT_R: Call board_early_init_r() | |
2462 | +- CONFIG_BOARD_LATE_INIT: Call board_late_init() | |
2463 | +- CONFIG_BOARD_POSTCLK_INIT: Call board_postclk_init() | |
2450 | 2464 | |
2451 | 2465 | Configuration Settings: |
2452 | 2466 | ----------------------- |
arch/arm/lib/board.c
arch/sandbox/lib/board.c
arch/sh/lib/board.c
board/freescale/mx35pdk/mx35pdk.c
... | ... | @@ -38,8 +38,8 @@ |
38 | 38 | #include <asm/arch/sys_proto.h> |
39 | 39 | #include <netdev.h> |
40 | 40 | |
41 | -#ifndef BOARD_LATE_INIT | |
42 | -#error "BOARD_LATE_INIT must be set for this board" | |
41 | +#ifndef CONFIG_BOARD_LATE_INIT | |
42 | +#error "CONFIG_BOARD_LATE_INIT must be set for this board" | |
43 | 43 | #endif |
44 | 44 | |
45 | 45 | #ifndef CONFIG_BOARD_EARLY_INIT_F |
board/freescale/mx51evk/mx51evk.c
board/imx31_phycore/imx31_phycore.c
board/st-ericsson/u8500/u8500_href.c
... | ... | @@ -226,7 +226,7 @@ |
226 | 226 | 0xA03FE024, 0x00000000 /* USB */ |
227 | 227 | }; |
228 | 228 | |
229 | -#ifdef BOARD_LATE_INIT | |
229 | +#ifdef CONFIG_BOARD_LATE_INIT | |
230 | 230 | #ifdef CONFIG_MMC |
231 | 231 | |
232 | 232 | #define LDO_VAUX3_MASK 0x3 |
... | ... | @@ -351,7 +351,7 @@ |
351 | 351 | |
352 | 352 | return 0; |
353 | 353 | } |
354 | -#endif /* BOARD_LATE_INIT */ | |
354 | +#endif /* CONFIG_BOARD_LATE_INIT */ | |
355 | 355 | |
356 | 356 | static void early_gpio_setup(struct gpio_register *gpio_reg, u32 bits) |
357 | 357 | { |
include/configs/VCMA9.h
include/configs/cerf250.h
include/configs/colibri_pxa270.h
include/configs/efikamx.h
include/configs/imx31_phycore.h
include/configs/jadecpu.h
include/configs/lubbock.h
include/configs/ms7750se.h
include/configs/mx1ads.h
include/configs/mx31pdk.h
include/configs/mx35pdk.h
include/configs/mx51evk.h
include/configs/mx53evk.h
include/configs/nhk8815.h
... | ... | @@ -96,7 +96,7 @@ |
96 | 96 | #define CONFIG_SYS_MEMTEST_END 0x0FFFFFFF |
97 | 97 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 256 * 1024) |
98 | 98 | |
99 | -#define BOARD_LATE_INIT /* call board_late_init during start up */ | |
99 | +#define CONFIG_BOARD_LATE_INIT /* call board_late_init during start up */ | |
100 | 100 | |
101 | 101 | /* timing informazion */ |
102 | 102 | #define CONFIG_SYS_HZ 1000 /* Mandatory... */ |
include/configs/pleb2.h
include/configs/pxa255_idp.h
include/configs/qong.h
include/configs/r2dplus.h
include/configs/sh7757lcr.h
... | ... | @@ -107,7 +107,7 @@ |
107 | 107 | #define SH7757LCR_ETHERNET_MAC_BASE SH7757LCR_ETHERNET_MAC_BASE_SPI |
108 | 108 | #define SH7757LCR_ETHERNET_MAC_SIZE 17 |
109 | 109 | #define SH7757LCR_ETHERNET_NUM_CH 2 |
110 | -#define BOARD_LATE_INIT 1 | |
110 | +#define CONFIG_BOARD_LATE_INIT | |
111 | 111 | |
112 | 112 | /* Gigabit Ether */ |
113 | 113 | #define SH7757LCR_GIGA_ETHERNET_NUM_CH 2 |
include/configs/trizepsiv.h
include/configs/tx25.h
include/configs/u8500_href.h
include/configs/vision2.h
include/configs/xaeniax.h
include/configs/zipitz2.h
include/configs/zmx25.h