mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
pci: pci_mvebu: Add comment about missing of_n_addr_cells() call
This patch adds a comment to explain the use of the hardcoded value for the number of address cells in mvebu_get_tgt_attr(). This should help to rework this function, once CONFIG_OF_LIVE is enabled for MVEBU in general. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
374bf7af03
commit
0df62e8da8
1 changed files with 6 additions and 0 deletions
|
@ -369,6 +369,12 @@ static int mvebu_get_tgt_attr(ofnode node, int devfn,
|
|||
if (!range)
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
* Linux uses of_n_addr_cells() to get the number of address cells
|
||||
* here. Currently this function is only available in U-Boot when
|
||||
* CONFIG_OF_LIVE is enabled. Until this is enabled for MVEBU in
|
||||
* general, lets't hardcode the "pna" value in the U-Boot code.
|
||||
*/
|
||||
pna = 2; /* hardcoded for now because of lack of of_n_addr_cells() */
|
||||
rangesz = pna + na + ns;
|
||||
nranges = rlen / sizeof(__be32) / rangesz;
|
||||
|
|
Loading…
Add table
Reference in a new issue