]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/pci/pci_sh7780.c
MAINTAINERS, git-mailrc: Update my email address
[karo-tx-uboot.git] / drivers / pci / pci_sh7780.c
index 7555d96060b748e2a6e8004664edf049384d26a1..5c739edad48c37c3bdccd71423a3447c616d0632 100644 (file)
@@ -4,23 +4,7 @@
  * (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  * (C) 2008 Yusuke Goda <goda.yusuke@renesas.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
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -85,11 +69,11 @@ int pci_sh7780_init(struct pci_controller *hose)
        p4_out(SH7780_PCICR_PREFIX, SH7780_PCICR);
        p4_outw(0x0047, SH7780_PCICMD);
 
-       p4_out(0x07F00001, SH7780_PCILSR0);
-       p4_out(0x08000000, SH7780_PCILAR0);
+       p4_out(CONFIG_SH7780_PCI_LSR, SH7780_PCILSR0);
+       p4_out(CONFIG_SH7780_PCI_LAR, SH7780_PCILAR0);
        p4_out(0x00000000, SH7780_PCILSR1);
        p4_out(0, SH7780_PCILAR1);
-       p4_out(0x08000000, SH7780_PCIMBAR0);
+       p4_out(CONFIG_SH7780_PCI_BAR, SH7780_PCIMBAR0);
        p4_out(0x00000000, SH7780_PCIMBAR1);
 
        p4_out(0xFD000000, SH7780_PCIMBR0);