Skip to contentSkip to conversation

x86: Convert minnowmax to use CONFIG_DM_USB

PATCH New Simon Glass 2 participants 9 messages Aug 11, 2015 – Aug 12, 2015 x86

lore
Share & tools
lore
#0 lore raw

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
index a67597d..2d9fa8c 100644
@@ -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
#1 lore raw

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
index c4f2c33..44e5bf4 100644
@@ -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
index 2d9fa8c..578fcce 100644
@@ -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
#2 lore raw

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.

---

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
index c4f2c33..44e5bf4 100644
@@ -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
index 2d9fa8c..578fcce 100644

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
--
#3 lore raw

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.

---

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
index c4f2c33..44e5bf4 100644
@@ -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
index 2d9fa8c..578fcce 100644
@@ -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 -1
 CONFIG_SPI_FLASH=y
+CONFIG_DM_ETH=y
 CONFIG_DEBUG_UART=y
 CONFIG_DEBUG_UART_BASE=0x3f8
 CONFIG_DEBUG_UART_CLOCK=1843200
--

Applied to u-boot-x86.

#4 lore raw

PATCH v3 3/3 x86: Show the un-relocated IP address in exceptions

In reply to 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.

---

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
index 9217307..addd26e 100644
@@ -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
#5 lore raw

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.

---

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 +0 -0
index 9217307..addd26e 100644

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);
--
#6 lore raw

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.

---

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
index 9217307..addd26e 100644
@@ -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 -1
        printf("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
                regs->eax, regs->ebx, regs->ecx, regs->edx);
--

Applied to u-boot-x86.

#7 lore raw

PATCH v3 1/3 x86: Convert minnowmax to use CONFIG_DM_USB

In reply to Simon Glass
Quoted 27 lines · Simon Glass

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 +3 -0
index a67597d..2d9fa8c 100644
@@ -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
--
#8 lore raw

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.

---

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 -0
index a67597d..2d9fa8c 100644
@@ -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 -5
 CONFIG_SYS_VSNPRINTF=y
-CONFIG_DEBUG_UART=y
-CONFIG_DEBUG_UART_NS16550=y
-CONFIG_DEBUG_UART_BASE=0x3f8
-CONFIG_DEBUG_UART_CLOCK=1843200
--

Applied to u-boot-x86.