Patchwork kconfig support for ASUS P2B-F

login
register
about
Submitter Uwe Hermann
Date 2009-08-24 22:58:54
Message ID <20090824225854.GC14664@greenwood>
Download mbox | patch
Permalink /patch/181/
State Accepted
Headers show

Comments

Uwe Hermann - 2009-08-24 22:58:54
See patch.


Uwe.
Stefan Reinauer - 2009-08-25 09:15:13
On 8/25/09 12:58 AM, Uwe Hermann wrote:
> See patch.
>
>
> Uwe.
> -- http://www.hermann-uwe.de | http://www.holsham-traders.de
> http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
> ------------------------------------------------------------------------
>
> Add kconfig support for ASUS P2B-F.
>
> Only build-tested so far, not tested on hardware.
>
> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
>   
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Uwe Hermann - 2009-08-25 12:26:48
On Tue, Aug 25, 2009 at 11:15:13AM +0200, Stefan Reinauer wrote:
> > Add kconfig support for ASUS P2B-F.
> >
> > Only build-tested so far, not tested on hardware.
> >
> > Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
> >   
> Acked-by: Stefan Reinauer <stepan@coresystems.de>

Thanks, r4572.

I took the freedom to move the board config from
src/mainboard/asus/Kconfig to src/mainboard/asus/p2b-f/Kconfig
to match the style of the other new Kconfig boards.


Uwe.
ron minnich - 2009-08-25 14:08:42
On Tue, Aug 25, 2009 at 5:26 AM, Uwe Hermann<uwe@hermann-uwe.de> wrote:

>
> I took the freedom to move the board config from
> src/mainboard/asus/Kconfig to src/mainboard/asus/p2b-f/Kconfig
> to match the style of the other new Kconfig boards.

Wonderful! how does it look to you when you do mainboard selection? As
you would like it to?

ron

Patch

Add kconfig support for ASUS P2B-F.

Only build-tested so far, not tested on hardware.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>

Index: src/cpu/intel/Kconfig
===================================================================
--- src/cpu/intel/Kconfig	(Revision 4566)
+++ src/cpu/intel/Kconfig	(Arbeitskopie)
@@ -1,4 +1,5 @@ 
 source src/cpu/intel/model_6ex/Kconfig
 source src/cpu/intel/model_6fx/Kconfig
 source src/cpu/intel/socket_mFCPGA478/Kconfig
-source src/cpu/intel/socket_PGA370/Kconfig
\ No newline at end of file
+source src/cpu/intel/socket_PGA370/Kconfig
+source src/cpu/intel/slot_2/Kconfig
Index: src/cpu/intel/Makefile.inc
===================================================================
--- src/cpu/intel/Makefile.inc	(Revision 4566)
+++ src/cpu/intel/Makefile.inc	(Arbeitskopie)
@@ -4,6 +4,7 @@ 
 
 subdirs-$(CONFIG_CPU_INTEL_SOCKET_MFCPGA478) += socket_mFCPGA478
 subdirs-$(CONFIG_CPU_INTEL_SOCKET_PGA370) += socket_PGA370
+subdirs-$(CONFIG_CPU_INTEL_SLOT_2) += slot_2
 
 #socket_mPGA478
 #socket_mPGA479M
Index: src/cpu/intel/slot_2/Kconfig
===================================================================
--- src/cpu/intel/slot_2/Kconfig	(Revision 0)
+++ src/cpu/intel/slot_2/Kconfig	(Revision 0)
@@ -0,0 +1,24 @@ 
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+config CPU_INTEL_SLOT_2
+	bool
+	default n
+
Index: src/cpu/intel/slot_2/Makefile.inc
===================================================================
--- src/cpu/intel/slot_2/Makefile.inc	(Revision 0)
+++ src/cpu/intel/slot_2/Makefile.inc	(Revision 0)
@@ -0,0 +1,32 @@ 
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+obj-y += slot_2.o
+subdirs-y += ../model_6xx
+subdirs-y += ../../x86/tsc
+subdirs-y += ../../x86/mtrr
+subdirs-y += ../../x86/fpu
+subdirs-y += ../../x86/mmx
+subdirs-y += ../../x86/sse
+subdirs-y += ../../x86/lapic
+subdirs-y += ../../x86/cache
+subdirs-y += ../../x86/smm
+subdirs-y += ../microcode
+
Index: src/mainboard/asus/Kconfig
===================================================================
--- src/mainboard/asus/Kconfig	(Revision 4566)
+++ src/mainboard/asus/Kconfig	(Arbeitskopie)
@@ -1 +1,65 @@ 
-#
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+choice
+	prompt "Mainboard model"
+	depends on VENDOR_ASUS
+
+config BOARD_ASUS_P2B_F
+	bool "P2B-F"
+	select ARCH_X86
+	select CPU_INTEL_SLOT_2
+	select NORTHBRIDGE_INTEL_I440BX
+	select SOUTHBRIDGE_INTEL_I82371EB
+	select SUPERIO_WINBOND_W83977TF
+	select HAVE_PIRQ_TABLE
+	select UDELAY_IO
+	select PCI_ROM_RUN
+	select CONSOLE_VGA
+	help
+	  ASUS P2B-F mainboard.
+
+endchoice
+
+config MAINBOARD_DIR
+	string
+	default asus/p2b-f
+	depends on BOARD_ASUS_P2B_F
+
+config MAINBOARD_VENDOR
+	string
+	default "ASUS"
+	depends on BOARD_ASUS_P2B_F
+
+config MAINBOARD_PART_NUMBER
+	string
+	default "P2B-F"
+	depends on BOARD_ASUS_P2B_F
+
+config HAVE_OPTION_TABLE
+	bool
+	default n
+	depends on BOARD_ASUS_P2B_F
+
+config IRQ_SLOT_COUNT
+	int
+	default 7
+	depends on BOARD_ASUS_P2B_F
+
Index: src/mainboard/asus/p2b-f/Makefile.inc
===================================================================
--- src/mainboard/asus/p2b-f/Makefile.inc	(Revision 0)
+++ src/mainboard/asus/p2b-f/Makefile.inc	(Revision 0)
@@ -0,0 +1,54 @@ 
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+initobj-y += crt0.o
+crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
+crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
+crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
+crt0-y += ../../../../src/arch/i386/lib/cpu_reset.inc
+crt0-y += ../../../../src/arch/i386/lib/id.inc
+crt0-y += failover.inc
+crt0-y += ../../../../src/cpu/x86/fpu/enable_fpu.inc
+crt0-y += ../../../../src/cpu/x86/mmx/enable_mmx.inc
+crt0-y += auto.inc
+crt0-y += ../../../../src/cpu/x86/mmx/disable_mmx.inc
+
+ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
+ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
+ldscript-y += ../../../../src/cpu/x86/32bit/entry32.lds
+ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
+ldscript-y += ../../../../src/arch/i386/lib/id.lds
+ldscript-y += ../../../../src/arch/i386/lib/failover.lds
+
+driver-y += mainboard.o
+
+obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
+obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
+
+ifdef POST_EVALUATION
+
+$(obj)/mainboard/$(MAINBOARDDIR)/failover.inc: $(obj)/romcc $(src)/arch/i386/lib/failover.c
+	$(obj)/romcc -mcpu=p2 -O2 --label-prefix=failover $(INCLUDES) $(src)/arch/i386/lib/failover.c -o $@
+
+$(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(obj)/romcc $(src)/mainboard/$(MAINBOARDDIR)/auto.c
+	$(obj)/romcc -mcpu=p2 -O2 $(INCLUDES) $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
+
+endif
+
Index: src/northbridge/intel/Kconfig
===================================================================
--- src/northbridge/intel/Kconfig	(Revision 4566)
+++ src/northbridge/intel/Kconfig	(Arbeitskopie)
@@ -2,7 +2,7 @@ 
 #source src/northbridge/intel/e7520/Kconfig
 #source src/northbridge/intel/e7525/Kconfig
 #source src/northbridge/intel/i3100/Kconfig
-#source src/northbridge/intel/i440bx/Kconfig
+source src/northbridge/intel/i440bx/Kconfig
 source src/northbridge/intel/i82810/Kconfig
 #source src/northbridge/intel/i82830/Kconfig
 #source src/northbridge/intel/i855gme/Kconfig
Index: src/northbridge/intel/Makefile.inc
===================================================================
--- src/northbridge/intel/Makefile.inc	(Revision 4566)
+++ src/northbridge/intel/Makefile.inc	(Arbeitskopie)
@@ -2,7 +2,7 @@ 
 #subdirs-y += e7520
 #subdirs-y += e7525
 #subdirs-y += i3100
-#subdirs-y += i440bx
+subdirs-y += i440bx
 subdirs-y += i82810
 #subdirs-y += i82830
 #subdirs-y += i855gme
Index: src/northbridge/intel/i440bx/Kconfig
===================================================================
--- src/northbridge/intel/i440bx/Kconfig	(Revision 0)
+++ src/northbridge/intel/i440bx/Kconfig	(Revision 0)
@@ -0,0 +1,24 @@ 
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+config NORTHBRIDGE_INTEL_I440BX
+	bool
+	default n
+
Index: src/northbridge/intel/i440bx/Makefile.inc
===================================================================
--- src/northbridge/intel/i440bx/Makefile.inc	(Revision 0)
+++ src/northbridge/intel/i440bx/Makefile.inc	(Revision 0)
@@ -0,0 +1,22 @@ 
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+##
+
+driver-$(CONFIG_NORTHBRIDGE_INTEL_I440BX) += northbridge.o
+
Index: src/arch/i386/Makefile.inc
===================================================================
--- src/arch/i386/Makefile.inc	(Revision 4566)
+++ src/arch/i386/Makefile.inc	(Arbeitskopie)
@@ -5,7 +5,7 @@ 
 subdirs-y += lib
 subdirs-y += smp
 
-obj-y += ../../option_table.o
+obj-$(CONFIG_HAVE_OPTION_TABLE) += ../../option_table.o
 
 ifdef POST_EVALUATION
 BOOTBLOCK_SIZE=65536