Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.16-rc4 45 lines 1.1 kB view raw
1/* 2 * arch/ppc/boot/simple/misc-katana.c 3 * 4 * Set up MPSC values to bootwrapper can prompt user. 5 * 6 * Author: Mark A. Greer <source@mvista.com> 7 * 8 * 2004 (c) MontaVista Software, Inc. This file is licensed under 9 * the terms of the GNU General Public License version 2. This program 10 * is licensed "as is" without any warranty of any kind, whether express 11 * or implied. 12 */ 13 14#include <linux/config.h> 15#include <linux/types.h> 16#include <asm/io.h> 17#include <asm/mv64x60_defs.h> 18#include <platforms/katana.h> 19 20extern u32 mv64x60_console_baud; 21extern u32 mv64x60_mpsc_clk_src; 22extern u32 mv64x60_mpsc_clk_freq; 23 24/* Not in the kernel so won't include kernel.h to get its 'min' definition */ 25#ifndef min 26#define min(a,b) (((a) < (b)) ? (a) : (b)) 27#endif 28 29unsigned long mv64360_get_mem_size(void); 30 31void 32mv64x60_board_init(void __iomem *old_base, void __iomem *new_base) 33{ 34 mv64x60_console_baud = KATANA_DEFAULT_BAUD; 35 mv64x60_mpsc_clk_src = KATANA_MPSC_CLK_SRC; 36 mv64x60_mpsc_clk_freq = 37 min(katana_bus_freq((void __iomem *)KATANA_CPLD_BASE), 38 MV64x60_TCLK_FREQ_MAX); 39} 40 41unsigned long 42get_mem_size(void) 43{ 44 return mv64360_get_mem_size(); 45}