From 14a4f52b0d1b561ce52c4590bdd339497dfd5be5 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 25 Apr 2023 10:54:26 -0600 Subject: ide: Move ATA_CURR_BASE to C file This is not used outside one C file. Move it out of the header to reduce its visbility. Signed-off-by: Simon Glass --- drivers/block/ide.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers') diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 1ad9b6c1267..f36bec8b3a8 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -36,6 +36,9 @@ ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS] = { #endif }; +#define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR + \ + ide_bus_offset[IDE_BUS(dev)]) + static int ide_bus_ok[CONFIG_SYS_IDE_MAXBUS]; struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE]; -- cgit v1.3.1