mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
api: Add a header for api_init()
Put this in its own header instead of using common.h. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4baf23e0be
commit
12d738ae4c
3 changed files with 14 additions and 3 deletions
|
@ -11,6 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <api.h>
|
||||||
/* TODO: can we just include all these headers whether needed or not? */
|
/* TODO: can we just include all these headers whether needed or not? */
|
||||||
#if defined(CONFIG_CMD_BEDBUG)
|
#if defined(CONFIG_CMD_BEDBUG)
|
||||||
#include <bedbug/type.h>
|
#include <bedbug/type.h>
|
||||||
|
|
13
include/api.h
Normal file
13
include/api.h
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2017 Google, Inc
|
||||||
|
* Written by Simon Glass <sjg@chromium.org>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: GPL-2.0+
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __API_H
|
||||||
|
#define __API_H
|
||||||
|
|
||||||
|
void api_init(void);
|
||||||
|
|
||||||
|
#endif
|
|
@ -465,9 +465,6 @@ void jumptable_init(void);
|
||||||
/* common/kallsysm.c */
|
/* common/kallsysm.c */
|
||||||
const char *symbol_lookup(unsigned long addr, unsigned long *caddr);
|
const char *symbol_lookup(unsigned long addr, unsigned long *caddr);
|
||||||
|
|
||||||
/* api/api.c */
|
|
||||||
void api_init (void);
|
|
||||||
|
|
||||||
/* common/memsize.c */
|
/* common/memsize.c */
|
||||||
long get_ram_size (long *, long);
|
long get_ram_size (long *, long);
|
||||||
phys_size_t get_effective_memsize(void);
|
phys_size_t get_effective_memsize(void);
|
||||||
|
|
Loading…
Reference in a new issue