From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Fri, 28 Jan 2011 08:49:18 -0600 Subject: [U-Boot] [PATCH 5/8 v3] P1021: add P1021MDS board support In-Reply-To: <1296190690-21146-3-git-send-email-Haiying.Wang@freescale.com> References: <1296190690-21146-1-git-send-email-Haiying.Wang@freescale.com> <1296190690-21146-3-git-send-email-Haiying.Wang@freescale.com> Message-ID: <482C6AC5-689E-4A23-BA8D-6A04D221A172@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > > diff --git a/board/freescale/p1021mds/law.c b/board/freescale/p1021mds/law.c > new file mode 100644 > index 0000000..d0be19e > --- /dev/null > +++ b/board/freescale/p1021mds/law.c > @@ -0,0 +1,38 @@ > +/* > + * Copyright (C) 2010 - 2011 Freescale Semiconductor, Inc. > + * > + * 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 > +#include > +#include > + > +struct law_entry law_table[] = { > +#ifndef CONFIG_IN_TPL > + SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1), > + SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1), > + SET_LAW(CONFIG_SYS_PCIE2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_2), > + SET_LAW(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2), PCIe LAWs are now set by common code, you can remove these. - k