Commit 065d7e55 authored by Alexander Potashev's avatar Alexander Potashev

RT77788. k70-som: Add support for the Emcraft K70-SOM + SOM-BSB platform

 * Add Makefile target `k70-som_config`.
 * Start K70-SOM board support code by cloning off the TWR-K70F120M
board-specific code.
 * Update DDR controller configuration to interact with the LPDDR memory chip.
Update timings for a 120 MHz DDR clock.
 * Remove configuration of pins NFC_D8..NFC_D15, they are not used by 8-bit NAND
flashes.
 * Optionally support 8-bit NAND flashes in the `fsl_nfc.c` driver.
 * Set correct size of RAM (64 MB).
 * Do not configure the LCD clock, because we do not support LCDs with K70-SOM
yet.
 * Update U-Boot prompt, IP address, MAC address, bootargs, hostname.
parent 759776cb
......@@ -3229,6 +3229,9 @@ twr-k70f120m_config : unconfig
lpc-lnx-evb_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexm3 lpc-lnx-evb emcraft lpc178x
k70-som_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexm3 k70-som emcraft kinetis
#########################################################################
## XScale Systems
#########################################################################
......
#
# (C) Copyright 2011
#
# Alexander Potashev, Emcraft Systems, aspotashev@emcraft.com
#
# 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
#
include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
COBJS := board.o
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
$(LIB): $(obj).depend $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
clean:
rm -f $(OBJS)
distclean: clean
rm -f $(LIB) core *.bak $(obj).depend
#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
sinclude $(obj).depend
This diff is collapsed.
......@@ -680,7 +680,10 @@ int board_nand_init(struct nand_chip *chip)
chip->read_buf = fsl_nfc_read_buf;
chip->write_buf = fsl_nfc_write_buf;
chip->verify_buf = fsl_nfc_verify_buf;
chip->options = NAND_NO_AUTOINCR | NAND_USE_FLASH_BBT | NAND_BUSWIDTH_16 | NAND_CACHEPRG;
chip->options = NAND_NO_AUTOINCR | NAND_USE_FLASH_BBT | NAND_CACHEPRG;
#ifndef CONFIG_NAND_FSL_NFC_BUSWIDTH_8
chip->options |= NAND_BUSWIDTH_16;
#endif
chip->select_chip = m54418twr_select_chip;
......@@ -738,7 +741,13 @@ int board_nand_init(struct nand_chip *chip)
nfc_set_field(mtd, NFC_FLASH_CONFIG,
CONFIG_16BIT_MASK,
CONFIG_16BIT_SHIFT, 1);
CONFIG_16BIT_SHIFT,
#ifdef CONFIG_NAND_FSL_NFC_BUSWIDTH_8
0
#else
1
#endif
);
/* SET FAST_FLASH = 1 */
#if 0
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment