diff --git a/src/mainboard/google/rush_ryu/boardid.h b/src/include/boardid.h similarity index 85% rename from src/mainboard/google/rush_ryu/boardid.h rename to src/include/boardid.h index aa2ea5f903..d1c6ad9756 100644 --- a/src/mainboard/google/rush_ryu/boardid.h +++ b/src/include/boardid.h @@ -17,11 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ -#define __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ +#ifndef __INCLUDE_BOARDID_H__ +#define __INCLUDE_BOARDID_H__ #include uint8_t board_id(void); -#endif /* __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ */ +#endif /* __INCLUDE_BOARDID_H__ */ diff --git a/src/mainboard/google/nyan/boardid.c b/src/mainboard/google/nyan/boardid.c index 18d920b6f5..a5ec61fa64 100644 --- a/src/mainboard/google/nyan/boardid.c +++ b/src/mainboard/google/nyan/boardid.c @@ -20,7 +20,7 @@ #include #include -#include "boardid.h" +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/nyan/boardid.h b/src/mainboard/google/nyan/boardid.h deleted file mode 100644 index b65f54337e..0000000000 --- a/src/mainboard/google/nyan/boardid.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2013 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __MAINBOARD_GOOGLE_NYAN_BOARDID_H__ -#define __MAINBOARD_GOOGLE_NYAN_BOARDID_H__ - -#include - -uint8_t board_id(void); - -#endif /* __MAINBOARD_GOOGLE_NYAN_BOARDID_H__ */ diff --git a/src/mainboard/google/nyan/pmic.c b/src/mainboard/google/nyan/pmic.c index dc5f7447a6..2a65719fab 100644 --- a/src/mainboard/google/nyan/pmic.c +++ b/src/mainboard/google/nyan/pmic.c @@ -24,7 +24,7 @@ #include #include -#include "boardid.h" +#include #include "pmic.h" #include "reset.h" diff --git a/src/mainboard/google/nyan_big/boardid.c b/src/mainboard/google/nyan_big/boardid.c index 23b1c6adff..c7bd2e6a1d 100644 --- a/src/mainboard/google/nyan_big/boardid.c +++ b/src/mainboard/google/nyan_big/boardid.c @@ -21,7 +21,7 @@ #include #include -#include "boardid.h" +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/nyan_big/boardid.h b/src/mainboard/google/nyan_big/boardid.h deleted file mode 100644 index 8b200326aa..0000000000 --- a/src/mainboard/google/nyan_big/boardid.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2014 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __MAINBOARD_GOOGLE_NYAN_BIG_BOARDID_H__ -#define __MAINBOARD_GOOGLE_NYAN_BIG_BOARDID_H__ - -#include - -uint8_t board_id(void); - -#endif /* __MAINBOARD_GOOGLE_NYAN_BIG_BOARDID_H__ */ diff --git a/src/mainboard/google/nyan_big/pmic.c b/src/mainboard/google/nyan_big/pmic.c index 4d52f7072c..ed855f1e75 100644 --- a/src/mainboard/google/nyan_big/pmic.c +++ b/src/mainboard/google/nyan_big/pmic.c @@ -24,7 +24,7 @@ #include #include -#include "boardid.h" +#include #include "pmic.h" #include "reset.h" diff --git a/src/mainboard/google/nyan_blaze/boardid.c b/src/mainboard/google/nyan_blaze/boardid.c index 23b1c6adff..c7bd2e6a1d 100644 --- a/src/mainboard/google/nyan_blaze/boardid.c +++ b/src/mainboard/google/nyan_blaze/boardid.c @@ -21,7 +21,7 @@ #include #include -#include "boardid.h" +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/nyan_blaze/boardid.h b/src/mainboard/google/nyan_blaze/boardid.h deleted file mode 100644 index 0a3fe8016a..0000000000 --- a/src/mainboard/google/nyan_blaze/boardid.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2014 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __MAINBOARD_GOOGLE_NYAN_BLAZE_BOARDID_H__ -#define __MAINBOARD_GOOGLE_NYAN_BLAZE_BOARDID_H__ - -#include - -uint8_t board_id(void); - -#endif /* __MAINBOARD_GOOGLE_NYAN_BLAZE_BOARDID_H__ */ diff --git a/src/mainboard/google/nyan_blaze/pmic.c b/src/mainboard/google/nyan_blaze/pmic.c index 4d52f7072c..ed855f1e75 100644 --- a/src/mainboard/google/nyan_blaze/pmic.c +++ b/src/mainboard/google/nyan_blaze/pmic.c @@ -24,7 +24,7 @@ #include #include -#include "boardid.h" +#include #include "pmic.h" #include "reset.h" diff --git a/src/mainboard/google/rush/boardid.c b/src/mainboard/google/rush/boardid.c index 76bd4d9a84..67e55ba3fb 100644 --- a/src/mainboard/google/rush/boardid.c +++ b/src/mainboard/google/rush/boardid.c @@ -20,7 +20,7 @@ #include #include -#include "boardid.h" +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/rush/boardid.h b/src/mainboard/google/rush/boardid.h deleted file mode 100644 index aa2ea5f903..0000000000 --- a/src/mainboard/google/rush/boardid.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2014 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ -#define __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ - -#include - -uint8_t board_id(void); - -#endif /* __MAINBOARD_GOOGLE_RUSH_BOARDID_H__ */ diff --git a/src/mainboard/google/rush/pmic.c b/src/mainboard/google/rush/pmic.c index 7aa7dc93d4..85de2003e7 100644 --- a/src/mainboard/google/rush/pmic.c +++ b/src/mainboard/google/rush/pmic.c @@ -24,7 +24,7 @@ #include #include -#include "boardid.h" +#include #include "pmic.h" #include "reset.h" diff --git a/src/mainboard/google/rush_ryu/boardid.c b/src/mainboard/google/rush_ryu/boardid.c index 76bd4d9a84..67e55ba3fb 100644 --- a/src/mainboard/google/rush_ryu/boardid.c +++ b/src/mainboard/google/rush_ryu/boardid.c @@ -20,7 +20,7 @@ #include #include -#include "boardid.h" +#include uint8_t board_id(void) {