summaryrefslogtreecommitdiff
path: root/src/northbridge/via/cn700
diff options
context:
space:
mode:
authorAntonello Dettori <dev@dettori.io>2016-09-03 10:45:33 +0200
committerMartin Roth <martinroth@google.com>2016-10-01 17:39:33 +0200
commitca159f0fb3bff00cbfe4ba4f1e1b50211004505d (patch)
treefa17383e95bc659e8c0463d51fe0c38e09ecce00 /src/northbridge/via/cn700
parent76e8c00be6d7e86b34bf28f988de1d109bd66448 (diff)
northbridge/via/cn700: transition away from device_t
Replace the use of the old device_t definition inside northbridge/via/cn700. Change-Id: Ib7761697daad3c459f3568e5158f925199bcd919 Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/16689 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/via/cn700')
-rw-r--r--src/northbridge/via/cn700/raminit.c8
-rw-r--r--src/northbridge/via/cn700/raminit.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/northbridge/via/cn700/raminit.c b/src/northbridge/via/cn700/raminit.c
index e4384ce697..9cfd952f1e 100644
--- a/src/northbridge/via/cn700/raminit.c
+++ b/src/northbridge/via/cn700/raminit.c
@@ -34,7 +34,7 @@
#define DUMPNORTH()
#endif
-static void do_ram_command(device_t dev, u8 command)
+static void do_ram_command(pci_devfn_t dev, u8 command)
{
u8 reg;
@@ -58,7 +58,7 @@ static void do_ram_command(device_t dev, u8 command)
*
* @param dev The northbridge's CPU Host Interface (D0F2).
*/
-static void c7_cpu_setup(device_t dev)
+static void c7_cpu_setup(pci_devfn_t dev)
{
/* Host bus interface registers (D0F2 0x50-0x67) */
/* Request phase control */
@@ -376,7 +376,7 @@ static void sdram_set_registers(const struct mem_controller *ctrl)
static void sdram_set_post(const struct mem_controller *ctrl)
{
- device_t dev = ctrl->d0f3;
+ pci_devfn_t dev = ctrl->d0f3;
/* Enable multipage mode. */
pci_write_config8(dev, 0x69, 0x03);
@@ -389,7 +389,7 @@ static void sdram_set_post(const struct mem_controller *ctrl)
pci_write_config16(dev, 0xa4, 0x0010);
}
-static void sdram_enable(device_t dev, u8 *rank_address)
+static void sdram_enable(pci_devfn_t dev, u8 *rank_address)
{
u8 i;
diff --git a/src/northbridge/via/cn700/raminit.h b/src/northbridge/via/cn700/raminit.h
index 72865088e7..80e085fc6f 100644
--- a/src/northbridge/via/cn700/raminit.h
+++ b/src/northbridge/via/cn700/raminit.h
@@ -20,7 +20,7 @@
#define DIMM_SOCKETS 1 /* Only one works, for now. */
struct mem_controller {
- device_t d0f0, d0f2, d0f3, d0f4, d0f7, d1f0;
+ pci_devfn_t d0f0, d0f2, d0f3, d0f4, d0f7, d1f0;
u8 channel0[DIMM_SOCKETS];
};