/*1* arch/xtensa/kernel/platform.c2*3* Default platform functions.4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*9* Copyright (C) 2005 Tensilica Inc.10*11* Chris Zankel <[email protected]>12*/1314#include <linux/printk.h>15#include <linux/types.h>16#include <linux/units.h>17#include <asm/platform.h>18#include <asm/timex.h>1920/*21* Default functions that are used if no platform specific function is defined.22* (Please, refer to arch/xtensa/include/asm/platform.h for more information)23*/2425void __weak __init platform_init(bp_tag_t *first)26{27}2829void __weak __init platform_setup(char **cmd)30{31}3233void __weak platform_idle(void)34{35__asm__ __volatile__ ("waiti 0" ::: "memory");36}3738#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT39void __weak platform_calibrate_ccount(void)40{41pr_err("ERROR: Cannot calibrate cpu frequency! Assuming 10 MHz.\n");42ccount_freq = 10 * HZ_PER_MHZ;43}44#endif454647