/*1* arch/arm/mach-lpc32xx/common.h2*3* Author: Kevin Wells <[email protected]>4*5* Copyright (C) 2009-2010 NXP Semiconductors6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*/1718#ifndef __LPC32XX_COMMON_H19#define __LPC32XX_COMMON_H2021#include <linux/platform_device.h>2223/*24* Arch specific platform device structures25*/26extern struct platform_device lpc32xx_watchdog_device;27extern struct platform_device lpc32xx_i2c0_device;28extern struct platform_device lpc32xx_i2c1_device;29extern struct platform_device lpc32xx_i2c2_device;3031/*32* Other arch specific structures and functions33*/34extern struct sys_timer lpc32xx_timer;35extern void __init lpc32xx_init_irq(void);36extern void __init lpc32xx_map_io(void);37extern void __init lpc32xx_serial_init(void);38extern void __init lpc32xx_gpio_init(void);3940/*41* Structure used for setting up and querying the PLLS42*/43struct clk_pll_setup {44int analog_on;45int cco_bypass_b15;46int direct_output_b14;47int fdbk_div_ctrl_b13;48int pll_p;49int pll_n;50u32 pll_m;51};5253extern int clk_is_sysclk_mainosc(void);54extern u32 clk_check_pll_setup(u32 ifreq, struct clk_pll_setup *pllsetup);55extern u32 clk_get_pllrate_from_reg(u32 inputclk, u32 regval);56extern u32 clk_get_pclk_div(void);5758/*59* Returns the LPC32xx unique 128-bit chip ID60*/61extern void lpc32xx_get_uid(u32 devid[4]);6263extern void lpc32xx_watchdog_reset(void);64extern u32 lpc32xx_return_iram_size(void);6566/*67* Pointers used for sizing and copying suspend function data68*/69extern int lpc32xx_sys_suspend(void);70extern int lpc32xx_sys_suspend_sz;7172#endif737475