Date: Wed, 3 Feb 2010 20:36:00 GMT From: Rafal Jaworowski <raj@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 174263 for review Message-ID: <201002032036.o13Ka061007705@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174263 Change 174263 by raj@raj_fdt on 2010/02/03 20:35:24 Introduce 'bus-frequency' fixup. Affected files ... .. //depot/projects/fdt/sys/dev/fdt/fdt_arm.c#3 edit Differences ... ==== //depot/projects/fdt/sys/dev/fdt/fdt_arm.c#3 (text+ko) ==== @@ -38,14 +38,32 @@ #include <machine/intr.h> +#include <dev/fdt/fdt_common.h> #include <dev/ofw/ofw_bus.h> #include <dev/ofw/ofw_bus_subr.h> #include <dev/ofw/openfirm.h> +#include <arm/mv/mvvar.h> + #include "ofw_bus_if.h" -#include "fdt_common.h" + +static void +fdt_fixup_busfreq(phandle_t node) +{ + pcell_t freq; + + /* + * This fixup sets the simple-bus bus-frequency property. + */ + freq = cpu_to_fdt32(get_tclk()); + OF_setprop(node, "bus-frequency", (void *)&freq, sizeof(freq)); +} + +struct fdt_fixup_entry fdt_fixup_table[] = { + { "mrvl,DB-88F6281", &fdt_fixup_busfreq }, + { NULL, NULL } +}; -#include "../../contrib/dtc/libfdt/libfdt_env.h" static int fdt_pic_decode_ic(phandle_t node, pcell_t *intr, int *interrupt, int *trig,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002032036.o13Ka061007705>