aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-06-17 05:57:50 -0700
committerBin Meng <bmeng.cn@gmail.com>2018-06-24 08:56:04 +0800
commitec15d5f6e5e4bb718d58ec2a3753ae95abc18279 (patch)
treed93273d944682c0aa1693f055632e2edb9668336 /common
parentd6fea4e283a3e8d4268a39d3b37e73139876d4b2 (diff)
downloadu-boot-ec15d5f6e5e4bb718d58ec2a3753ae95abc18279.zip
u-boot-ec15d5f6e5e4bb718d58ec2a3753ae95abc18279.tar.gz
u-boot-ec15d5f6e5e4bb718d58ec2a3753ae95abc18279.tar.bz2
board_r: Do not initialize IDE when DM BLK is on
With driver model philosophy, we should avoid explicitly calling driver initialization routine during boot. This updates the ram init sequence table to exclude the IDE initialization for DM BLK. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 6b29706..6949d4a 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -596,7 +596,7 @@ static int initr_pcmcia(void)
}
#endif
-#if defined(CONFIG_IDE)
+#if defined(CONFIG_IDE) && !defined(CONFIG_BLK)
static int initr_ide(void)
{
puts("IDE: ");
@@ -826,7 +826,7 @@ static init_fnc_t init_sequence_r[] = {
#if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_IDE)
initr_pcmcia,
#endif
-#if defined(CONFIG_IDE)
+#if defined(CONFIG_IDE) && !defined(CONFIG_BLK)
initr_ide,
#endif
#ifdef CONFIG_LAST_STAGE_INIT