Skip to contentSkip to conversation

x86: Add crownbay defconfig and config.h

PATCH New Bin Meng 2 participants 4 messages Dec 4, 2014 – Dec 5, 2014

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 19/25 x86: Add crownbay defconfig and config.h

---
 configs/crownbay_defconfig |  6 ++++++
 include/configs/crownbay.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 configs/crownbay_defconfig
 create mode 100644 include/configs/crownbay.h
configs/crownbay_defconfig new file +6 -0
new file mode 100644
index 0000000..ce90553
@@ -0,0 +1,6 @@
+CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
+CONFIG_X86=y
+CONFIG_TARGET_CROWNBAY=y
+CONFIG_OF_CONTROL=y
+CONFIG_OF_SEPARATE=y
+CONFIG_DEFAULT_DEVICE_TREE="crownbay"
include/configs/crownbay.h new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
1.8.2.1
#1 lore raw

PATCH 19/25 x86: Add crownbay defconfig and config.h

Hi Bin,

Quoted 39 lines · Bin Meng
---
 configs/crownbay_defconfig |  6 ++++++
 include/configs/crownbay.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 configs/crownbay_defconfig
 create mode 100644 include/configs/crownbay.h
configs/crownbay_defconfig new file +6 -0
new file mode 100644
index 0000000..ce90553
@@ -0,0 +1,6 @@
+CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
+CONFIG_X86=y
+CONFIG_TARGET_CROWNBAY=y
+CONFIG_OF_CONTROL=y
+CONFIG_OF_SEPARATE=y
+CONFIG_DEFAULT_DEVICE_TREE="crownbay"
include/configs/crownbay.h new file +13 -0
new file mode 100644
index 0000000..2314e62
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2014, Bin Meng <[email protected]>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/*
+ * board/config.h - configuration options, board specific
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+

include/configs/crownbay.h line 23

Quoted 10 lines
include/configs/crownbay.h new file +10 -0
+#include <configs/x86-common.h>
+
+#define CONFIG_SYS_MONITOR_LEN         (1 << 20)
+#define CONFIG_SYS_X86_START16         0xfffff800
+#define CONFIG_BOARD_EARLY_INIT_F
+
+#define CONFIG_X86_RESET_VECTOR
+#define CONFIG_NR_DRAM_BANKS           1
+
+#define CONFIG_COREBOOT_SERIAL

Do you think you could create a patch to rename this to x86_serial?

Quoted 17 lines
include/configs/crownbay.h new file +17 -0
+#define CONFIG_SMSC_LPC47M
+
+#define CONFIG_PCI_MEM_BUS             0x40000000
+#define CONFIG_PCI_MEM_PHYS            CONFIG_PCI_MEM_BUS
+#define CONFIG_PCI_MEM_SIZE            0x80000000
+
+#define CONFIG_PCI_PREF_BUS            0xc0000000
+#define CONFIG_PCI_PREF_PHYS           CONFIG_PCI_PREF_BUS
+#define CONFIG_PCI_PREF_SIZE           0x20000000
+
+#define CONFIG_PCI_IO_BUS              0x2000
+#define CONFIG_PCI_IO_PHYS             CONFIG_PCI_IO_BUS
+#define CONFIG_PCI_IO_SIZE             0xe000
+
+#define CONFIG_SYS_EARLY_PCI_INIT
+#define CONFIG_PCI_PNP
+

include/configs/crownbay.h line 50

Quoted 10 lines
include/configs/crownbay.h new file +10 -0
+#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
+                                       "stdout=serial\0" \
+                                       "stderr=serial\0"
+
+#define CONFIG_SCSI_DEV_LIST            \
+       {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SATA}
+
+/* Video is not supported */
+#undef CONFIG_VIDEO
+#undef CONFIG_CFB_CONSOLE

Why is video not supported?

Quoted 5 lines
include/configs/crownbay.h new file +2 -1
+
+#endif /* __CONFIG_H */
--

1.8.2.1

Regards,
Simon

author
#2 lore raw

PATCH 19/25 x86: Add crownbay defconfig and config.h

Hi Simon,

Quoted 46 lines · Simon Glass

Hi Bin,

Quoted 43 lines · Bin Meng
---
 configs/crownbay_defconfig |  6 ++++++
 include/configs/crownbay.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 configs/crownbay_defconfig
 create mode 100644 include/configs/crownbay.h
configs/crownbay_defconfig new file +6 -0
new file mode 100644
index 0000000..ce90553
@@ -0,0 +1,6 @@
+CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
+CONFIG_X86=y
+CONFIG_TARGET_CROWNBAY=y
+CONFIG_OF_CONTROL=y
+CONFIG_OF_SEPARATE=y
+CONFIG_DEFAULT_DEVICE_TREE="crownbay"
include/configs/crownbay.h new file +17 -0
new file mode 100644
index 0000000..2314e62
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2014, Bin Meng <[email protected]>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/*
+ * board/config.h - configuration options, board specific
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include <configs/x86-common.h>
+
+#define CONFIG_SYS_MONITOR_LEN         (1 << 20)
+#define CONFIG_SYS_X86_START16         0xfffff800
Quoted 8 lines

include/configs/crownbay.h line 23

Quoted 6 lines
include/configs/crownbay.h new file +6 -0
+#define CONFIG_BOARD_EARLY_INIT_F
+
+#define CONFIG_X86_RESET_VECTOR
+#define CONFIG_NR_DRAM_BANKS           1
+
+#define CONFIG_COREBOOT_SERIAL

Do you think you could create a patch to rename this to x86_serial?

Sure, I can.

Quoted 21 lines
Quoted 21 lines
include/configs/crownbay.h new file +21 -0
+#define CONFIG_SMSC_LPC47M
+
+#define CONFIG_PCI_MEM_BUS             0x40000000
+#define CONFIG_PCI_MEM_PHYS            CONFIG_PCI_MEM_BUS
+#define CONFIG_PCI_MEM_SIZE            0x80000000
+
+#define CONFIG_PCI_PREF_BUS            0xc0000000
+#define CONFIG_PCI_PREF_PHYS           CONFIG_PCI_PREF_BUS
+#define CONFIG_PCI_PREF_SIZE           0x20000000
+
+#define CONFIG_PCI_IO_BUS              0x2000
+#define CONFIG_PCI_IO_PHYS             CONFIG_PCI_IO_BUS
+#define CONFIG_PCI_IO_SIZE             0xe000
+
+#define CONFIG_SYS_EARLY_PCI_INIT
+#define CONFIG_PCI_PNP
+
+#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
+                                       "stdout=serial\0" \
+                                       "stderr=serial\0"
+
Quoted 9 lines

include/configs/crownbay.h line 50

Quoted 6 lines
include/configs/crownbay.h new file +6 -0
+#define CONFIG_SCSI_DEV_LIST            \
+       {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SATA}
+
+/* Video is not supported */
+#undef CONFIG_VIDEO
+#undef CONFIG_CFB_CONSOLE

