sunxi: Only enable i2c support in the SPL when needed
authorHans de Goede <hdegoede@redhat.com>
Fri, 23 Jan 2015 14:28:22 +0000 (15:28 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 2 Feb 2015 12:55:14 +0000 (13:55 +0100)
commitad40610b48bc3e248f5e79d94084427aa6a0b9e2
tree30da058cd3064863d9414d53c1ffe1d3b0c84782
parent2af13d6b6265a6700c4f65597410b769895024bf
sunxi: Only enable i2c support in the SPL when needed

We do not need i2c support in the SPL when there is no PMIC (some sun4i
boards), or when the PMIC is not using i2c such as on sun6i and sun8i.

This reduces the SPL size from (e.g.) 21812 to 19260 bytes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
include/configs/sunxi-common.h