at91sam9/cap9: use define instead hardcoded value for the USB_OHCI_REGS_BASE
PATCH 1/1 at91sam9/cap9: use define instead hardcoded value for the USB_OHCI_REGS_BASE
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- include/configs/afeb9260.h | 3 ++- include/configs/at91cap9adk.h | 3 ++- include/configs/at91sam9260ek.h | 3 ++- include/configs/at91sam9261ek.h | 3 ++- include/configs/at91sam9263ek.h | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-)
include/configs/afeb9260.h +2 -1
@@ -112,11 +112,12 @@#define CONFIG_NET_MULTI 1#define CONFIG_NET_RETRY_COUNT 20 +#include <asm/arch/hardware.h> /* USB */ #define CONFIG_USB_OHCI_NEW 1#define CONFIG_DOS_PARTITION 1#define CONFIG_SYS_USB_OHCI_CPU_INIT 1 -#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00500000/* AT91SAM9260_UHP_BASE */ +#define CONFIG_SYS_USB_OHCI_REGS_BASE AT91SAM9260_UHP_BASE#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9260"#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1#define CONFIG_USB_STORAGE 1
include/configs/at91cap9adk.h +2 -1
@@ -129,11 +129,12 @@#define CONFIG_NET_RETRY_COUNT 20#define CONFIG_RESET_PHY_R 1 +#include <asm/arch/hardware.h> /* USB */ #define CONFIG_USB_OHCI_NEW 1#define CONFIG_DOS_PARTITION 1#define CONFIG_SYS_USB_OHCI_CPU_INIT 1 -#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00700000/* AT91_BASE_UHP */ +#define CONFIG_SYS_USB_OHCI_REGS_BASE AT91CAP9_UHP_BASE#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91cap9"#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE 1
include/configs/at91sam9260ek.h +2 -1
@@ -114,11 +114,12 @@#define CONFIG_NET_RETRY_COUNT 20#define CONFIG_RESET_PHY_R 1 +#include <asm/arch/hardware.h> /* USB */ #define CONFIG_USB_OHCI_NEW 1#define CONFIG_DOS_PARTITION 1#define CONFIG_SYS_USB_OHCI_CPU_INIT 1 -#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00500000/* AT91SAM9260_UHP_BASE */ +#define CONFIG_SYS_USB_OHCI_REGS_BASE AT91SAM9260_UHP_BASE#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9260"#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE 1
include/configs/at91sam9261ek.h +2 -1
@@ -127,11 +127,12 @@#define CONFIG_NET_RETRY_COUNT 20#define CONFIG_RESET_PHY_R 1 +#include <asm/arch/hardware.h> /* USB */ #define CONFIG_USB_OHCI_NEW 1#define CONFIG_DOS_PARTITION 1#define CONFIG_SYS_USB_OHCI_CPU_INIT 1 -#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00500000/* AT91SAM9261_UHP_BASE */ +#define CONFIG_SYS_USB_OHCI_REGS_BASE AT91SAM9261_UHP_BASE#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9261"#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE 1
include/configs/at91sam9263ek.h +2 -1
@@ -134,11 +134,12 @@#define CONFIG_NET_RETRY_COUNT 20#define CONFIG_RESET_PHY_R 1 +#include <asm/arch/hardware.h> /* USB */ #define CONFIG_USB_OHCI_NEW 1#define CONFIG_DOS_PARTITION 1#define CONFIG_SYS_USB_OHCI_CPU_INIT 1 -#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00a00000/* AT91SAM9263_UHP_BASE */ +#define CONFIG_SYS_USB_OHCI_REGS_BASE AT91SAM9263_UHP_BASE#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9263"#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2#define CONFIG_USB_STORAGE 1
Signature · 1 line
1.5.6.5