IEI Kino mainoard support based on Mahogany Fam10. svn copy amd/mahogany iei/kino-780am2-fam10; then apply the patch.
Signed-off-by: Marc Jones marcj303@gmail.com
Marc Jones wrote:
IEI Kino mainoard support based on Mahogany Fam10. svn copy amd/mahogany iei/kino-780am2-fam10; then apply the patch.
Signed-off-by: Marc Jones marcj303@gmail.com
+++ coreboot/src/mainboard/iei/kino-780am2-fam10/mainboard.c 2010-09-10 10:14:37.000000000 -0600
..
+/* FIXME - Need to find GPIO for PCIE slot.
***/
- Kino uses GPIO ? as PCIe slot reset, GPIO? as GFX slot reset. We need to
- pull it up before training the slot.
void set_pcie_dereset() {
..
- /* No PCIE slots.*/
}
void set_pcie_reset() {
..
- /* No PCIE slots.*/
}
Uh? Is there or is there not a PCIe slot?
-static void mahogany_enable(device_t dev) +static void kino_enable(device_t dev) {
- printk(BIOS_INFO, "Mainboard MAHOGANY Enable. dev=0x%p\n", dev);
- printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
#if (CONFIG_GFXUMA == 1) msr_t msr, msr2; @@ -166,6 +121,6 @@ }
struct chip_operations mainboard_ops = {
- CHIP_NAME("AMD MAHOGANY Mainboard")
- .enable_dev = mahogany_enable,
- CHIP_NAME("IEI Kino-780AM2 Mainboard")
- .enable_dev = kino_enable,
};
Could the mainboard enable function reuse the CHIP_NAME somehow, or maybe both should just use CONFIG_MAINBOARD_PART_NUMBER ?
Acked-by: Peter Stuge peter@stuge.se
On 11.09.2010 01:39, Peter Stuge wrote:
Marc Jones wrote:
-static void mahogany_enable(device_t dev) +static void kino_enable(device_t dev) {
- printk(BIOS_INFO, "Mainboard MAHOGANY Enable. dev=0x%p\n", dev);
- printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
#if (CONFIG_GFXUMA == 1) msr_t msr, msr2; @@ -166,6 +121,6 @@ }
struct chip_operations mainboard_ops = {
- CHIP_NAME("AMD MAHOGANY Mainboard")
- .enable_dev = mahogany_enable,
- CHIP_NAME("IEI Kino-780AM2 Mainboard")
- .enable_dev = kino_enable,
};
Could the mainboard enable function reuse the CHIP_NAME somehow, or maybe both should just use CONFIG_MAINBOARD_PART_NUMBER ?
I once had such a patch, but I think it was rejected for two reasons: - grepping is more difficult because you have to match in two stages - building multi-mainboard images means CONFIG_MAINBOARD_PART_NUMBER is not really meaningful.
That said, I still support the idea and would be willing to update my patch.
Regards, Carl-Daniel
Carl-Daniel Hailfinger wrote:
- printk(BIOS_INFO, "Mainboard MAHOGANY Enable. dev=0x%p\n", dev);
- printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
..
struct chip_operations mainboard_ops = {
- CHIP_NAME("AMD MAHOGANY Mainboard")
- .enable_dev = mahogany_enable,
- CHIP_NAME("IEI Kino-780AM2 Mainboard")
- .enable_dev = kino_enable,
};
Could the mainboard enable function reuse the CHIP_NAME somehow, or maybe both should just use CONFIG_MAINBOARD_PART_NUMBER ?
I once had such a patch, but I think it was rejected for two reasons:
- grepping is more difficult because you have to match in two stages
Maybe make more use of __func__ then.
- building multi-mainboard images means CONFIG_MAINBOARD_PART_NUMBER
is not really meaningful.
Maybe it should be set by the build system per mainboard?
I think we still some time left before multiboard images, but I also think that the current coreboot infrastructure is a really great starting point for it.
I guess it will use the same scheme as fallback at least initially, with some method added for determining the current board, that means building one image per board anyway.
//Peter
On Fri, Sep 10, 2010 at 5:39 PM, Peter Stuge peter@stuge.se wrote:
Marc Jones wrote:
IEI Kino mainoard support based on Mahogany Fam10. svn copy amd/mahogany iei/kino-780am2-fam10; then apply the patch.
Signed-off-by: Marc Jones marcj303@gmail.com
+++ coreboot/src/mainboard/iei/kino-780am2-fam10/mainboard.c 2010-09-10 10:14:37.000000000 -0600
..
+/* FIXME - Need to find GPIO for PCIE slot.
- Kino uses GPIO ? as PCIe slot reset, GPIO? as GFX slot reset. We need to
* pull it up before training the slot. ***/ void set_pcie_dereset() {
..
- /* No PCIE slots.*/
}
void set_pcie_reset() {
..
- /* No PCIE slots.*/
}
Uh? Is there or is there not a PCIe slot?
-static void mahogany_enable(device_t dev) +static void kino_enable(device_t dev) {
- printk(BIOS_INFO, "Mainboard MAHOGANY Enable. dev=0x%p\n", dev);
- printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
#if (CONFIG_GFXUMA == 1) msr_t msr, msr2; @@ -166,6 +121,6 @@ }
struct chip_operations mainboard_ops = {
- CHIP_NAME("AMD MAHOGANY Mainboard")
- .enable_dev = mahogany_enable,
- CHIP_NAME("IEI Kino-780AM2 Mainboard")
- .enable_dev = kino_enable,
};
Could the mainboard enable function reuse the CHIP_NAME somehow, or maybe both should just use CONFIG_MAINBOARD_PART_NUMBER ?
Acked-by: Peter Stuge peter@stuge.se
I updated the PCIE slot comment to "Slot not yet supported".
r5812
Thanks, Marc