Skip to content

Commit

Permalink
uboot: add glbtn header
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 authored and hanwckf committed Oct 7, 2024
1 parent fefe177 commit 3788274
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
5 changes: 3 additions & 2 deletions uboot-mtk-20220606/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
#include <command.h>
#include <console.h>
#include <env.h>
#ifdef CONFIG_CMD_GL_BTN
#include <glbtn.h>
#endif
#include <init.h>
#include <net.h>
#include <version_string.h>
#include <efi_loader.h>

void led_control(const char *cmd, const char *name, const char *arg);

static void run_preboot_environment_command(void)
{
char *p;
Expand Down
5 changes: 3 additions & 2 deletions uboot-mtk-20220606/failsafe/failsafe.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <malloc.h>
#include <command.h>
#include <env.h>
#ifdef CONFIG_CMD_GL_BTN
#include <glbtn.h>
#endif
#include <net/tcp.h>
#include <net/httpd.h>
#include <u-boot/md5.h>
Expand All @@ -22,8 +25,6 @@
#include "../board/mediatek/common/boot_helper.h"
#include "fs.h"

void led_control(const char *cmd, const char *name, const char *arg);

enum {
FW_TYPE_GPT,
FW_TYPE_BL2,
Expand Down
6 changes: 6 additions & 0 deletions uboot-mtk-20220606/include/glbtn.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _GLBTN_H_
#define _GLBTN_H_

void led_control(const char *cmd, const char *name, const char *arg);

#endif
5 changes: 3 additions & 2 deletions uboot-mtk-20220606/net/httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#include <net/tcp.h>
#include <net/httpd.h>
#include <command.h>

void led_control(const char *cmd, const char *name, const char *arg);
#ifdef CONFIG_CMD_GL_BTN
#include <glbtn.h>
#endif

struct httpd_instance {
struct list_head node;
Expand Down
5 changes: 3 additions & 2 deletions uboot-mtk-20230718-09eda825/board/mediatek/common/failsafe.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
#include <linux/string.h>
#include <asm/global_data.h>
#include <failsafe/fw_type.h>
#ifdef CONFIG_CMD_GL_BTN
#include <glbtn.h>
#endif
#include "upgrade_helper.h"
#include "colored_print.h"

DECLARE_GLOBAL_DATA_PTR;

void led_control(const char *cmd, const char *name, const char *arg);

const char *fw_to_part_name(failsafe_fw_t fw)
{
switch (fw)
Expand Down
5 changes: 3 additions & 2 deletions uboot-mtk-20230718-09eda825/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
#include <command.h>
#include <console.h>
#include <env.h>
#ifdef CONFIG_CMD_GL_BTN
#include <glbtn.h>
#endif
#include <fdtdec.h>
#include <init.h>
#include <net.h>
#include <version_string.h>
#include <efi_loader.h>

void led_control(const char *cmd, const char *name, const char *arg);

static void run_preboot_environment_command(void)
{
char *p;
Expand Down
6 changes: 6 additions & 0 deletions uboot-mtk-20230718-09eda825/include/glbtn.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _GLBTN_H_
#define _GLBTN_H_

void led_control(const char *cmd, const char *name, const char *arg);

#endif

0 comments on commit 3788274

Please sign in to comment.