public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] U-Boot of-platdata issue
@ 2017-01-16  1:28 Kever Yang
  2017-01-16  4:15 ` Simon Glass
  0 siblings, 1 reply; 7+ messages in thread
From: Kever Yang @ 2017-01-16  1:28 UTC (permalink / raw)
  To: u-boot

Hi Simon,

     I met two issue when using of-platdata

1. compitable name with '.'
I get compile error as below:
In file included from include/dt-structs.h:16:0,
                  from spl/dts/dt-platdata.c:3:
include/generated/dt-structs.h:26:35: error: expected identifier or ?(? 
before numeric constant
  struct dtd_rockchip_rk3399_sdhci_5.1 {
                                    ^
spl/dts/dt-platdata.c:41:42: error: expected identifier or ?(? before 
numeric constant
  static struct dtd_rockchip_rk3399_sdhci_5.1 dtv_sdhci_at_fe330000 = {
                                           ^
spl/dts/dt-platdata.c:55:15: error: ?dtv_sdhci_at_fe330000? undeclared 
here (not in a function)
   .platdata = &dtv_sdhci_at_fe330000,
                ^
make[2]: *** [spl/dts/dt-platdata.o] Error 1
make[1]: *** [spl/u-boot-spl] Error 2
make: *** [__build_one_by_one] Error 2

The dts node starts like this:
         sdhci: sdhci at fe330000 {
                 u-boot,dm-pre-reloc;
                 compatible = "rockchip,rk3399-sdhci-5.1", 
"arasan,sdhci-5.1";
...

2. multi compatible name
When a dts node have more than one compatible name, which is prefer to use?
for example, we have two dwmmc compatible name in rk3399, the tool is 
using the first one,
while the source code using the last one.

"drivers/mmc/rockchip_dw_mmc.c"
  23 struct rockchip_mmc_plat {
  24 #if CONFIG_IS_ENABLED(OF_PLATDATA)
  25         struct dtd_rockchip_rk3288_dw_mshc dtplat;
  26 #endif
  27         struct mmc_config cfg;
  28         struct mmc mmc;
  29 };
...
dts node
         sdmmc: dwmmc at fe320000 {
                compatible = "rockchip,rk3399-dw-mshc",
                              "rockchip,rk3288-dw-mshc";
...

Thanks,
- Kever

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-25  2:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-16  1:28 [U-Boot] U-Boot of-platdata issue Kever Yang
2017-01-16  4:15 ` Simon Glass
2017-02-13  9:23   ` Kever Yang
2017-02-13  9:51     ` Jaehoon Chung
2017-02-14  1:09       ` Kever Yang
2017-02-16 20:43         ` Simon Glass
2017-04-25  2:29           ` Kever Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox