rdc/r8610: Move to src/soc

Change-Id: I99e5d7f3b46c90ca863ddf6c186b5447d0c8e6f2
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14607
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Stefan Reinauer 2016-05-04 13:24:47 -07:00
parent 5caf89b9f8
commit 3b0f20ba70
9 changed files with 31 additions and 46 deletions

View File

@ -2,14 +2,8 @@ if BOARD_BIFFEROS_BIFFERBOARD
config BOARD_SPECIFIC_OPTIONS
def_bool y
select ARCH_BOOTBLOCK_X86_32
select ARCH_VERSTAGE_X86_32
select ARCH_ROMSTAGE_X86_32
select ARCH_RAMSTAGE_X86_32
select ROMCC
select BOARD_ROMSIZE_KB_128
select NORTHBRIDGE_RDC_R8610
select SOUTHBRIDGE_RDC_R8610
select SOC_RDC_R8610
config MAINBOARD_DIR
string

View File

@ -1,8 +1,6 @@
chip northbridge/rdc/r8610
chip soc/rdc/r8610
device domain 0 on
device pci 0.0 on end
chip southbridge/rdc/r8610 # Southbridge
device pci 7.0 on end # SB
end
end
end

View File

@ -1,3 +0,0 @@
config NORTHBRIDGE_RDC_R8610
bool
select LATE_CBMEM_INIT

View File

@ -13,10 +13,16 @@
## GNU General Public License for more details.
##
config SOUTHBRIDGE_RDC_R8610
config SOC_RDC_R8610
bool
select ARCH_BOOTBLOCK_X86_32
select ARCH_VERSTAGE_X86_32
select ARCH_ROMSTAGE_X86_32
select ARCH_RAMSTAGE_X86_32
select ROMCC
select LATE_CBMEM_INIT
config BOOTBLOCK_SOUTHBRIDGE_INIT
string
default "southbridge/rdc/r8610/bootblock.c"
depends on SOUTHBRIDGE_RDC_R8610
default "soc/rdc/r8610/bootblock.c"
depends on SOC_RDC_R8610

View File

@ -2,6 +2,7 @@
## This file is part of the coreboot project.
##
## Copyright (C) 2007 Corey Osgood <corey.osgood@gmail.com>
## Copyright (C) 2007, 2009 Rudolf Marek <r.marek@assembler.cz>
##
## 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
@ -14,8 +15,9 @@
## GNU General Public License for more details.
##
ifeq ($(CONFIG_NORTHBRIDGE_RDC_R8610),y)
ifeq ($(CONFIG_SOC_RDC_R8610),y)
ramstage-y += northbridge.c
ramstage-y += r8610.c
endif

View File

@ -16,9 +16,11 @@
#include <arch/io.h>
#include <device/pci_def.h>
static void bootblock_southbridge_init(void) {
static void bootblock_southbridge_init(void)
{
uint32_t tmp;
tmp = pci_read_config32(PCI_DEV(0,7,0), 0x40);
tmp = pci_read_config32(PCI_DEV(0, 7, 0), 0x40);
/* decode all flash ranges */
pci_write_config32(PCI_DEV(0,7,0), 0x40, tmp | 0x07ff0000);
pci_write_config32(PCI_DEV(0, 7, 0), 0x40, tmp | 0x07ff0000);
}

View File

@ -88,9 +88,11 @@ static int rdc_get_smbios_data16(int handle, unsigned long *current)
return len;
}
static int rdc_get_smbios_data(device_t dev, int *handle, unsigned long *current)
static int rdc_get_smbios_data(device_t dev, int *handle,
unsigned long *current)
{
int len;
len = rdc_get_smbios_data16(*handle, current);
*handle += 1;
return len;
@ -110,8 +112,8 @@ static struct device_operations pci_domain_ops = {
static void enable_dev(struct device *dev)
{
/* Set the operations if it is a special bus type */
if (dev->path.type == DEVICE_PATH_DOMAIN) {
/* Set the operations if it is a special bus type */
dev->ops = &pci_domain_ops;
}
}

View File

@ -45,7 +45,9 @@ static void r8610_init(struct device *dev)
/* Set serial base */
pci_write_config32(dev, 0x54, 0x3f8);
/* serial IRQ disable, LPC disable, COM2 goes to LPC, internal UART for COM1 */
/* serial IRQ disable, LPC disable,
* COM2 goes to LPC, internal UART for COM1
*/
pci_write_config32(dev, 0x50, 0x84101012);
/* Enable internal Port92, enable chipselect for flash */
@ -55,7 +57,9 @@ static void r8610_init(struct device *dev)
/* buffer strength SB pins */
pci_write_config32(dev, 0x5c, 0x2315);
/* EHCI 14, OHCI 15, MAC1 disable, MAC0 10, INTD 9, INTC 9, INTB 12, INTA INT10 */
/* EHCI 14, OHCI 15, MAC1 disable, MAC0 10, INTD 9,
* INTC 9, INTB 12, INTA INT10
*/
pci_write_config32(dev, 0x58, 0xdf0311b3);
/* USB PHY control */

View File

@ -1,20 +0,0 @@
##
## This file is part of the coreboot project.
##
## Copyright (C) 2007, 2009 Rudolf Marek <r.marek@assembler.cz>
##
## 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; version 2 of the License.
##
## 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.
##
ifeq ($(CONFIG_SOUTHBRIDGE_RDC_R8610),y)
ramstage-y += r8610.c
endif