]> git.sur5r.net Git - u-boot/commit
ARM: tegra: set CONFIG_SYS_MMC_MAX_DEVICE
authorStephen Warren <swarren@nvidia.com>
Fri, 18 Apr 2014 16:56:11 +0000 (10:56 -0600)
committerTom Warren <twarren@nvidia.com>
Tue, 13 May 2014 17:41:31 +0000 (10:41 -0700)
commitf175603f7c4fe614c913476bfec78a36ae8be7a3
tree297ef17e72e08df2ee4692ef7ee5721606929496
parentd2a3e911390f9fc4d8c0ee4b3c7fc75f4fd3fd19
ARM: tegra: set CONFIG_SYS_MMC_MAX_DEVICE

If CONFIG_API is ever to be enabled on Tegra, this define must be set,
since api/api_storage.c uses it.

A couple of annoyting things about CONFIG_SYS_MMC_MAX_DEVICE

1) It isn't documented in README. The same is true for a lot of similar
   defines used by api_storage.c.

2) It doesn't represent MAX_DEVICE but rather NUM_DEVICES, since the
   valid values are 0..n-1 not 0..n.

However, I this patch does not address those shortcomings.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra/tegra_mmc.h
drivers/mmc/tegra_mmc.c
include/configs/tegra-common.h