diff options
author | Simon Glass <sjg@chromium.org> | 2023-04-25 10:54:26 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-27 13:51:06 -0400 |
commit | 14a4f52b0d1b561ce52c4590bdd339497dfd5be5 (patch) | |
tree | c3d2fc6d850f88e11ce087cfc58e8e02f3171098 /drivers/block | |
parent | caf0a88d9f317aecada0cece5d7f9df371058805 (diff) | |
download | u-boot-14a4f52b0d1b561ce52c4590bdd339497dfd5be5.zip u-boot-14a4f52b0d1b561ce52c4590bdd339497dfd5be5.tar.gz u-boot-14a4f52b0d1b561ce52c4590bdd339497dfd5be5.tar.bz2 |
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 <sjg@chromium.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ide.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 1ad9b6c..f36bec8 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]; |