]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
remove _IO_BASE and KSEG1ADDR from board configuration files
authorTimur Tabi <timur@freescale.com>
Fri, 19 Jun 2009 19:10:52 +0000 (14:10 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 10 Jul 2009 22:19:16 +0000 (00:19 +0200)
The KSEG1ADDR macro used to be necessary for the RTL8139 Ethernet
driver, but the code that used that macro was removed over a year
ago, so board configuration files no longer need to define it.

The _IO_BASE macro is also automatically defined to 0 if it isn't
already set, so there's no need to define that macro either in the
board configuration files.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: Andy Fleming <afleming@freescale.com>
Acked-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
14 files changed:
include/configs/HIDDEN_DRAGON.h
include/configs/M5253DEMO.h
include/configs/M5253EVBE.h
include/configs/M54455EVB.h
include/configs/MPC8349ITX.h
include/configs/MPC8536DS.h
include/configs/MPC8544DS.h
include/configs/MPC8572DS.h
include/configs/MPC8610HPCD.h
include/configs/MPC8641HPCN.h
include/configs/MVBLM7.h
include/configs/P2020DS.h
include/configs/mpc7448hpc2.h
include/configs/r2dplus.h

index f6777b9bbaf6cae3dcb383cbb611b012b143c812..251fe6742bb7db21a06fc73d11be2892e742c2cd 100644 (file)
 #define PCI_ENET1_MEMADDR      0x81000000
 
 #define CONFIG_RTL8139
-#define _IO_BASE           0x00000000
-/* This macro is used by RTL8139 but not defined in PPC architecture */
-#define KSEG1ADDR(x)       (x)
+
 /* Make sure the ethaddr can be overwritten
    TODO: Remove this on final product
 */
index 50b3a03a012a1f39b44b5ed51eaf08f1d686b729..5e86e4cb90f39dde626b516d44555856480af727 100644 (file)
@@ -85,7 +85,6 @@
 #      define CONFIG_SYS_ATA_REG_OFFSET        0xA0    /* Offset for normal register accesses */
 #      define CONFIG_SYS_ATA_ALT_OFFSET        0xC0    /* Offset for alternate registers */
 #      define CONFIG_SYS_ATA_STRIDE            4       /* Interval between registers */
-#      define _IO_BASE                 0
 #endif
 
 #define CONFIG_NET_MULTI               1
index cf8b773c28ea803fcf856e8f05f4589c7faeacc3..df6970cdfac7f821db701d12fafe3b8dfea736f5 100644 (file)
@@ -91,7 +91,6 @@
 #define CONFIG_SYS_ATA_REG_OFFSET      0xA0    /* Offset for normal register accesses */
 #define CONFIG_SYS_ATA_ALT_OFFSET      0xC0    /* Offset for alternate registers */
 #define CONFIG_SYS_ATA_STRIDE          4       /* Interval between registers */
-#define _IO_BASE               0
 
 #define CONFIG_SYS_PROMPT              "=> "
 #define CONFIG_SYS_LONGHELP            /* undef to save memory */
index 101dcedeed1cb95d596b120b6de95e5979ac17b3..87f3a73ae4a29905b31b7ab052c743ff5d289f2e 100644 (file)
 #define CONFIG_SYS_ATA_REG_OFFSET      0xA0    /* Offset for normal register accesses */
 #define CONFIG_SYS_ATA_ALT_OFFSET      0xC0    /* Offset for alternate registers           */
 #define CONFIG_SYS_ATA_STRIDE          4       /* Interval between registers                 */
-#define _IO_BASE               0
 
 /* Realtime clock */
 #define CONFIG_MCFRTC
index f2e574b73751f5dac8d69d1100c5934b554826ef..d4d3256f7579ab5718facb63f3bc5ff18364c4e8 100644 (file)
@@ -360,16 +360,9 @@ boards, we say we have two, but don't display a message if we find only one. */
 #define CONFIG_SYS_PCI2_IO_SIZE        0x01000000      /* 16M */
 #endif
 
-#define _IO_BASE               0x00000000      /* points to PCI I/O space */
-
 #define CONFIG_NET_MULTI
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play */
 
-#ifdef CONFIG_RTL8139
-/* This macro is used by RTL8139 but not defined in PPC architecture */
-#define KSEG1ADDR(x)       (x)
-#endif
-
 #ifndef CONFIG_PCI_PNP
     #define PCI_ENET0_IOADDR   0x00000000
     #define PCI_ENET0_MEMADDR  CONFIG_SYS_PCI2_MEM_BASE
index 9e00b8986216098d4d35fba3a64a26dbdfc29505..7085d287dbad840337bc81f029ae7c95fd05cc90 100644 (file)
@@ -427,12 +427,6 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #undef CONFIG_TULIP
 #undef CONFIG_RTL8139
 
-#ifdef CONFIG_RTL8139
-/* This macro is used by RTL8139 but not defined in PPC architecture */
-#define KSEG1ADDR(x)           ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);})
-#define _IO_BASE       0x00000000
-#endif
-
 #ifndef CONFIG_PCI_PNP
        #define PCI_ENET0_IOADDR        CONFIG_SYS_PCI1_IO_BUS
        #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCI1_IO_BUS
index 59cfde6284b047f6a79d2c7e8238dc7761b0a556..1d8fecf7945d7efe83265cb22483cdd9a25e2105 100644 (file)
@@ -340,12 +340,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #undef CONFIG_TULIP
 #define CONFIG_RTL8139
 
-#ifdef CONFIG_RTL8139
-/* This macro is used by RTL8139 but not defined in PPC architecture */
-#define KSEG1ADDR(x)           (x)
-#define _IO_BASE       0x00000000
-#endif
-
 #ifndef CONFIG_PCI_PNP
        #define PCI_ENET0_IOADDR        CONFIG_SYS_PCI1_IO_BUS
        #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCI1_IO_BUS
index 6f1b1a4c83ccf11dd157a343a6cc92e0321ef40d..235be5143dd78f00bba67a60fa28b8b3d85f1728 100644 (file)
@@ -484,12 +484,6 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #undef CONFIG_TULIP
 #undef CONFIG_RTL8139
 
-#ifdef CONFIG_RTL8139
-/* This macro is used by RTL8139 but not defined in PPC architecture */
-#define KSEG1ADDR(x)           (x)
-#define _IO_BASE       0x00000000
-#endif
-
 #ifndef CONFIG_PCI_PNP
        #define PCI_ENET0_IOADDR        CONFIG_SYS_PCIE3_IO_BUS
        #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCIE3_IO_BUS
index 1091043c0122a5cee740408dbe134745bbb3a52b..2f40ef48c9066a935f34f22a2ba9ee278b1f9421 100644 (file)
 #define CONFIG_SYS_PCI1_IO_VIRT        0xe1000000
 #define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
-/* For RTL8139 */
-#define KSEG1ADDR(x)   ({u32 _x = le32_to_cpu(*(u32 *)(x)); (&_x); })
-#define _IO_BASE               0x00000000
-
 /* controller 1, Base address 0xa000 */
 #define CONFIG_SYS_PCIE1_MEM_BUS       0xa0000000
 #define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BUS
index 035874b31290df8541b4e2f0134732485e6a9eac..60ce0f3aca35bcc47e5abfa136f88f03f9b41cda 100644 (file)
@@ -348,10 +348,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
                                 | CONFIG_SYS_PHYS_ADDR_HIGH)
 #define CONFIG_SYS_PCI1_IO_SIZE        0x00010000      /* 64K */
 
