Skip to content
Snippets Groups Projects
Commit 6523dbf7 authored by Tom Rini's avatar Tom Rini
Browse files

Merge branch 'master' of git://git.denx.de/u-boot-mips

parents f9a90ace 4349b55b
No related branches found
No related tags found
No related merge requests found
Showing
with 77 additions and 1173 deletions
...@@ -268,7 +268,7 @@ config SYS_EXTRA_OPTIONS ...@@ -268,7 +268,7 @@ config SYS_EXTRA_OPTIONS
config SYS_TEXT_BASE config SYS_TEXT_BASE
depends on SPARC || ARC || X86 || ARCH_UNIPHIER || ARCH_ZYNQMP || \ depends on SPARC || ARC || X86 || ARCH_UNIPHIER || ARCH_ZYNQMP || \
(M68K && !TARGET_ASTRO_MCF5373L) || MICROBLAZE (M68K && !TARGET_ASTRO_MCF5373L) || MICROBLAZE || MIPS
depends on !EFI_APP depends on !EFI_APP
hex "Text Base" hex "Text Base"
help help
......
...@@ -23,7 +23,11 @@ config TARGET_QEMU_MIPS ...@@ -23,7 +23,11 @@ config TARGET_QEMU_MIPS
config TARGET_MALTA config TARGET_MALTA
bool "Support malta" bool "Support malta"
select DM
select DM_SERIAL
select DYNAMIC_IO_PORT_BASE select DYNAMIC_IO_PORT_BASE
select OF_CONTROL
select OF_ISA_BUS
select SUPPORTS_BIG_ENDIAN select SUPPORTS_BIG_ENDIAN
select SUPPORTS_LITTLE_ENDIAN select SUPPORTS_LITTLE_ENDIAN
select SUPPORTS_CPU_MIPS32_R1 select SUPPORTS_CPU_MIPS32_R1
......
...@@ -4,6 +4,12 @@ ...@@ -4,6 +4,12 @@
head-y := arch/mips/cpu/start.o head-y := arch/mips/cpu/start.o
ifeq ($(CONFIG_SPL_BUILD),y)
ifneq ($(CONFIG_SPL_START_S_PATH),)
head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
endif
endif
libs-y += arch/mips/cpu/ libs-y += arch/mips/cpu/
libs-y += arch/mips/lib/ libs-y += arch/mips/lib/
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
dtb-$(CONFIG_TARGET_AP121) += ap121.dtb dtb-$(CONFIG_TARGET_AP121) += ap121.dtb
dtb-$(CONFIG_TARGET_AP143) += ap143.dtb dtb-$(CONFIG_TARGET_AP143) += ap143.dtb
dtb-$(CONFIG_TARGET_MALTA) += mti,malta.dtb
dtb-$(CONFIG_TARGET_PIC32MZDASK) += pic32mzda_sk.dtb dtb-$(CONFIG_TARGET_PIC32MZDASK) += pic32mzda_sk.dtb
dtb-$(CONFIG_BOARD_TPLINK_WDR4300) += tplink_wdr4300.dtb dtb-$(CONFIG_BOARD_TPLINK_WDR4300) += tplink_wdr4300.dtb
......
/dts-v1/;
/memreserve/ 0x00000000 0x00001000; /* Exception vectors */
/memreserve/ 0x000f0000 0x00010000; /* PIIX4 ISA memory */
/ {
#address-cells = <1>;
#size-cells = <1>;
compatible = "mti,malta";
chosen {
stdout-path = &uart0;
};
isa@0 {
compatible = "isa";
#address-cells = <2>;
#size-cells = <1>;
ranges = <1 0 0 0x1000>;
uart0: serial@3f8 {
compatible = "ns16550a";
reg = <1 0x3f8 0x40>;
reg-shift = <0>;
clock-frequency = <1843200>;
u-boot,dm-pre-reloc;
};
};
};
...@@ -15,14 +15,6 @@ struct arch_global_data { ...@@ -15,14 +15,6 @@ struct arch_global_data {
#ifdef CONFIG_DYNAMIC_IO_PORT_BASE #ifdef CONFIG_DYNAMIC_IO_PORT_BASE
unsigned long io_port_base; unsigned long io_port_base;
#endif #endif
#ifdef CONFIG_JZSOC
/* There are other clocks in the jz4740 */
unsigned long per_clk; /* Peripheral bus clock */
unsigned long dev_clk; /* Device clock */
unsigned long sys_clk;
unsigned long tbl;
unsigned long lastinc;
#endif
#ifdef CONFIG_ARCH_ATH79 #ifdef CONFIG_ARCH_ATH79
unsigned long id; unsigned long id;
unsigned long soc; unsigned long soc;
......
This diff is collapsed.
...@@ -268,6 +268,8 @@ void ddr_tap_tuning(void) ...@@ -268,6 +268,8 @@ void ddr_tap_tuning(void)
dir = 1; dir = 1;
tap = readl(regs + AR71XX_DDR_REG_TAP_CTRL0); tap = readl(regs + AR71XX_DDR_REG_TAP_CTRL0);
val = tap; val = tap;
upper = tap;
lower = tap;
while (!done) { while (!done) {
err = 0; err = 0;
......
...@@ -660,6 +660,7 @@ ...@@ -660,6 +660,7 @@
#define AR933X_RESET_GE1_MDIO BIT(23) #define AR933X_RESET_GE1_MDIO BIT(23)
#define AR933X_RESET_GE0_MDIO BIT(22) #define AR933X_RESET_GE0_MDIO BIT(22)
#define AR933X_RESET_ETH_SWITCH_ANALOG BIT(14)
#define AR933X_RESET_GE1_MAC BIT(13) #define AR933X_RESET_GE1_MAC BIT(13)
#define AR933X_RESET_WMAC BIT(11) #define AR933X_RESET_WMAC BIT(11)
#define AR933X_RESET_GE0_MAC BIT(9) #define AR933X_RESET_GE0_MAC BIT(9)
......
...@@ -81,7 +81,8 @@ static int eth_init_ar933x(void) ...@@ -81,7 +81,8 @@ static int eth_init_ar933x(void)
MAP_NOCACHE); MAP_NOCACHE);
const u32 mask = AR933X_RESET_GE0_MAC | AR933X_RESET_GE0_MDIO | const u32 mask = AR933X_RESET_GE0_MAC | AR933X_RESET_GE0_MDIO |
AR933X_RESET_GE1_MAC | AR933X_RESET_GE1_MDIO | AR933X_RESET_GE1_MAC | AR933X_RESET_GE1_MDIO |
AR933X_RESET_ETH_SWITCH; AR933X_RESET_ETH_SWITCH |
AR933X_RESET_ETH_SWITCH_ANALOG;
/* Clear MDIO slave EN bit. */ /* Clear MDIO slave EN bit. */
clrbits_be32(rregs + AR933X_RESET_REG_BOOTSTRAP, BIT(17)); clrbits_be32(rregs + AR933X_RESET_REG_BOOTSTRAP, BIT(17));
......
...@@ -9,6 +9,9 @@ config SYS_SOC ...@@ -9,6 +9,9 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "dbau1x00" default "dbau1x00"
config SYS_TEXT_BASE
default 0xbfc00000
menu "dbau1x00 board options" menu "dbau1x00 board options"
choice choice
......
...@@ -9,4 +9,7 @@ config SYS_VENDOR ...@@ -9,4 +9,7 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "malta" default "malta"
config SYS_TEXT_BASE
default 0xbe000000
endif endif
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <pci_gt64120.h> #include <pci_gt64120.h>
#include <pci_msc01.h> #include <pci_msc01.h>
#include <rtc.h> #include <rtc.h>
#include <serial.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/io.h> #include <asm/io.h>
...@@ -161,18 +160,6 @@ int misc_init_r(void) ...@@ -161,18 +160,6 @@ int misc_init_r(void)
return 0; return 0;
} }
struct serial_device *default_serial_console(void)
{
switch (malta_sys_con()) {
case SYSCON_GT64120:
return &eserial1_device;
default:
case SYSCON_MSC01:
return &eserial2_device;
}
}
void pci_init_board(void) void pci_init_board(void)
{ {
pci_dev_t bdf; pci_dev_t bdf;
......
...@@ -10,4 +10,7 @@ config SYS_VENDOR ...@@ -10,4 +10,7 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "pic32mzdask" default "pic32mzdask"
config SYS_TEXT_BASE
default 0x9d004000
endif endif
...@@ -9,6 +9,9 @@ config SYS_VENDOR ...@@ -9,6 +9,9 @@ config SYS_VENDOR
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "vct" default "vct"
config SYS_TEXT_BASE
default 0x87000000
menu "vct board options" menu "vct board options"
choice choice
......
...@@ -9,4 +9,7 @@ config SYS_SOC ...@@ -9,4 +9,7 @@ config SYS_SOC
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "pb1x00" default "pb1x00"
config SYS_TEXT_BASE
default 0x83800000
endif endif
...@@ -9,4 +9,7 @@ config SYS_BOARD ...@@ -9,4 +9,7 @@ config SYS_BOARD
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ap121" default "ap121"
config SYS_TEXT_BASE
default 0x9f000000
endif endif
...@@ -9,4 +9,7 @@ config SYS_BOARD ...@@ -9,4 +9,7 @@ config SYS_BOARD
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "ap143" default "ap143"
config SYS_TEXT_BASE
default 0x9f000000
endif endif
...@@ -7,4 +7,8 @@ config SYS_CONFIG_NAME ...@@ -7,4 +7,8 @@ config SYS_CONFIG_NAME
default "qemu-mips" if 32BIT default "qemu-mips" if 32BIT
default "qemu-mips64" if 64BIT default "qemu-mips64" if 64BIT
config SYS_TEXT_BASE
default 0xbfc00000 if 32BIT
default 0xffffffffbfc00000 if 64BIT
endif endif
...@@ -12,4 +12,7 @@ config SYS_BOARD ...@@ -12,4 +12,7 @@ config SYS_BOARD
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "tplink_wdr4300" default "tplink_wdr4300"
config SYS_TEXT_BASE
default 0xa1000000
endif endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment