18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Definitions for TX4937/TX4938 SPI
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2000-2001 Toshiba Corporation
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
78c2ecf20Sopenharmony_ci * terms of the GNU General Public License version 2. This program is
88c2ecf20Sopenharmony_ci * licensed "as is" without any warranty of any kind, whether express
98c2ecf20Sopenharmony_ci * or implied.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
128c2ecf20Sopenharmony_ci */
138c2ecf20Sopenharmony_ci#ifndef __ASM_TXX9_SPI_H
148c2ecf20Sopenharmony_ci#define __ASM_TXX9_SPI_H
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#include <linux/errno.h>
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#ifdef CONFIG_SPI
198c2ecf20Sopenharmony_ciint spi_eeprom_register(int busid, int chipid, int size);
208c2ecf20Sopenharmony_ciint spi_eeprom_read(int busid, int chipid,
218c2ecf20Sopenharmony_ci		    int address, unsigned char *buf, int len);
228c2ecf20Sopenharmony_ci#else
238c2ecf20Sopenharmony_cistatic inline int spi_eeprom_register(int busid, int chipid, int size)
248c2ecf20Sopenharmony_ci{
258c2ecf20Sopenharmony_ci	return -ENODEV;
268c2ecf20Sopenharmony_ci}
278c2ecf20Sopenharmony_cistatic inline int spi_eeprom_read(int busid, int chipid,
288c2ecf20Sopenharmony_ci				  int address, unsigned char *buf, int len)
298c2ecf20Sopenharmony_ci{
308c2ecf20Sopenharmony_ci	return -ENODEV;
318c2ecf20Sopenharmony_ci}
328c2ecf20Sopenharmony_ci#endif
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif /* __ASM_TXX9_SPI_H */
35