Skip to content

Commit

Permalink
Restrict where we need to define fdt_fixup_table to just PowerPC and
Browse files Browse the repository at this point in the history
Marvell.

Sponsored by:	ABT Systems Ltd
  • Loading branch information
zxombie committed Sep 23, 2016
1 parent e8d397f commit 87021e0
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 69 deletions.
4 changes: 0 additions & 4 deletions sys/arm/allwinner/a10_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/vmparam.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG

static int
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/altera/socfpga/socfpga_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ cpu_reset(void)
while (1);
}

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_pic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/amlogic/aml8726/aml8726_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ platform_devmap_init(void)
return (0);
}

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
#ifndef DEV_GIC
static int
Expand Down
3 changes: 0 additions & 3 deletions sys/arm/annapurna/alpine/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ __FBSDID("$FreeBSD$");
#define LOCK 0x00000001

extern bus_addr_t al_devmap_pa;
struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

static int alpine_get_wdt_base(uint32_t *pbase, uint32_t *psize);
static int alpine_pic_decode_fdt(uint32_t iparent, uint32_t *intr,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/at91/at91_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ __FBSDID("$FreeBSD$");

extern const struct devmap_entry at91_devmap[];

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_aic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/broadcom/bcm2835/bcm2835_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/vmparam.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_intc_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/freescale/imx/imx6_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ __FBSDID("$FreeBSD$");

#include "platform_if.h"

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

static uint32_t gpio1_node;

#ifndef INTRNG
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/freescale/imx/imx_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/vmparam.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_intc_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/freescale/vybrid/vf_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ cpu_reset(void)
while (1);
}

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_pic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/lpc/lpc_intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ lpc_intc_eoi(void *data)

}

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_pic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/nvidia/tegra124/tegra124_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ __FBSDID("$FreeBSD$");
PMC_SCRATCH0_MODE_BOOTLOADER | \
PMC_SCRATCH0_MODE_RCM)

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

static vm_offset_t
tegra124_lastaddr(platform_t plat)
{
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/qemu/virt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ __FBSDID("$FreeBSD$");

#include <machine/intr.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
fdt_pic_decode_t fdt_pic_table[] = {
&gic_decode_fdt,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/rockchip/rk30xx_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/vmparam.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_aintc_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/samsung/exynos/exynos5_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ cpu_reset(void)
while (1);
}

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_pic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/ti/ti_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ __FBSDID("$FreeBSD$");
#include <machine/intr.h>
#include <machine/vmparam.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
#ifdef SOC_TI_AM335X
static int
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/versatile/versatile_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/vmparam.h>

struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_intc_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
4 changes: 0 additions & 4 deletions sys/arm/xilinx/zy7_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ platform_devmap_init(void)
}


struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};

#ifndef INTRNG
static int
fdt_gic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Expand Down
13 changes: 11 additions & 2 deletions sys/dev/ofw/ofw_fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ __FBSDID("$FreeBSD$");
#define debugf(fmt, args...)
#endif

#if defined(__arm__)
#if defined(SOC_MV_ARMADAXP) || defined(SOC_MV_ARMADA38X) || \
defined(SOC_MV_DISCOVERY) || defined(SOC_MV_DOVE) || \
defined(SOC_MV_FREY) || defined(SOC_MV_KIRKWOOD) || \
defined(SOC_MV_LOKIPLUS) || defined(SOC_MV_ORION)
#define FDT_MARVELL
#endif
#endif

static int ofw_fdt_init(ofw_t, void *);
static phandle_t ofw_fdt_peer(ofw_t, phandle_t);
static phandle_t ofw_fdt_child(ofw_t, phandle_t);
Expand Down Expand Up @@ -415,7 +424,7 @@ ofw_fdt_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
return (-1);
}

#if defined(__arm__) || defined(__powerpc__)
#if defined(FDT_MARVELL) || defined(__powerpc__)
static int
ofw_fdt_fixup(ofw_t ofw)
{
Expand Down Expand Up @@ -454,7 +463,7 @@ ofw_fdt_fixup(ofw_t ofw)
static int
ofw_fdt_interpret(ofw_t ofw, const char *cmd, int nret, cell_t *retvals)
{
#if defined(__arm__) || defined(__powerpc__)
#if defined(FDT_MARVELL) || defined(__powerpc__)
int rv;

/*
Expand Down

0 comments on commit 87021e0

Please sign in to comment.