From: Wolfgang Denk Date: Sun, 21 Mar 2010 20:04:57 +0100 Subject: [U-Boot] [PATCH v2 2/7] mpc512x: add multi serial PSC support In-Reply-To: <1268755808-24931-3-git-send-email-agust@denx.de> References: <1268755808-24931-1-git-send-email-agust@denx.de> <1268755808-24931-2-git-send-email-agust@denx.de> <1268755808-24931-3-git-send-email-agust@denx.de> Message-ID: <20100321190457.43C514C022@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anatolij Gustschin, In message <1268755808-24931-3-git-send-email-agust@denx.de> you wrote: > Extend mpc512x serial driver to support multiple PSC ports. > > Supsequent patches for PDM360NG board support make use of this > functionality by defining CONFIG_SERIAL_MULTI in the board config > file. Additionally the used PSC devices are specified by defining > e.g. CONFIG_SYS_PSC1, CONFIG_SYS_PSC4 and CONFIG_SYS_PSC6. > > Support for PSC devices other than 1, 3, 4 and 6 is not added > by this patch because these aren't used currently. In the future > it can be easily added using DECLARE_PSC_SERIAL_FUNCTIONS(N) and > INIT_PSC_SERIAL_STRUCTURE(N) macros in cpu/mpc512x/serial.c. > Additionally you have to add code for registering added > devices in serial_initialise() in common/serial.c. > > Signed-off-by: Anatolij Gustschin > --- > No changes since v1. > > common/serial.c | 23 ++++ > cpu/mpc512x/serial.c | 266 +++++++++++++++++++++++++++++++++++++----- > include/asm-ppc/immap_512x.h | 108 +++++++++--------- > include/serial.h | 8 ++ > 4 files changed, 324 insertions(+), 81 deletions(-) Applied to "u-boot-mpc5xxx" repository. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Being schizophrenic is better than living alone.