From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Gorsulowski Date: Mon, 29 Jun 2009 12:59:54 +0200 Subject: [U-Boot] [PATCH] at91: Add esd gmbh MEESC board support In-Reply-To: <4A486152.50008@esd.eu> References: <12457524691480-git-send-email-Daniel.Gorsulowski@esd.eu> <20090627221641.GS8587@game.jcrosoft.org> <4A486152.50008@esd.eu> Message-ID: <4A489EAA.5090307@esd.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Daniel Gorsulowski wrote: > Jean-Christophe PLAGNIOL-VILLARD wrote: >> >>> + >>> +int checkboard(void) >>> +{ >>> + char str[32]; >>> + char buf[32]; >>> + >>> + puts("Board: esd CAN-EtherCAT Gateway"); >>> + if (getenv_r("serial#", str, sizeof(str)) > 0) { >>> + puts(", serial# "); >>> + puts(str); >>> + } >>> + printf("\nHardware-revision: 1.%d\n", get_hw_rev()); >>> + printf("Crystal frequency:\t%8s MHz\n", >>> + strmhz(buf, get_main_clk_rate())); >>> + printf("CPU clock:\t\t%8s MHz\n", >>> + strmhz(buf, get_cpu_clk_rate())); >>> +#ifdef CONFIG_SHOW_VERBOSE_CLOCKINFO >>> + printf("Master clock:\t\t%8s MHz\n", >>> + strmhz(buf, get_mck_clk_rate())); >>> + printf("PLL A clock:\t\t%8s MHz\n", >>> + strmhz(buf, get_plla_clk_rate())); >>> + printf("PLL B Reg.:\t\t0x%08X\n", >>> + at91_sys_read(AT91_CKGR_PLLBR)); >>> + printf("PLL B clock:\t\t%8s MHz\n", >>> + strmhz(buf, get_pllb_clk_rate())); >>> +#endif >>> + printf("Mach-type: %lu\n", gd->bd->bi_arch_number); >>> + return 0; >>> +} >> please use cpu_info when it's possible to avoid copy & paste >> > Coud you explain a few more? I can't find a function called 'cpu_info'. Found config option CONFIG_DISPLAY_CPUINFO and enabled it, thank you for the hint. Best regards, Daniel Gorsulowski