Skip to content
Snippets Groups Projects
Commit 5f8f46ee authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Tom Rini
Browse files

doc: fix: Replace SPL_OF_PLATDATA with OF_PLATDATA in examples


The of-plat.rst file till this change has been using

This is at best misleading as SPL_OF_PLATDATA is always defined when we
want to use this SPL tinification feature (also in U-Boot proper).
As a result the OF_PLATDATA SPL specific code is also compiled in when
U-Boot proper is build.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent d64e01f3
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ For example: ...@@ -224,7 +224,7 @@ For example:
#include <dt-structs.h> #include <dt-structs.h>
struct mmc_platdata { struct mmc_platdata {
#if CONFIG_IS_ENABLED(SPL_OF_PLATDATA) #if CONFIG_IS_ENABLED(OF_PLATDATA)
/* Put this first since driver model will copy the data here */ /* Put this first since driver model will copy the data here */
struct dtd_mmc dtplat; struct dtd_mmc dtplat;
#endif #endif
...@@ -237,7 +237,7 @@ For example: ...@@ -237,7 +237,7 @@ For example:
static int mmc_ofdata_to_platdata(struct udevice *dev) static int mmc_ofdata_to_platdata(struct udevice *dev)
{ {
#if !CONFIG_IS_ENABLED(SPL_OF_PLATDATA) #if !CONFIG_IS_ENABLED(OF_PLATDATA)
/* Decode the device tree data */ /* Decode the device tree data */
struct mmc_platdata *plat = dev_get_platdata(dev); struct mmc_platdata *plat = dev_get_platdata(dev);
const void *blob = gd->fdt_blob; const void *blob = gd->fdt_blob;
...@@ -253,7 +253,7 @@ For example: ...@@ -253,7 +253,7 @@ For example:
{ {
struct mmc_platdata *plat = dev_get_platdata(dev); struct mmc_platdata *plat = dev_get_platdata(dev);
#if CONFIG_IS_ENABLED(SPL_OF_PLATDATA) #if CONFIG_IS_ENABLED(OF_PLATDATA)
/* Decode the of-platdata from the C structures */ /* Decode the of-platdata from the C structures */
struct dtd_mmc *dtplat = &plat->dtplat; struct dtd_mmc *dtplat = &plat->dtplat;
...@@ -308,7 +308,7 @@ The dt-structs.h file includes the generated file ...@@ -308,7 +308,7 @@ The dt-structs.h file includes the generated file
(include/generated//dt-structs.h) if CONFIG_SPL_OF_PLATDATA is enabled. (include/generated//dt-structs.h) if CONFIG_SPL_OF_PLATDATA is enabled.
Otherwise (such as in U-Boot proper) these structs are not available. This Otherwise (such as in U-Boot proper) these structs are not available. This
prevents them being used inadvertently. All usage must be bracketed with prevents them being used inadvertently. All usage must be bracketed with
#if CONFIG_IS_ENABLED(SPL_OF_PLATDATA). #if CONFIG_IS_ENABLED(OF_PLATDATA).
The dt-platdata.c file contains the device declarations and is is built in The dt-platdata.c file contains the device declarations and is is built in
spl/dt-platdata.c. spl/dt-platdata.c.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment