1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

treewide: convert bd_t to struct bd_info manually

Some code was not converted by coccinelle, somehow.

I manually fixed up the remaining, and comments, README docs.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
[trini: Add arch/arm/mach-davinci/include/mach/sdmmc_defs.h and
        include/fdt_support.h]
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Masahiro Yamada
2020-06-26 15:13:34 +09:00
committed by Tom Rini
parent b75d8dc564
commit bb5a2cf9f9
17 changed files with 22 additions and 22 deletions

View File

@@ -126,7 +126,7 @@ The following flags will be defined:
The POST layer will export the following interface routines:
o) int post_run(bd_t *bd, char *name, int flags);
o) int post_run(struct bd_info *bd, char *name, int flags);
This routine will run the test (or the group of tests) specified
by the name and flag arguments. More specifically, if the name
@@ -175,7 +175,7 @@ struct post_test {
char *cmd;
char *desc;
int flags;
int (*test)(bd_t *bd, int flags);
int (*test)(struct bd_info *bd, int flags);
};
o) name
@@ -364,7 +364,7 @@ declaration/body:
...
...
int watchdog_post_test(bd_t *bd, int flags)
int watchdog_post_test(struct bd_info *bd, int flags)
{
unsigned long start_time;

View File

@@ -27,7 +27,7 @@ At board level:
TODO: move also dram initialization there on boards where it is possible.
Setup of the the bd_t dram bank info is done in the new function
Setup of the bd_info dram bank info is done in the new function
dram_init_banksize() called after bd is accessible.
At lib level:
@@ -65,7 +65,7 @@ in f) could be saved.
TODO
- fill in bd_t infos (check)
- fill in struct bd_info infos (check)
- adapt all boards
- maybe adapt CONFIG_SYS_TEXT_BASE (this must be checked from board maintainers)

View File

@@ -47,7 +47,7 @@ the board specific file need added:
...
#ifdef CONFIG_GENERIC_ATMEL_MCI
/* this is a weak define that we are overriding */
int board_mmc_init(bd_t *bd)
int board_mmc_init(struct bd_info *bd)
{
/* Enable clock */
at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_MCI);

View File

@@ -62,7 +62,7 @@ U-Boot relocation (done in 'board_init_r' in arch/*/lib/board.c).
HOW CAN I USE STANDARD FILE INTO APPLICATIONS?
----------------------------------------------
Use the 'bd_mon_fnc' field of the bd_t structure passed to the
Use the 'bd_mon_fnc' field of the bd_info structure passed to the
application to do everything you want with the console.
But REMEMBER that that will work only if you have not overwritten any

View File

@@ -22,7 +22,7 @@ The main change is that the arch/<arch>/lib/board.c file is removed in
favour of common/board_f.c (for pre-relocation init) and common/board_r.c
(for post-relocation init).
Related to this, the global_data and bd_t structures now have a core set of
Related to this, the global_data and bd_info structures now have a core set of
fields which are common to all architectures. Architecture-specific fields
have been moved to separate structures.

View File

@@ -250,7 +250,7 @@ register function. The pseudo code would look something like:
.. code-block:: c
int ape_register(bd_t *bis, int iobase)
int ape_register(struct bd_info *bis, int iobase)
{
struct ape_priv *priv;
struct eth_device *dev;