Why is video not supported?

Tunnel Creek has one GPU integrated, but on my Crown Bay board, the output siginal is routed to LVDS to be connected to an external LCD, which I don't have for now. There is no public datasheet describing the details about the integrated GPU, neither did I found a legacy video ROM supporting that. There seems to be a UEFI native graphics driver from Intel, but that means I will need study that and write a U-Boot native graphics driver, which needs some time. Maybe supporting PCIe based graphics card is an option, and I will find some time to try that.

Regards,
Bin

#3 lore raw

PATCH 19/25 x86: Add crownbay defconfig and config.h

Hi Bin,

Quoted 91 lines · Bin Meng

Hi Simon,

Quoted 46 lines · Simon Glass

Hi Bin,

Quoted 43 lines · Bin Meng
---
 configs/crownbay_defconfig |  6 ++++++
 include/configs/crownbay.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 configs/crownbay_defconfig
 create mode 100644 include/configs/crownbay.h
configs/crownbay_defconfig new file +6 -0
new file mode 100644
index 0000000..ce90553
@@ -0,0 +1,6 @@
+CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
+CONFIG_X86=y
+CONFIG_TARGET_CROWNBAY=y
+CONFIG_OF_CONTROL=y
+CONFIG_OF_SEPARATE=y
+CONFIG_DEFAULT_DEVICE_TREE="crownbay"
include/configs/crownbay.h new file +17 -0
new file mode 100644
index 0000000..2314e62
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2014, Bin Meng <[email protected]>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/*
+ * board/config.h - configuration options, board specific
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include <configs/x86-common.h>
+
+#define CONFIG_SYS_MONITOR_LEN         (1 << 20)
+#define CONFIG_SYS_X86_START16         0xfffff800
Quoted 8 lines

include/configs/crownbay.h line 23

Quoted 6 lines
include/configs/crownbay.h new file +6 -0
+#define CONFIG_BOARD_EARLY_INIT_F
+
+#define CONFIG_X86_RESET_VECTOR
+#define CONFIG_NR_DRAM_BANKS           1
+
+#define CONFIG_COREBOOT_SERIAL

Do you think you could create a patch to rename this to x86_serial?

Sure, I can.

Quoted 21 lines
Quoted 21 lines
include/configs/crownbay.h new file +21 -0
+#define CONFIG_SMSC_LPC47M
+
+#define CONFIG_PCI_MEM_BUS             0x40000000
+#define CONFIG_PCI_MEM_PHYS            CONFIG_PCI_MEM_BUS
+#define CONFIG_PCI_MEM_SIZE            0x80000000
+
+#define CONFIG_PCI_PREF_BUS            0xc0000000
+#define CONFIG_PCI_PREF_PHYS           CONFIG_PCI_PREF_BUS
+#define CONFIG_PCI_PREF_SIZE           0x20000000
+
+#define CONFIG_PCI_IO_BUS              0x2000
+#define CONFIG_PCI_IO_PHYS             CONFIG_PCI_IO_BUS
+#define CONFIG_PCI_IO_SIZE             0xe000
+
+#define CONFIG_SYS_EARLY_PCI_INIT
+#define CONFIG_PCI_PNP
+
+#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
+                                       "stdout=serial\0" \
+                                       "stderr=serial\0"
+
Quoted 9 lines

include/configs/crownbay.h line 50

Quoted 6 lines
include/configs/crownbay.h new file +6 -0
+#define CONFIG_SCSI_DEV_LIST            \
+       {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SATA}
+
+/* Video is not supported */
+#undef CONFIG_VIDEO
+#undef CONFIG_CFB_CONSOLE

Why is video not supported?

Quoted 9 lines

Tunnel Creek has one GPU integrated, but on my Crown Bay board, the output siginal is routed to LVDS to be connected to an external LCD, which I don't have for now. There is no public datasheet describing the details about the integrated GPU, neither did I found a legacy video ROM supporting that. There seems to be a UEFI native graphics driver from Intel, but that means I will need study that and write a U-Boot native graphics driver, which needs some time. Maybe supporting PCIe based graphics card is an option, and I will find some time to try that.

I'm not so worried about PCIe-based graphics, although it might mostly work with a big of tweaking, since we can find and execute ROMs.

But for built-in graphics I would like to support it. This is a key feature, and I hope there will be common elements. between the boards. Similarly with things like USB, Ethernet, SD card which you have addressed.

Regards,
Simon