sc520_spunk.c: In function 'pci_sc520_spunk_fixup_irq':
sc520_spunk.c:117: warning: pointer targets in passing argument 4 of 
'pci_hose_read_config_byte' differ in signedness
sc520_spunk.c: In function 'last_stage_init':
sc520_spunk.c:580: warning: implicit declaration of function 'ds1722_probe'
sc520_spunk.c: In function 'spi_init_f':
sc520_spunk.c:643: warning: implicit declaration of function 'spi_eeprom_probe'
sc520_spunk.c:644: warning: implicit declaration of function 'mw_eeprom_probe'
sc520_spunk.c: In function 'spi_read':
sc520_spunk.c:660: warning: implicit declaration of function 'spi_eeprom_read'
sc520_spunk.c:661: warning: implicit declaration of function 'mw_eeprom_read'
sc520_spunk.c: In function 'spi_write':
sc520_spunk.c:676: warning: implicit declaration of function 'spi_eeprom_write'
sc520_spunk.c:677: warning: implicit declaration of function 'mw_eeprom_write'

adding mw_eeprom header

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[EMAIL PROTECTED]>
---
 board/sc520_spunk/sc520_spunk.c |   17 ++++++++++++++++-
 include/mw_eeprom.h             |   27 +++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletions(-)
 create mode 100644 include/mw_eeprom.h

diff --git a/board/sc520_spunk/sc520_spunk.c b/board/sc520_spunk/sc520_spunk.c
index d119a7d..6f5e636 100644
--- a/board/sc520_spunk/sc520_spunk.c
+++ b/board/sc520_spunk/sc520_spunk.c
@@ -28,6 +28,8 @@
 #include <asm/io.h>
 #include <asm/pci.h>
 #include <asm/ic/sc520.h>
+#include <ds1722.h>
+#include <mw_eeprom.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -111,7 +113,7 @@ static void pci_sc520_spunk_fixup_irq(struct pci_controller 
*hose, pci_dev_t dev
        };
        static int next_irq_index=0;
 
-       char tmp_pin;
+       u8 tmp_pin;
        int pin;
 
        pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_PIN, &tmp_pin);
@@ -636,6 +638,19 @@ void ssi_chip_select(int dev)
        }
 }
 
+void spi_eeprom_probe(int x)
+{
+}
+
+int spi_eeprom_read(int x, int offset, uchar *buffer, int len)
+{
+       return 0;
+}
+
+int spi_eeprom_write(int x, int offset, uchar *buffer, int len)
+{
+       return 0;
+}
 
 void spi_init_f(void)
 {
diff --git a/include/mw_eeprom.h b/include/mw_eeprom.h
new file mode 100644
index 0000000..9ddd266
--- /dev/null
+++ b/include/mw_eeprom.h
@@ -0,0 +1,27 @@
+/*
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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.
+ *
+ * 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., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _MW_EEPROM_H_
+#define _MW_EEPROM_H_
+
+int mw_eeprom_probe(int dev);
+int mw_eeprom_write(int dev, int addr, u8 *buffer, int len);
+int mw_eeprom_read(int dev, int addr, u8 *buffer, int len);
+#endif /* _MW_EEPROM_H_ */
-- 
1.5.5.1


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to