diff options
author | John Crispin <john@openwrt.org> | 2012-10-16 13:44:25 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-10-16 13:44:25 +0000 |
commit | e75106aa0d82a64122954b5990b50ec80d8e4040 (patch) | |
tree | bcc8ab60e849b3a0debb601b13c7f5356d9683e8 /package/boot/uboot-kirkwood/patches/0003-ide_bus.patch | |
parent | 254d851d8a9434e9c8a12a6ec96538ba13101600 (diff) | |
download | mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.zip mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.tar.gz mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.tar.bz2 |
move boot related packages to their own folder
SVN-Revision: 33781
Diffstat (limited to 'package/boot/uboot-kirkwood/patches/0003-ide_bus.patch')
-rw-r--r-- | package/boot/uboot-kirkwood/patches/0003-ide_bus.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/boot/uboot-kirkwood/patches/0003-ide_bus.patch b/package/boot/uboot-kirkwood/patches/0003-ide_bus.patch new file mode 100644 index 0000000..c94d63d --- /dev/null +++ b/package/boot/uboot-kirkwood/patches/0003-ide_bus.patch @@ -0,0 +1,17 @@ +http://lists.denx.de/pipermail/u-boot/2012-April/122594.html +http://patchwork.ozlabs.org/patch/159129/ +--- + +diff --git a/include/ide.h b/include/ide.h +index 8ecc9dd..385e909 100644 +--- a/include/ide.h ++++ b/include/ide.h +@@ -24,7 +24,7 @@ + #ifndef _IDE_H + #define _IDE_H + +-#define IDE_BUS(dev) (dev >> 1) ++#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS)) + + #define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)]) + |