-/* For RTL8139 */
-#define KSEG1ADDR(x)           ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);})
-#define _IO_BASE               0x00000000
-
 #ifdef CONFIG_PHYS_64BIT
 /*
  * Use the same PCI bus address on PCI1 and PCI2 if we have PHYS_64BIT.
index 967520587ac0f1b034bd820ee6f84e97b0c421b4..ac8cb57d08a3fe9c6e34a3a08c5f5c38a869980d 100644 (file)
 #define CONFIG_SYS_PCI1_IO_PHYS        0xE2000000
 #define CONFIG_SYS_PCI1_IO_SIZE        0x01000000
 
-#define _IO_BASE               0x00000000
-
 #define CONFIG_NET_MULTI       1
 #define CONFIG_NET_RETRY_COUNT 3
 
index 93068600adb225f9215a11d0e3147f7cd9805fc3..676f0134fcb65700574603b6a9139bc1aff26fcf 100644 (file)
@@ -519,12 +519,6 @@ extern unsigned long calculate_board_ddr_clk(unsigned long dummy);
 #undef CONFIG_TULIP
 #define CONFIG_RTL8139
 
-#ifdef CONFIG_RTL8139
-/* This macro is used by RTL8139 but not defined in PPC architecture */
-#define KSEG1ADDR(x)           (x)
-#define _IO_BASE       0x00000000
-#endif
-
 #ifndef CONFIG_PCI_PNP
        #define PCI_ENET0_IOADDR        CONFIG_SYS_PCIE3_IO_BUS
        #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCIE3_IO_BUS
index 7d421556e9eedebbec581f664847ed859dff2ddb..4f98ba41a5d1b2f07fff8c09c839427f697ae2f6 100644 (file)
 
 /* Networking Configuration */
 
-#define KSEG1ADDR(a)   (a)     /* Needed by the rtl8139 driver */
-
 #define CONFIG_TSI108_ETH
 #define CONFIG_TSI108_ETH_NUM_PORTS    2
 
 
 #define CONFIG_SYS_PCI_IO_SIZE         0x01000000      /* 16MB */
 
-#define _IO_BASE               0x00000000      /* points to PCI I/O space      */
-
 /* PCI Config Space mapping */
 #define CONFIG_SYS_PCI_CFG_BASE        0xfb000000      /* Changed from FE000000 */
 #define CONFIG_SYS_PCI_CFG_SIZE        0x01000000      /* 16MB */
index 6fa1eafde7ddd054a5d562857196c6b906eeb01b..37d4fff9b1cf67c887068ef0931941aa8b00e436 100644 (file)
  */
 #define CONFIG_NET_MULTI
 #define CONFIG_RTL8139
-#define _IO_BASE               0x00000000
-#define KSEG1ADDR(x)           (x)
 
 #endif /* __CONFIG_H */