]> git.sur5r.net Git - u-boot/blobdiff - board/keymile/common/common.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / board / keymile / common / common.h
index aab706e6c9c0457a28c360428aa046040ca52c79..859d9130a9331e2d4ed089221a9d60ed71e27508 100644 (file)
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2008
  * Heiko Schocher, DENX Software Engineering, hs@denx.de.
- *
- * 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; either version 2 of
- * the License, or (at your option) any later version.
  */
 
 #ifndef __KEYMILE_COMMON_H
@@ -129,23 +125,17 @@ struct bfticu_iomap {
 #endif
 
 int ethernet_present(void);
-int ivm_read_eeprom(void);
+int ivm_read_eeprom(unsigned char *buf, int len);
+int ivm_analyze_eeprom(unsigned char *buf, int len);
 
 int trigger_fpga_config(void);
 int wait_for_fpga_config(void);
 int fpga_reset(void);
 int toggle_eeprom_spi_bus(void);
 
+int get_testpin(void);
+
 int set_km_env(void);
-int fdt_set_node_and_value(void *blob,
-                       char *nodename,
-                       char *regname,
-                       void *var,
-                       int size);
-int fdt_get_node_and_value(void *blob,
-                               char *nodename,
-                               char *propname,
-                               void **var);
 
 #define DELAY_ABORT_SEQ                62  /* @200kHz 9 clocks = 44us, 62us is ok */
 #define DELAY_HALF_PERIOD      (500 / (CONFIG_SYS_I2C_SPEED / 1000))