mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 16:38:53 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
The directory arch/${ARCH}/cpu/${CPU} does not exist in avr32, blackfin, microblaze, nios2, openrisc, sandbox, x86. These architectures have only one CPU type. Defining CPU should not be required for such architectures. This commit allows cpu field (= the 3rd field of boards.cfg) to be kept blank. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Andreas Bießmann <andreas.devel@googlemail.com> Cc: Simon Glass <sjg@chromium.org> Cc: Sonic Zhang <sonic.zhang@analog.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
24 lines
364 B
C
24 lines
364 B
C
/*
|
|
* Copyright (c) 2013 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/sound.h>
|
|
#include <asm/sdl.h>
|
|
|
|
int sound_play(uint32_t msec, uint32_t frequency)
|
|
{
|
|
sandbox_sdl_sound_start(frequency);
|
|
mdelay(msec);
|
|
sandbox_sdl_sound_stop();
|
|
|
|
return 0;
|
|
}
|
|
|
|
int sound_init(const void *blob)
|
|
{
|
|
return sandbox_sdl_sound_init();
|
|
}
|