setup.c (201e91091b1d47047f55580b5474e1239f4d17aa) | setup.c (6d80f20c5328ad24dde0fddb980f60734a17b911) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * arch/sh/kernel/setup.c 4 * 5 * This file handles the architecture-dependent parts of initialization 6 * 7 * Copyright (C) 1999 Niibe Yutaka 8 * Copyright (C) 2002 - 2010 Paul Mundt --- 30 unchanged lines hidden (view full) --- 39#include <asm/sections.h> 40#include <asm/irq.h> 41#include <asm/setup.h> 42#include <asm/clock.h> 43#include <asm/smp.h> 44#include <asm/mmu_context.h> 45#include <asm/mmzone.h> 46#include <asm/sparsemem.h> | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * arch/sh/kernel/setup.c 4 * 5 * This file handles the architecture-dependent parts of initialization 6 * 7 * Copyright (C) 1999 Niibe Yutaka 8 * Copyright (C) 2002 - 2010 Paul Mundt --- 30 unchanged lines hidden (view full) --- 39#include <asm/sections.h> 40#include <asm/irq.h> 41#include <asm/setup.h> 42#include <asm/clock.h> 43#include <asm/smp.h> 44#include <asm/mmu_context.h> 45#include <asm/mmzone.h> 46#include <asm/sparsemem.h> |
47#include <asm/platform_early.h> | |
48 49/* 50 * Initialize loops_per_jiffy as 10000000 (1000MIPS). 51 * This value will be used at the very early stage of serial setup. 52 * The bigger value means no problem. 53 */ 54struct sh_cpuinfo cpu_data[NR_CPUS] __read_mostly = { 55 [0] = { --- 268 unchanged lines hidden (view full) --- 324 325 parse_early_param(); 326 327 plat_early_device_setup(); 328 329 sh_mv_setup(); 330 331 /* Let earlyprintk output early console messages */ | 47 48/* 49 * Initialize loops_per_jiffy as 10000000 (1000MIPS). 50 * This value will be used at the very early stage of serial setup. 51 * The bigger value means no problem. 52 */ 53struct sh_cpuinfo cpu_data[NR_CPUS] __read_mostly = { 54 [0] = { --- 268 unchanged lines hidden (view full) --- 323 324 parse_early_param(); 325 326 plat_early_device_setup(); 327 328 sh_mv_setup(); 329 330 /* Let earlyprintk output early console messages */ |
332 sh_early_platform_driver_probe("earlyprintk", 1, 1); | 331 early_platform_driver_probe("earlyprintk", 1, 1); |
333 334#ifdef CONFIG_OF_FLATTREE 335#ifdef CONFIG_USE_BUILTIN_DTB 336 unflatten_and_copy_device_tree(); 337#else 338 unflatten_device_tree(); 339#endif 340#endif --- 9 unchanged lines hidden (view full) --- 350 sh_mv.mv_setup(cmdline_p); 351 352 plat_smp_setup(); 353} 354 355/* processor boot mode configuration */ 356int generic_mode_pins(void) 357{ | 332 333#ifdef CONFIG_OF_FLATTREE 334#ifdef CONFIG_USE_BUILTIN_DTB 335 unflatten_and_copy_device_tree(); 336#else 337 unflatten_device_tree(); 338#endif 339#endif --- 9 unchanged lines hidden (view full) --- 349 sh_mv.mv_setup(cmdline_p); 350 351 plat_smp_setup(); 352} 353 354/* processor boot mode configuration */ 355int generic_mode_pins(void) 356{ |
358 pr_warning("generic_mode_pins(): missing mode pin configuration\n"); | 357 pr_warn("generic_mode_pins(): missing mode pin configuration\n"); |
359 return 0; 360} 361 362int test_mode_pin(int pin) 363{ 364 return sh_mv.mv_mode_pins() & pin; 365} | 358 return 0; 359} 360 361int test_mode_pin(int pin) 362{ 363 return sh_mv.mv_mode_pins() & pin; 364} |