Path: blob/master/arch/powerpc/platforms/512x/mpc5121_generic.c
10820 views
/*1* Copyright (C) 2007,2008 Freescale Semiconductor, Inc. All rights reserved.2*3* Author: John Rigby, <[email protected]>4*5* Description:6* MPC5121 SoC setup7*8* This is free software; you can redistribute it and/or modify it9* under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2 of the License, or11* (at your option) any later version.12*13*/1415#include <linux/kernel.h>16#include <linux/of_platform.h>1718#include <asm/machdep.h>19#include <asm/ipic.h>20#include <asm/prom.h>21#include <asm/time.h>2223#include "mpc512x.h"2425/*26* list of supported boards27*/28static const char *board[] __initdata = {29"prt,prtlvt",30NULL31};3233/*34* Called very early, MMU is off, device-tree isn't unflattened35*/36static int __init mpc5121_generic_probe(void)37{38return of_flat_dt_match(of_get_flat_dt_root(), board);39}4041define_machine(mpc5121_generic) {42.name = "MPC5121 generic",43.probe = mpc5121_generic_probe,44.init = mpc512x_init,45.init_early = mpc512x_init_diu,46.setup_arch = mpc512x_setup_diu,47.init_IRQ = mpc512x_init_IRQ,48.get_irq = ipic_get_irq,49.calibrate_decr = generic_calibrate_decr,50.restart = mpc512x_restart,51};525354