mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-24 10:58:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
Splitting reset assertion (support_card_reset) and deassertion (support_card_init) is not adding much value any more. Handle all the initialization of Support Card in support_card_init(), then remove support_card_reset(). Also, detect_num_flash_banks() can have a static qualifier. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
31 lines
589 B
C
31 lines
589 B
C
/*
|
|
* Copyright (C) 2012-2014 Panasonic Corporation
|
|
* Copyright (C) 2015-2016 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef MICRO_SUPPORT_CARD_H
|
|
#define MICRO_SUPPORT_CARD_H
|
|
|
|
#if defined(CONFIG_MICRO_SUPPORT_CARD)
|
|
void support_card_init(void);
|
|
void support_card_late_init(void);
|
|
void led_puts(const char *s);
|
|
#else
|
|
static inline void support_card_init(void)
|
|
{
|
|
}
|
|
|
|
static inline void support_card_late_init(void)
|
|
{
|
|
}
|
|
|
|
static inline void led_puts(const char *s)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* MICRO_SUPPORT_CARD_H */
|