summaryrefslogtreecommitdiff
path: root/src/mainboard/google/panther/lan.c
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2014-07-13 18:51:28 -0500
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-07-18 08:17:56 +0200
commitae141dd91b7960dd6ed87d57ad4dad0e06eb709e (patch)
tree31d36b4f776cbb0fedc2162813f7c03e772ea249 /src/mainboard/google/panther/lan.c
parent1f9653a1bc737587deed507cd173595b180aad8f (diff)
downloadcoreboot-ae141dd91b7960dd6ed87d57ad4dad0e06eb709e.tar.xz
google/panther: general cleanup, file organization (non-functional)
acpi_tables.c: consolidate/organize headers chromeos.c: consolidate/organize headers; move header, #defines outside of #ifdef fadt.c: organize headers gpio.h: rename include guard; add comment to trailing #endif had_verb.h: add include guard; replace manual array size calculation with std header macro lan.c: remove conditional header inclusion; organize headers; remove pre-processor directive indentations mainboard.c: remove conditional header inclusion; organize headers; replace spaced indentations with tab(s); add comment to trailing #endif onboard.h: move fn prototype after #defines; add comment to trailing #endif romstage.c: consolidate/organize headers smihandler.c: organize headers; remove commented-out/dead code; add comment to trailing #endif thermal.h: add comment to trailing #endif Change-Id: Iadafdd1092108c3f52435831fa0103f2457066f1 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: http://review.coreboot.org/6270 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard/google/panther/lan.c')
-rw-r--r--src/mainboard/google/panther/lan.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mainboard/google/panther/lan.c b/src/mainboard/google/panther/lan.c
index 9e941d58e0..2d7eed05fe 100644
--- a/src/mainboard/google/panther/lan.c
+++ b/src/mainboard/google/panther/lan.c
@@ -17,18 +17,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <types.h>
+#include <cbfs.h>
#include <string.h>
+#include <types.h>
#include <arch/io.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <southbridge/intel/bd82x6x/pch.h>
-#if CONFIG_CHROMEOS
#include <vendorcode/google/chromeos/fmap.h>
-#else
-#include <cbfs.h>
-#endif
#include "onboard.h"
static unsigned int search(char *p, char *a, unsigned int lengthp,
@@ -142,11 +139,11 @@ void lan_init(void)
u16 io_base = 0;
struct device *ethernet_dev = NULL;
- #if CONFIG_CHROMEOS
+#if CONFIG_CHROMEOS
char **vpd_region_ptr = NULL;
search_length = find_fmap_entry("RO_VPD", (void **)vpd_region_ptr);
search_address = (unsigned long)(*vpd_region_ptr);
- #else
+#else
void *vpd_file = cbfs_get_file_content(CBFS_DEFAULT_MEDIA, "vpd.bin",
CBFS_TYPE_RAW, &search_length);
if (vpd_file) {
@@ -155,7 +152,7 @@ void lan_init(void)
search_length = -1;
search_address = 0;
}
- #endif
+#endif
/* Get NIC's IO base address */
ethernet_dev = dev_find_device(PANTHER_NIC_VENDOR_ID,