Path: blob/master/arch/powerpc/platforms/44x/ebony.c
10820 views
/*1* Ebony board specific routines2*3* Matt Porter <[email protected]>4* Copyright 2002-2005 MontaVista Software Inc.5*6* Eugene Surovegin <[email protected]> or <[email protected]>7* Copyright (c) 2003-2005 Zultys Technologies8*9* Rewritten and ported to the merged powerpc tree:10* Copyright 2007 David Gibson <[email protected]>, IBM Corporation.11*12* This program is free software; you can redistribute it and/or modify it13* under the terms of the GNU General Public License as published by the14* Free Software Foundation; either version 2 of the License, or (at your15* option) any later version.16*/1718#include <linux/init.h>19#include <linux/of_platform.h>20#include <linux/rtc.h>2122#include <asm/machdep.h>23#include <asm/prom.h>24#include <asm/udbg.h>25#include <asm/time.h>26#include <asm/uic.h>27#include <asm/pci-bridge.h>28#include <asm/ppc4xx.h>2930static __initdata struct of_device_id ebony_of_bus[] = {31{ .compatible = "ibm,plb4", },32{ .compatible = "ibm,opb", },33{ .compatible = "ibm,ebc", },34{},35};3637static int __init ebony_device_probe(void)38{39of_platform_bus_probe(NULL, ebony_of_bus, NULL);40of_instantiate_rtc();4142return 0;43}44machine_device_initcall(ebony, ebony_device_probe);4546/*47* Called very early, MMU is off, device-tree isn't unflattened48*/49static int __init ebony_probe(void)50{51unsigned long root = of_get_flat_dt_root();5253if (!of_flat_dt_is_compatible(root, "ibm,ebony"))54return 0;5556ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC);5758return 1;59}6061define_machine(ebony) {62.name = "Ebony",63.probe = ebony_probe,64.progress = udbg_progress,65.init_IRQ = uic_init_tree,66.get_irq = uic_get_irq,67.restart = ppc4xx_reset_system,68.calibrate_decr = generic_calibrate_decr,69};707172