/*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 <asm/platform.h>17#include <asm/timex.h>1819/*20* Default functions that are used if no platform specific function is defined.21* (Please, refer to arch/xtensa/include/asm/platform.h for more information)22*/2324void __weak __init platform_init(bp_tag_t *first)25{26}2728void __weak __init platform_setup(char **cmd)29{30}3132void __weak platform_idle(void)33{34__asm__ __volatile__ ("waiti 0" ::: "memory");35}3637#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT38void __weak platform_calibrate_ccount(void)39{40pr_err("ERROR: Cannot calibrate cpu frequency! Assuming 10MHz.\n");41ccount_freq = 10 * 1000000UL;42}43#endif444546