x86: Convert minnowmax to use CONFIG_DM_USB
PATCH v3 1/3 x86: Convert minnowmax to use CONFIG_DM_USB
Move to driver model for USB on minnowmax.
---
Changes in v3:
- Use savedefconfig to tidy up the ordering
Changes in v2: None
configs/minnowmax_defconfig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
configs/minnowmax_defconfig +5 -4
@@ -18,13 +18,14 @@ CONFIG_OF_CONTROL=y CONFIG_CPU=y CONFIG_DM_PCI=y CONFIG_SPI_FLASH=y +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_BASE=0x3f8 +CONFIG_DEBUG_UART_CLOCK=1843200 CONFIG_VIDEO_VESA=y CONFIG_FRAMEBUFFER_SET_VESA_MODE=y CONFIG_FRAMEBUFFER_VESA_MODE_11A=y +CONFIG_USB=y +CONFIG_DM_USB=y CONFIG_DM_RTC=y CONFIG_USE_PRIVATE_LIBGCC=y CONFIG_SYS_VSNPRINTF=y -CONFIG_DEBUG_UART=y -CONFIG_DEBUG_UART_NS16550=y -CONFIG_DEBUG_UART_BASE=0x3f8 -CONFIG_DEBUG_UART_CLOCK=1843200
Signature · 1 line
2.5.0.rc2.392.g76e840b
PATCH v3 2/3 x86: Convert minnowmax to use CONFIG_DM_NET
Move to driver model for networking on minnowmax.
---
Changes in v3:
- Use savedefconfig to tidy up the ordering
Changes in v2: None
board/intel/minnowmax/minnowmax.c | 6 ------ configs/minnowmax_defconfig | 1 + 2 files changed, 1 insertion(+), 6 deletions(-)
board/intel/minnowmax/minnowmax.c +0 -6
@@ -6,7 +6,6 @@#include <common.h> #include <asm/gpio.h> -#include <netdev.h> int arch_early_init_r (void ) {
@@ -20,8 +19,3 @@ void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio) {return ; } - -int board_eth_init (bd_t *bis) -{ -return pci_eth_init (bis); -}
configs/minnowmax_defconfig +1 -0
@@ -18,6 +18,7 @@ CONFIG_OF_CONTROL=y CONFIG_CPU=y CONFIG_DM_PCI=y CONFIG_SPI_FLASH=y +CONFIG_DM_ETH=y CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_BASE=0x3f8 CONFIG_DEBUG_UART_CLOCK=1843200
Signature · 1 line
2.5.0.rc2.392.g76e840b
PATCH v3 2/3 x86: Convert minnowmax to use CONFIG_DM_NET
Quoted 40 lines · Simon Glass
Move to driver model for networking on minnowmax.
Signed-off-by Simon Glass <[email protected]>---
Changes in v3:
- Use savedefconfig to tidy up the orderingChanges in v2: None
board/intel/minnowmax/minnowmax.c | 6 ------ configs/minnowmax_defconfig | 1 + 2 files changed, 1 insertion(+), 6 deletions(-)board/intel/minnowmax/minnowmax.c +0
-6@@ -6,7 +6,6 @@#include <common.h> #include <asm/gpio.h> -#include <netdev.h> int arch_early_init_r (void ) {@@ -20,8 +19,3 @@ void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio) {return ; } - -int board_eth_init (bd_t *bis) -{ -return pci_eth_init (bis); -}configs/minnowmax_defconfig +0
-0
configs/minnowmax_defconfig CONFIG_OF_CONTROL=y
Quoted 8 lines
configs/minnowmax_defconfig +1
-1@@ -18,6 +18,7 @@ CONFIG_OF_CONTROL=y CONFIG_CPU=y CONFIG_DM_PCI=y CONFIG_SPI_FLASH=y +CONFIG_DM_ETH=y CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_BASE=0x3f8 CONFIG_DEBUG_UART_CLOCK=1843200 --
PATCH v3 2/3 x86: Convert minnowmax to use CONFIG_DM_NET
Quoted 43 lines · Bin Meng
Quoted 42 lines · Simon Glass
Move to driver model for networking on minnowmax.
Signed-off-by Simon Glass <[email protected]>---
Changes in v3:
- Use savedefconfig to tidy up the orderingChanges in v2: None
board/intel/minnowmax/minnowmax.c | 6 ------ configs/minnowmax_defconfig | 1 + 2 files changed, 1 insertion(+), 6 deletions(-)board/intel/minnowmax/minnowmax.c +0
-6@@ -6,7 +6,6 @@#include <common.h> #include <asm/gpio.h> -#include <netdev.h> int arch_early_init_r (void ) {@@ -20,8 +19,3 @@ void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio) {return ; } - -int board_eth_init (bd_t *bis) -{ -return pci_eth_init (bis); -}configs/minnowmax_defconfig +0
-0@@ -18,6 +18,7 @@ CONFIG_OF_CONTROL=y CONFIG_CPU=y CONFIG_DM_PCI=y
Quoted 8 lines
configs/minnowmax_defconfig CONFIG_OF_CONTROL=y
Quoted 6 lines
configs/minnowmax_defconfig +1
-1CONFIG_SPI_FLASH=y +CONFIG_DM_ETH=y CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_BASE=0x3f8 CONFIG_DEBUG_UART_CLOCK=1843200 --Reviewed-by Bin Meng <[email protected]>
Applied to u-boot-x86.
PATCH v3 3/3 x86: Show the un-relocated IP address in exceptions
In reply to Simon GlassWhen trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.
---
Changes in v3:
- Replace 'regs->eip' with 'eip'
Changes in v2:
- Tweak the dump_regs() output to say 'Original EIP'
arch/x86/cpu/interrupts.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/cpu/interrupts.c +2 -0
@@ -103,6 +103,8 @@ static void dump_regs(struct irq_regs *regs)printf ("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n" , (u16 )cs, eip, eflags); +if (gd->flags &GD_FLG_RELOC ) +printf ("Original EIP :[<%08lx>]\n" , eip - gd->reloc_off);printf ("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n" , regs->eax, regs->ebx, regs->ecx, regs->edx);
Signature · 1 line
2.5.0.rc2.392.g76e840b
PATCH v3 3/3 x86: Show the un-relocated IP address in exceptions
Quoted 22 lines · Simon Glass
When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Tom Rini <[email protected]>---
Changes in v3:
- Replace 'regs->eip' with 'eip'Changes in v2:
- Tweak thedump_regs()output to say 'Original EIP'arch/x86/cpu/interrupts.c | 2 ++ 1 file changed, 2 insertions(+)arch/x86/cpu/interrupts.c +0
-0
arch/x86/cpu/interrupts.c static void dump_regs(struct irq_regs *regs)
Quoted 9 lines
arch/x86/cpu/interrupts.c +2
-1@@ -103,6 +103,8 @@ static void dump_regs(struct irq_regs *regs)printf ("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n" , (u16 )cs, eip, eflags); +if (gd->flags &GD_FLG_RELOC ) +printf ("Original EIP :[<%08lx>]\n" , eip - gd->reloc_off);printf ("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n" , regs->eax, regs->ebx, regs->ecx, regs->edx); --
PATCH v3 3/3 x86: Show the un-relocated IP address in exceptions
Quoted 29 lines · Bin Meng
Quoted 28 lines · Simon Glass
When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.
Signed-off-by Simon Glass <[email protected]>Reviewed-by Tom Rini <[email protected]>---
Changes in v3:
- Replace 'regs->eip' with 'eip'Changes in v2:
- Tweak thedump_regs()output to say 'Original EIP'arch/x86/cpu/interrupts.c | 2 ++ 1 file changed, 2 insertions(+)arch/x86/cpu/interrupts.c +2
-0@@ -103,6 +103,8 @@ static void dump_regs(struct irq_regs *regs)printf ("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n" , (u16 )cs, eip, eflags); +if (gd->flags &GD_FLG_RELOC ) +printf ("Original EIP :[<%08lx>]\n" , eip - gd->reloc_off);
Quoted 5 lines
arch/x86/cpu/interrupts.c static void dump_regs(struct irq_regs *regs)
Quoted 3 lines
arch/x86/cpu/interrupts.c +0
-1printf ("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n" , regs->eax, regs->ebx, regs->ecx, regs->edx); --Reviewed-by Bin Meng <[email protected]>
Applied to u-boot-x86.
PATCH v3 1/3 x86: Convert minnowmax to use CONFIG_DM_USB
In reply to Simon GlassQuoted 27 lines · Simon Glass
Move to driver model for USB on minnowmax.
Signed-off-by Simon Glass <[email protected]>---
Changes in v3:
- Use savedefconfig to tidy up the orderingChanges in v2: None
configs/minnowmax_defconfig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)configs/minnowmax_defconfig +3
-0@@ -18,13 +18,14 @@ CONFIG_OF_CONTROL=y CONFIG_CPU=y CONFIG_DM_PCI=y CONFIG_SPI_FLASH=y +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_BASE=0x3f8 +CONFIG_DEBUG_UART_CLOCK=1843200 CONFIG_VIDEO_VESA=y CONFIG_FRAMEBUFFER_SET_VESA_MODE=y CONFIG_FRAMEBUFFER_VESA_MODE_11A=y
configs/minnowmax_defconfig CONFIG_OF_CONTROL=y
Quoted 10 lines
configs/minnowmax_defconfig +2
-5+CONFIG_USB=y +CONFIG_DM_USB=y CONFIG_DM_RTC=y CONFIG_USE_PRIVATE_LIBGCC=y CONFIG_SYS_VSNPRINTF=y -CONFIG_DEBUG_UART=y -CONFIG_DEBUG_UART_NS16550=y -CONFIG_DEBUG_UART_BASE=0x3f8 -CONFIG_DEBUG_UART_CLOCK=1843200 --
PATCH v3 1/3 x86: Convert minnowmax to use CONFIG_DM_USB
Quoted 32 lines · Bin Meng
Quoted 31 lines · Simon Glass
Move to driver model for USB on minnowmax.
Signed-off-by Simon Glass <[email protected]>---
Changes in v3:
- Use savedefconfig to tidy up the orderingChanges in v2: None
configs/minnowmax_defconfig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)configs/minnowmax_defconfig +5
-0@@ -18,13 +18,14 @@ CONFIG_OF_CONTROL=y CONFIG_CPU=y CONFIG_DM_PCI=y CONFIG_SPI_FLASH=y +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_BASE=0x3f8 +CONFIG_DEBUG_UART_CLOCK=1843200 CONFIG_VIDEO_VESA=y CONFIG_FRAMEBUFFER_SET_VESA_MODE=y CONFIG_FRAMEBUFFER_VESA_MODE_11A=y +CONFIG_USB=y +CONFIG_DM_USB=y CONFIG_DM_RTC=y CONFIG_USE_PRIVATE_LIBGCC=y
Quoted 8 lines
configs/minnowmax_defconfig CONFIG_OF_CONTROL=y
Quoted 6 lines
configs/minnowmax_defconfig +0
-5CONFIG_SYS_VSNPRINTF=y -CONFIG_DEBUG_UART=y -CONFIG_DEBUG_UART_NS16550=y -CONFIG_DEBUG_UART_BASE=0x3f8 -CONFIG_DEBUG_UART_CLOCK=1843200 --Reviewed-by Bin Meng <[email protected]>
Applied to u-boot-x86.