mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
sf: spi_flash cleanups
More cleanups on spi_flash side: - Removed unneeded comments. - Rearranged macros in proper location. - Rearranged func declerations - Renamed few function names. - Added License headers. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
This commit is contained in:
parent
30b0ca6318
commit
a5e8199a13
5 changed files with 85 additions and 74 deletions
|
@ -1,7 +1,8 @@
|
|||
/*
|
||||
* Interface to SPI flash
|
||||
* Common SPI flash Interface
|
||||
*
|
||||
* Copyright (C) 2008 Atmel Corporation
|
||||
* Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc.
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
|
@ -10,6 +11,7 @@
|
|||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef _SPI_FLASH_H_
|
||||
#define _SPI_FLASH_H_
|
||||
|
||||
|
@ -17,18 +19,6 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/compiler.h>
|
||||
|
||||
/* SECT flags */
|
||||
#define SECT_4K (1 << 1)
|
||||
#define SECT_32K (1 << 2)
|
||||
#define E_FSR (1 << 3)
|
||||
|
||||
/* SST specific macros */
|
||||
#ifdef CONFIG_SPI_FLASH_SST
|
||||
# define SST_WP 0x01 /* Supports AAI word program */
|
||||
# define CMD_SST_BP 0x02 /* Byte Program */
|
||||
# define CMD_SST_AAI_WP 0xAD /* Auto Address Incr Word Program */
|
||||
#endif
|
||||
|
||||
/**
|
||||
* struct spi_flash - SPI flash structure
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue