mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 13:26:41 +07:00
d5ce2b6592
zoom3 and 3630-sdp having the x16 nand device. This patch configure gpmc as x16 and select the currect function in driver for polled mode (without prefetch enable) transfer. Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
31 lines
813 B
C
31 lines
813 B
C
/*
|
|
* board-sdp.h
|
|
*
|
|
* Information structures for SDP-specific board config data
|
|
*
|
|
* Copyright (C) 2009 Nokia Corporation
|
|
* Copyright (C) 2009 Texas Instruments
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/partitions.h>
|
|
#include <plat/gpmc.h>
|
|
|
|
#define PDC_NOR 1
|
|
#define PDC_NAND 2
|
|
#define PDC_ONENAND 3
|
|
#define DBG_MPDB 4
|
|
|
|
struct flash_partitions {
|
|
struct mtd_partition *parts;
|
|
int nr_parts;
|
|
};
|
|
|
|
extern void board_flash_init(struct flash_partitions [],
|
|
char chip_sel[][GPMC_CS_NUM], int nand_type);
|
|
extern void board_nand_init(struct mtd_partition *nand_parts,
|
|
u8 nr_parts, u8 cs, int nand_type);
|