Files
u-boot/common
Przemyslaw Marczak 71105f50fe fdt: fix address cell count checking in fdt_translate_address()
Commit: dm: core: Enable optional use of fdt_translate_address()

Enables use of this function as default, but after this it's not
possible to get dev address for the case in which: '#size-cells == 0'

This causes errors when getting address for some GPIOs, for which
the '#size-cells' is set to 0.

Example error:
'__of_translate_address: Bad cell count for gpx0'

Allowing for that case by modifying the macro 'OF_CHECK_COUNTS',
(called from )__of_translate_address(), fixes the issue.

Now, this macro doesn't check, that '#size-cells' is greater than 0.

This is possible from the specification point of view, but I'm not sure
that it doesn't introduce a regression for other configs.

Please test and share the results.

Tested-on: Odroid U3, Odroid X2, Odroid XU3, Sandbox.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
2016-01-07 11:28:04 -07:00
..
2016-01-04 12:25:35 -05:00
2015-12-15 08:57:32 +08:00
2015-06-10 19:26:54 -06:00
2014-02-04 16:32:20 +01:00
2015-07-20 07:21:47 -06:00
2015-01-30 09:19:17 -05:00
2015-01-30 09:19:16 -05:00
2014-10-26 14:03:08 -04:00
2014-12-29 16:31:24 -05:00
2014-06-20 11:54:29 -06:00
2015-05-14 19:58:34 -06:00
2015-07-27 15:53:48 -07:00
2015-11-05 16:47:06 -05:00
2014-05-12 15:19:46 -04:00
2015-10-26 09:22:36 +01:00
2015-05-21 09:13:19 -04:00
2014-03-21 16:43:59 -04:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2015-11-12 13:18:59 -05:00
2015-01-05 12:08:51 -05:00
2015-10-19 17:06:16 -04:00
2015-11-19 20:27:50 -07:00
2014-09-16 12:23:56 -04:00