Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: add AP325RXA mode pin configuration

This patch adds mode pin configuration to ap325rxa.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Magnus Damm and committed by
Paul Mundt
c01641b4 0ec80fdd

+12
+12
arch/sh/boards/board-ap325rxa.c
··· 535 535 } 536 536 device_initcall(ap325rxa_devices_setup); 537 537 538 + /* Return the board specific boot mode pin configuration */ 539 + static int ap325rxa_mode_pins(void) 540 + { 541 + /* MD0=0, MD1=0, MD2=0: Clock Mode 0 542 + * MD3=0: 16-bit Area0 Bus Width 543 + * MD5=1: Little Endian 544 + * TSTMD=1, MD8=1: Test Mode Disabled 545 + */ 546 + return MODE_PIN5 | MODE_PIN8; 547 + } 548 + 538 549 static struct sh_machine_vector mv_ap325rxa __initmv = { 539 550 .mv_name = "AP-325RXA", 551 + .mv_mode_pins = ap325rxa_mode_pins, 540 552 };