aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-ieee-std_logic_unsigned.ads
blob: 7f2eb8e381369d5ccb360d88ef6146454ab0e2aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--  Nodes recognizer for ieee.std_logic_unsigned and ieee.std_logic_signed.
--  Copyright (C) 2019 Tristan Gingold
--
--  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, see <gnu.org/licenses>.

package Vhdl.Ieee.Std_Logic_Unsigned is
   type Sign_Kind is (Pkg_Unsigned, Pkg_Signed);

   --  Extract declarations from PKG .
   procedure Extract_Declarations
     (Pkg : Iir_Package_Declaration; Sign : Sign_Kind);
end Vhdl.Ieee.Std_Logic_Unsigned;
or: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
From 8a30097a899b975709f728666d5ad20c8b832d21 Mon Sep 17 00:00:00 2001
From: Jonas Gorski <jogo@openwrt.org>
Date: Sun, 9 Mar 2014 04:28:14 +0100
Subject: [PATCH 43/44] MIPS: BCM63XX: allow board implementations to force
 flash address

Allow board implementations to force the physmap address.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
---
 arch/mips/bcm63xx/dev-flash.c                         | 19 ++++++++++++++-----
 .../mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h |  2 ++
 2 files changed, 16 insertions(+), 5 deletions(-)

--- a/arch/mips/bcm63xx/dev-flash.c
+++ b/arch/mips/bcm63xx/dev-flash.c
@@ -58,6 +58,12 @@ static struct platform_device mtd_dev =
 	},
 };
 
+void __init bcm63xx_flash_force_phys_base_address(u32 start, u32 end)
+{
+	mtd_resources[0].start = start;
+	mtd_resources[0].end = end;
+}
+
 static int __init bcm63xx_detect_flash_type(void)
 {
 	u32 val;
@@ -172,12 +178,15 @@ int __init bcm63xx_flash_register(void)
 
 	switch (flash_type) {
 	case BCM63XX_FLASH_TYPE_PARALLEL:
-		/* read base address of boot chip select (0) */
-		val = bcm_mpi_readl(MPI_CSBASE_REG(0));
-		val &= MPI_CSBASE_BASE_MASK;
 
-		mtd_resources[0].start = val;
-		mtd_resources[0].end = 0x1FFFFFFF;
+		if (!mtd_resources[0].start) {
+			/* read base address of boot chip select (0) */
+			val = bcm_mpi_readl(MPI_CSBASE_REG(0));
+			val &= MPI_CSBASE_BASE_MASK;
+
+			mtd_resources[0].start = val;
+			mtd_resources[0].end = 0x1FFFFFFF;
+		}
 
 		return platform_device_register(&mtd_dev);
 	case BCM63XX_FLASH_TYPE_SERIAL:
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_flash.h
@@ -10,6 +10,8 @@ enum {
 
 void bcm63xx_flash_detect(void);
 
+void bcm63xx_flash_force_phys_base_address(u32 start, u32 end);
+
 int __init bcm63xx_flash_register(void);
 
 #endif /* __BCM63XX_FLASH_H */