blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
/*
|
2008-05-07 03:41:26 +00:00
|
|
|
* Copyright 2004-2008 Analog Devices Inc.
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
*
|
2008-05-07 03:41:26 +00:00
|
|
|
* Licensed under the GPL-2 or later.
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <asm/blackfin.h>
|
2008-08-27 02:51:02 +00:00
|
|
|
#include <mach/irq.h>
|
2008-07-19 08:57:32 +00:00
|
|
|
#include <asm/dpmc.h>
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
.section .l1.text
|
|
|
|
|
|
|
|
ENTRY(_sleep_mode)
|
2011-06-27 19:43:56 +00:00
|
|
|
[--SP] = (R7:4, P5:3);
|
|
|
|
[--SP] = RETS;
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
call _set_sic_iwr;
|
|
|
|
|
|
|
|
P0.H = hi(PLL_CTL);
|
|
|
|
P0.L = lo(PLL_CTL);
|
|
|
|
R1 = W[P0](z);
|
|
|
|
BITSET (R1, 3);
|
|
|
|
W[P0] = R1.L;
|
|
|
|
|
|
|
|
CLI R2;
|
|
|
|
SSYNC;
|
|
|
|
IDLE;
|
|
|
|
STI R2;
|
|
|
|
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
|
|
|
R0 = IWR_ENABLE(0);
|
2008-02-08 20:12:37 +00:00
|
|
|
R1 = IWR_DISABLE_ALL;
|
|
|
|
R2 = IWR_DISABLE_ALL;
|
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
call _set_sic_iwr;
|
|
|
|
|
|
|
|
P0.H = hi(PLL_CTL);
|
|
|
|
P0.L = lo(PLL_CTL);
|
|
|
|
R7 = w[p0](z);
|
|
|
|
BITCLR (R7, 3);
|
|
|
|
BITCLR (R7, 5);
|
|
|
|
w[p0] = R7.L;
|
|
|
|
IDLE;
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
|
|
|
RETS = [SP++];
|
2011-06-27 19:43:56 +00:00
|
|
|
(R7:4, P5:3) = [SP++];
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_sleep_mode)
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/*
|
|
|
|
* This func never returns as it puts the part into hibernate, and
|
|
|
|
* is only called from do_hibernate, so we don't bother saving or
|
|
|
|
* restoring any of the normal C runtime state. When we wake up,
|
|
|
|
* the entry point will be in do_hibernate and not here.
|
|
|
|
*
|
|
|
|
* We accept just one argument -- the value to write to VR_CTL.
|
|
|
|
*/
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
ENTRY(_hibernate_mode)
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/* Save/setup the regs we need early for minor pipeline optimization */
|
|
|
|
R4 = R0;
|
|
|
|
P3.H = hi(VR_CTL);
|
|
|
|
P3.L = lo(VR_CTL);
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/* Disable all wakeup sources */
|
2008-07-19 08:57:32 +00:00
|
|
|
R0 = IWR_DISABLE_ALL;
|
|
|
|
R1 = IWR_DISABLE_ALL;
|
|
|
|
R2 = IWR_DISABLE_ALL;
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
call _set_sic_iwr;
|
2008-07-19 08:57:32 +00:00
|
|
|
call _set_dram_srfs;
|
|
|
|
SSYNC;
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/* Finally, we climb into our cave to hibernate */
|
|
|
|
W[P3] = R4.L;
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
CLI R2;
|
|
|
|
IDLE;
|
2008-07-19 08:57:32 +00:00
|
|
|
.Lforever:
|
|
|
|
jump .Lforever;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_hibernate_mode)
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
ENTRY(_sleep_deeper)
|
2011-06-27 19:43:56 +00:00
|
|
|
[--SP] = (R7:4, P5:3);
|
|
|
|
[--SP] = RETS;
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
CLI R4;
|
|
|
|
|
|
|
|
P3 = R0;
|
2008-02-08 20:12:37 +00:00
|
|
|
P4 = R1;
|
|
|
|
P5 = R2;
|
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
R0 = IWR_ENABLE(0);
|
2008-02-08 20:12:37 +00:00
|
|
|
R1 = IWR_DISABLE_ALL;
|
|
|
|
R2 = IWR_DISABLE_ALL;
|
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
call _set_sic_iwr;
|
2008-01-11 09:21:41 +00:00
|
|
|
call _set_dram_srfs; /* Set SDRAM Self Refresh */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
P0.H = hi(PLL_DIV);
|
|
|
|
P0.L = lo(PLL_DIV);
|
|
|
|
R6 = W[P0](z);
|
|
|
|
R0.L = 0xF;
|
2008-01-11 09:21:41 +00:00
|
|
|
W[P0] = R0.l; /* Set Max VCO to SCLK divider */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
P0.H = hi(PLL_CTL);
|
|
|
|
P0.L = lo(PLL_CTL);
|
|
|
|
R5 = W[P0](z);
|
2007-08-03 10:07:17 +00:00
|
|
|
R0.L = (CONFIG_MIN_VCO_HZ/CONFIG_CLKIN_HZ) << 9;
|
2008-01-11 09:21:41 +00:00
|
|
|
W[P0] = R0.l; /* Set Min CLKIN to VCO multiplier */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
SSYNC;
|
|
|
|
IDLE;
|
|
|
|
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
|
|
|
P0.H = hi(VR_CTL);
|
|
|
|
P0.L = lo(VR_CTL);
|
|
|
|
R7 = W[P0](z);
|
|
|
|
R1 = 0x6;
|
|
|
|
R1 <<= 16;
|
|
|
|
R2 = 0x0404(Z);
|
|
|
|
R1 = R1|R2;
|
|
|
|
|
|
|
|
R2 = DEPOSIT(R7, R1);
|
2008-01-11 09:21:41 +00:00
|
|
|
W[P0] = R2; /* Set Min Core Voltage */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
SSYNC;
|
|
|
|
IDLE;
|
|
|
|
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
2008-01-11 09:21:41 +00:00
|
|
|
R0 = P3;
|
2008-02-08 20:12:37 +00:00
|
|
|
R1 = P4;
|
|
|
|
R3 = P5;
|
2008-01-11 09:21:41 +00:00
|
|
|
call _set_sic_iwr; /* Set Awake from IDLE */
|
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
P0.H = hi(PLL_CTL);
|
|
|
|
P0.L = lo(PLL_CTL);
|
|
|
|
R0 = W[P0](z);
|
|
|
|
BITSET (R0, 3);
|
2008-01-11 09:21:41 +00:00
|
|
|
W[P0] = R0.L; /* Turn CCLK OFF */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
SSYNC;
|
|
|
|
IDLE;
|
|
|
|
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
|
|
|
R0 = IWR_ENABLE(0);
|
2008-02-08 20:12:37 +00:00
|
|
|
R1 = IWR_DISABLE_ALL;
|
|
|
|
R2 = IWR_DISABLE_ALL;
|
|
|
|
|
2008-01-11 09:21:41 +00:00
|
|
|
call _set_sic_iwr; /* Set Awake from IDLE PLL */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
P0.H = hi(VR_CTL);
|
|
|
|
P0.L = lo(VR_CTL);
|
|
|
|
W[P0]= R7;
|
|
|
|
|
|
|
|
SSYNC;
|
|
|
|
IDLE;
|
|
|
|
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
|
|
|
P0.H = hi(PLL_DIV);
|
|
|
|
P0.L = lo(PLL_DIV);
|
2008-01-11 09:21:41 +00:00
|
|
|
W[P0]= R6; /* Restore CCLK and SCLK divider */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
P0.H = hi(PLL_CTL);
|
|
|
|
P0.L = lo(PLL_CTL);
|
2008-01-11 09:21:41 +00:00
|
|
|
w[p0] = R5; /* Restore VCO multiplier */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
IDLE;
|
|
|
|
call _test_pll_locked;
|
|
|
|
|
2008-01-11 09:21:41 +00:00
|
|
|
call _unset_dram_srfs; /* SDRAM Self Refresh Off */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
STI R4;
|
|
|
|
|
|
|
|
RETS = [SP++];
|
2011-06-27 19:43:56 +00:00
|
|
|
(R7:4, P5:3) = [SP++];
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_sleep_deeper)
|
2008-07-19 08:57:32 +00:00
|
|
|
|
2007-12-23 15:02:13 +00:00
|
|
|
ENTRY(_set_dram_srfs)
|
|
|
|
/* set the dram to self refresh mode */
|
2008-07-19 08:57:32 +00:00
|
|
|
SSYNC;
|
|
|
|
#if defined(EBIU_RSTCTL) /* DDR */
|
2007-12-23 15:02:13 +00:00
|
|
|
P0.H = hi(EBIU_RSTCTL);
|
|
|
|
P0.L = lo(EBIU_RSTCTL);
|
|
|
|
R2 = [P0];
|
2008-07-19 08:57:32 +00:00
|
|
|
BITSET(R2, 3); /* SRREQ enter self-refresh mode */
|
|
|
|
[P0] = R2;
|
|
|
|
SSYNC;
|
|
|
|
1:
|
|
|
|
R2 = [P0];
|
|
|
|
CC = BITTST(R2, 4);
|
|
|
|
if !CC JUMP 1b;
|
|
|
|
#else /* SDRAM */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
P0.L = lo(EBIU_SDGCTL);
|
2008-07-19 08:57:32 +00:00
|
|
|
P0.H = hi(EBIU_SDGCTL);
|
2011-06-27 19:46:40 +00:00
|
|
|
P1.L = lo(EBIU_SDSTAT);
|
|
|
|
P1.H = hi(EBIU_SDSTAT);
|
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
R2 = [P0];
|
2008-07-19 08:57:32 +00:00
|
|
|
BITSET(R2, 24); /* SRFS enter self-refresh mode */
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
[P0] = R2;
|
2008-07-19 08:57:32 +00:00
|
|
|
SSYNC;
|
|
|
|
|
|
|
|
1:
|
2011-06-27 19:46:40 +00:00
|
|
|
R2 = w[P1];
|
2008-07-19 08:57:32 +00:00
|
|
|
SSYNC;
|
|
|
|
cc = BITTST(R2, 1); /* SDSRA poll self-refresh status */
|
|
|
|
if !cc jump 1b;
|
|
|
|
|
2007-12-23 15:02:13 +00:00
|
|
|
R2 = [P0];
|
2008-07-19 08:57:32 +00:00
|
|
|
BITCLR(R2, 0); /* SCTLE disable CLKOUT */
|
|
|
|
[P0] = R2;
|
2007-12-23 15:02:13 +00:00
|
|
|
#endif
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_set_dram_srfs)
|
2008-07-19 08:57:32 +00:00
|
|
|
|
2007-12-23 15:02:13 +00:00
|
|
|
ENTRY(_unset_dram_srfs)
|
|
|
|
/* set the dram out of self refresh mode */
|
2011-06-27 19:46:40 +00:00
|
|
|
|
2008-07-19 08:57:32 +00:00
|
|
|
#if defined(EBIU_RSTCTL) /* DDR */
|
2007-12-23 15:02:13 +00:00
|
|
|
P0.H = hi(EBIU_RSTCTL);
|
|
|
|
P0.L = lo(EBIU_RSTCTL);
|
|
|
|
R2 = [P0];
|
2008-07-19 08:57:32 +00:00
|
|
|
BITCLR(R2, 3); /* clear SRREQ bit */
|
|
|
|
[P0] = R2;
|
|
|
|
#elif defined(EBIU_SDGCTL) /* SDRAM */
|
2011-06-27 19:46:40 +00:00
|
|
|
/* release CLKOUT from self-refresh */
|
|
|
|
P0.L = lo(EBIU_SDGCTL);
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
P0.H = hi(EBIU_SDGCTL);
|
2011-06-27 19:46:40 +00:00
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
R2 = [P0];
|
2008-07-19 08:57:32 +00:00
|
|
|
BITSET(R2, 0); /* SCTLE enable CLKOUT */
|
|
|
|
[P0] = R2
|
|
|
|
SSYNC;
|
|
|
|
|
2011-06-27 19:46:40 +00:00
|
|
|
/* release SDRAM from self-refresh */
|
2008-07-19 08:57:32 +00:00
|
|
|
R2 = [P0];
|
|
|
|
BITCLR(R2, 24); /* clear SRFS bit */
|
|
|
|
[P0] = R2
|
2007-12-23 15:02:13 +00:00
|
|
|
#endif
|
2011-06-27 19:46:40 +00:00
|
|
|
|
2008-07-19 08:57:32 +00:00
|
|
|
SSYNC;
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_unset_dram_srfs)
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
ENTRY(_set_sic_iwr)
|
2011-06-26 17:55:24 +00:00
|
|
|
#ifdef SIC_IWR0
|
2011-06-26 18:07:17 +00:00
|
|
|
P0.H = hi(SYSMMR_BASE);
|
|
|
|
P0.L = lo(SYSMMR_BASE);
|
|
|
|
[P0 + (SIC_IWR0 - SYSMMR_BASE)] = R0;
|
|
|
|
[P0 + (SIC_IWR1 - SYSMMR_BASE)] = R1;
|
2011-06-26 17:55:24 +00:00
|
|
|
# ifdef SIC_IWR2
|
2011-06-26 18:07:17 +00:00
|
|
|
[P0 + (SIC_IWR2 - SYSMMR_BASE)] = R2;
|
2011-06-26 17:55:24 +00:00
|
|
|
# endif
|
2007-12-23 15:02:13 +00:00
|
|
|
#else
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
P0.H = hi(SIC_IWR);
|
|
|
|
P0.L = lo(SIC_IWR);
|
|
|
|
[P0] = R0;
|
2011-06-26 18:07:17 +00:00
|
|
|
#endif
|
2008-02-08 20:12:37 +00:00
|
|
|
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
SSYNC;
|
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_set_sic_iwr)
|
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-06 21:50:22 +00:00
|
|
|
|
|
|
|
ENTRY(_test_pll_locked)
|
|
|
|
P0.H = hi(PLL_STAT);
|
|
|
|
P0.L = lo(PLL_STAT);
|
|
|
|
1:
|
|
|
|
R0 = W[P0] (Z);
|
|
|
|
CC = BITTST(R0,5);
|
|
|
|
IF !CC JUMP 1b;
|
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_test_pll_locked)
|
2008-07-19 08:57:32 +00:00
|
|
|
|
|
|
|
.section .text
|
|
|
|
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
#define PM_REG0 R7
|
|
|
|
#define PM_REG1 R6
|
|
|
|
#define PM_REG2 R5
|
|
|
|
#define PM_REG3 R4
|
|
|
|
#define PM_REG4 R3
|
|
|
|
#define PM_REG5 R2
|
|
|
|
#define PM_REG6 R1
|
|
|
|
#define PM_REG7 R0
|
|
|
|
#define PM_REG8 P5
|
|
|
|
#define PM_REG9 P4
|
|
|
|
#define PM_REG10 P3
|
|
|
|
#define PM_REG11 P2
|
|
|
|
#define PM_REG12 P1
|
|
|
|
#define PM_REG13 P0
|
|
|
|
|
|
|
|
#define PM_REGSET0 R7:7
|
|
|
|
#define PM_REGSET1 R7:6
|
|
|
|
#define PM_REGSET2 R7:5
|
|
|
|
#define PM_REGSET3 R7:4
|
|
|
|
#define PM_REGSET4 R7:3
|
|
|
|
#define PM_REGSET5 R7:2
|
|
|
|
#define PM_REGSET6 R7:1
|
|
|
|
#define PM_REGSET7 R7:0
|
|
|
|
#define PM_REGSET8 R7:0, P5:5
|
|
|
|
#define PM_REGSET9 R7:0, P5:4
|
|
|
|
#define PM_REGSET10 R7:0, P5:3
|
|
|
|
#define PM_REGSET11 R7:0, P5:2
|
|
|
|
#define PM_REGSET12 R7:0, P5:1
|
|
|
|
#define PM_REGSET13 R7:0, P5:0
|
|
|
|
|
|
|
|
#define _PM_PUSH(n, x, w, base) PM_REG##n = w[FP + ((x) - (base))];
|
|
|
|
#define _PM_POP(n, x, w, base) w[FP + ((x) - (base))] = PM_REG##n;
|
|
|
|
#define PM_PUSH_SYNC(n) [--sp] = (PM_REGSET##n);
|
|
|
|
#define PM_POP_SYNC(n) (PM_REGSET##n) = [sp++];
|
|
|
|
#define PM_PUSH(n, x) PM_REG##n = [FP++];
|
|
|
|
#define PM_POP(n, x) [FP--] = PM_REG##n;
|
|
|
|
#define PM_CORE_PUSH(n, x) _PM_PUSH(n, x, , COREMMR_BASE)
|
|
|
|
#define PM_CORE_POP(n, x) _PM_POP(n, x, , COREMMR_BASE)
|
|
|
|
#define PM_SYS_PUSH(n, x) _PM_PUSH(n, x, , SYSMMR_BASE)
|
|
|
|
#define PM_SYS_POP(n, x) _PM_POP(n, x, , SYSMMR_BASE)
|
|
|
|
#define PM_SYS_PUSH16(n, x) _PM_PUSH(n, x, w, SYSMMR_BASE)
|
|
|
|
#define PM_SYS_POP16(n, x) _PM_POP(n, x, w, SYSMMR_BASE)
|
2011-06-26 18:11:24 +00:00
|
|
|
|
2008-07-19 08:57:32 +00:00
|
|
|
ENTRY(_do_hibernate)
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/*
|
|
|
|
* Save the core regs early so we can blow them away when
|
|
|
|
* saving/restoring MMR states
|
|
|
|
*/
|
|
|
|
[--sp] = (R7:0, P5:0);
|
2008-07-19 08:57:32 +00:00
|
|
|
[--sp] = fp;
|
|
|
|
[--sp] = usp;
|
|
|
|
|
|
|
|
[--sp] = i0;
|
|
|
|
[--sp] = i1;
|
|
|
|
[--sp] = i2;
|
|
|
|
[--sp] = i3;
|
|
|
|
|
|
|
|
[--sp] = m0;
|
|
|
|
[--sp] = m1;
|
|
|
|
[--sp] = m2;
|
|
|
|
[--sp] = m3;
|
|
|
|
|
|
|
|
[--sp] = l0;
|
|
|
|
[--sp] = l1;
|
|
|
|
[--sp] = l2;
|
|
|
|
[--sp] = l3;
|
|
|
|
|
|
|
|
[--sp] = b0;
|
|
|
|
[--sp] = b1;
|
|
|
|
[--sp] = b2;
|
|
|
|
[--sp] = b3;
|
|
|
|
[--sp] = a0.x;
|
|
|
|
[--sp] = a0.w;
|
|
|
|
[--sp] = a1.x;
|
|
|
|
[--sp] = a1.w;
|
|
|
|
|
|
|
|
[--sp] = LC0;
|
|
|
|
[--sp] = LC1;
|
|
|
|
[--sp] = LT0;
|
|
|
|
[--sp] = LT1;
|
|
|
|
[--sp] = LB0;
|
|
|
|
[--sp] = LB1;
|
|
|
|
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/* We can't push RETI directly as that'll change IPEND[4] */
|
|
|
|
r7 = RETI;
|
|
|
|
[--sp] = RETS;
|
2008-07-19 08:57:32 +00:00
|
|
|
[--sp] = ASTAT;
|
|
|
|
[--sp] = CYCLES;
|
|
|
|
[--sp] = CYCLES2;
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
[--sp] = SYSCFG;
|
2008-07-19 08:57:32 +00:00
|
|
|
[--sp] = RETX;
|
|
|
|
[--sp] = SEQSTAT;
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
[--sp] = r7;
|
|
|
|
|
|
|
|
/* Save first func arg in M3 */
|
|
|
|
M3 = R0;
|
|
|
|
|
|
|
|
/* Save system MMRs */
|
|
|
|
FP.H = hi(SYSMMR_BASE);
|
|
|
|
FP.L = lo(SYSMMR_BASE);
|
|
|
|
|
|
|
|
#ifdef SIC_IMASK0
|
|
|
|
PM_SYS_PUSH(0, SIC_IMASK0)
|
|
|
|
PM_SYS_PUSH(1, SIC_IMASK1)
|
|
|
|
# ifdef SIC_IMASK2
|
|
|
|
PM_SYS_PUSH(2, SIC_IMASK2)
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
PM_SYS_PUSH(0, SIC_IMASK)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR0
|
|
|
|
PM_SYS_PUSH(3, SIC_IAR0)
|
|
|
|
PM_SYS_PUSH(4, SIC_IAR1)
|
|
|
|
PM_SYS_PUSH(5, SIC_IAR2)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR3
|
|
|
|
PM_SYS_PUSH(6, SIC_IAR3)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR4
|
|
|
|
PM_SYS_PUSH(7, SIC_IAR4)
|
|
|
|
PM_SYS_PUSH(8, SIC_IAR5)
|
|
|
|
PM_SYS_PUSH(9, SIC_IAR6)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR7
|
|
|
|
PM_SYS_PUSH(10, SIC_IAR7)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR8
|
|
|
|
PM_SYS_PUSH(11, SIC_IAR8)
|
|
|
|
PM_SYS_PUSH(12, SIC_IAR9)
|
|
|
|
PM_SYS_PUSH(13, SIC_IAR10)
|
|
|
|
#endif
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
#ifdef SIC_IAR11
|
|
|
|
PM_SYS_PUSH(0, SIC_IAR11)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SIC_IWR
|
|
|
|
PM_SYS_PUSH(1, SIC_IWR)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IWR0
|
|
|
|
PM_SYS_PUSH(1, SIC_IWR0)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IWR1
|
|
|
|
PM_SYS_PUSH(2, SIC_IWR1)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IWR2
|
|
|
|
PM_SYS_PUSH(3, SIC_IWR2)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef PINT0_ASSIGN
|
|
|
|
PM_SYS_PUSH(4, PINT0_MASK_SET)
|
|
|
|
PM_SYS_PUSH(5, PINT1_MASK_SET)
|
|
|
|
PM_SYS_PUSH(6, PINT2_MASK_SET)
|
|
|
|
PM_SYS_PUSH(7, PINT3_MASK_SET)
|
|
|
|
PM_SYS_PUSH(8, PINT0_ASSIGN)
|
|
|
|
PM_SYS_PUSH(9, PINT1_ASSIGN)
|
|
|
|
PM_SYS_PUSH(10, PINT2_ASSIGN)
|
|
|
|
PM_SYS_PUSH(11, PINT3_ASSIGN)
|
|
|
|
PM_SYS_PUSH(12, PINT0_INVERT_SET)
|
|
|
|
PM_SYS_PUSH(13, PINT1_INVERT_SET)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
PM_SYS_PUSH(0, PINT2_INVERT_SET)
|
|
|
|
PM_SYS_PUSH(1, PINT3_INVERT_SET)
|
|
|
|
PM_SYS_PUSH(2, PINT0_EDGE_SET)
|
|
|
|
PM_SYS_PUSH(3, PINT1_EDGE_SET)
|
|
|
|
PM_SYS_PUSH(4, PINT2_EDGE_SET)
|
|
|
|
PM_SYS_PUSH(5, PINT3_EDGE_SET)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
PM_SYS_PUSH16(6, SYSCR)
|
|
|
|
|
|
|
|
PM_SYS_PUSH16(7, EBIU_AMGCTL)
|
|
|
|
PM_SYS_PUSH(8, EBIU_AMBCTL0)
|
|
|
|
PM_SYS_PUSH(9, EBIU_AMBCTL1)
|
|
|
|
#ifdef EBIU_FCTL
|
|
|
|
PM_SYS_PUSH(10, EBIU_MBSCTL)
|
|
|
|
PM_SYS_PUSH(11, EBIU_MODE)
|
|
|
|
PM_SYS_PUSH(12, EBIU_FCTL)
|
|
|
|
PM_PUSH_SYNC(12)
|
|
|
|
#else
|
|
|
|
PM_PUSH_SYNC(9)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Save Core MMRs */
|
|
|
|
I0.H = hi(COREMMR_BASE);
|
|
|
|
I0.L = lo(COREMMR_BASE);
|
|
|
|
I1 = I0;
|
|
|
|
I2 = I0;
|
|
|
|
I3 = I0;
|
|
|
|
B0 = I0;
|
|
|
|
B1 = I0;
|
|
|
|
B2 = I0;
|
|
|
|
B3 = I0;
|
|
|
|
I1.L = lo(DCPLB_ADDR0);
|
|
|
|
I2.L = lo(DCPLB_DATA0);
|
|
|
|
I3.L = lo(ICPLB_ADDR0);
|
|
|
|
B0.L = lo(ICPLB_DATA0);
|
|
|
|
B1.L = lo(EVT2);
|
|
|
|
B2.L = lo(IMASK);
|
|
|
|
B3.L = lo(TCNTL);
|
|
|
|
|
|
|
|
/* DCPLB Addr */
|
|
|
|
FP = I1;
|
|
|
|
PM_PUSH(0, DCPLB_ADDR0)
|
|
|
|
PM_PUSH(1, DCPLB_ADDR1)
|
|
|
|
PM_PUSH(2, DCPLB_ADDR2)
|
|
|
|
PM_PUSH(3, DCPLB_ADDR3)
|
|
|
|
PM_PUSH(4, DCPLB_ADDR4)
|
|
|
|
PM_PUSH(5, DCPLB_ADDR5)
|
|
|
|
PM_PUSH(6, DCPLB_ADDR6)
|
|
|
|
PM_PUSH(7, DCPLB_ADDR7)
|
|
|
|
PM_PUSH(8, DCPLB_ADDR8)
|
|
|
|
PM_PUSH(9, DCPLB_ADDR9)
|
|
|
|
PM_PUSH(10, DCPLB_ADDR10)
|
|
|
|
PM_PUSH(11, DCPLB_ADDR11)
|
|
|
|
PM_PUSH(12, DCPLB_ADDR12)
|
|
|
|
PM_PUSH(13, DCPLB_ADDR13)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
PM_PUSH(0, DCPLB_ADDR14)
|
|
|
|
PM_PUSH(1, DCPLB_ADDR15)
|
|
|
|
|
|
|
|
/* DCPLB Data */
|
|
|
|
FP = I2;
|
|
|
|
PM_PUSH(2, DCPLB_DATA0)
|
|
|
|
PM_PUSH(3, DCPLB_DATA1)
|
|
|
|
PM_PUSH(4, DCPLB_DATA2)
|
|
|
|
PM_PUSH(5, DCPLB_DATA3)
|
|
|
|
PM_PUSH(6, DCPLB_DATA4)
|
|
|
|
PM_PUSH(7, DCPLB_DATA5)
|
|
|
|
PM_PUSH(8, DCPLB_DATA6)
|
|
|
|
PM_PUSH(9, DCPLB_DATA7)
|
|
|
|
PM_PUSH(10, DCPLB_DATA8)
|
|
|
|
PM_PUSH(11, DCPLB_DATA9)
|
|
|
|
PM_PUSH(12, DCPLB_DATA10)
|
|
|
|
PM_PUSH(13, DCPLB_DATA11)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
PM_PUSH(0, DCPLB_DATA12)
|
|
|
|
PM_PUSH(1, DCPLB_DATA13)
|
|
|
|
PM_PUSH(2, DCPLB_DATA14)
|
|
|
|
PM_PUSH(3, DCPLB_DATA15)
|
|
|
|
|
|
|
|
/* ICPLB Addr */
|
|
|
|
FP = I3;
|
|
|
|
PM_PUSH(4, ICPLB_ADDR0)
|
|
|
|
PM_PUSH(5, ICPLB_ADDR1)
|
|
|
|
PM_PUSH(6, ICPLB_ADDR2)
|
|
|
|
PM_PUSH(7, ICPLB_ADDR3)
|
|
|
|
PM_PUSH(8, ICPLB_ADDR4)
|
|
|
|
PM_PUSH(9, ICPLB_ADDR5)
|
|
|
|
PM_PUSH(10, ICPLB_ADDR6)
|
|
|
|
PM_PUSH(11, ICPLB_ADDR7)
|
|
|
|
PM_PUSH(12, ICPLB_ADDR8)
|
|
|
|
PM_PUSH(13, ICPLB_ADDR9)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
PM_PUSH(0, ICPLB_ADDR10)
|
|
|
|
PM_PUSH(1, ICPLB_ADDR11)
|
|
|
|
PM_PUSH(2, ICPLB_ADDR12)
|
|
|
|
PM_PUSH(3, ICPLB_ADDR13)
|
|
|
|
PM_PUSH(4, ICPLB_ADDR14)
|
|
|
|
PM_PUSH(5, ICPLB_ADDR15)
|
|
|
|
|
|
|
|
/* ICPLB Data */
|
|
|
|
FP = B0;
|
|
|
|
PM_PUSH(6, ICPLB_DATA0)
|
|
|
|
PM_PUSH(7, ICPLB_DATA1)
|
|
|
|
PM_PUSH(8, ICPLB_DATA2)
|
|
|
|
PM_PUSH(9, ICPLB_DATA3)
|
|
|
|
PM_PUSH(10, ICPLB_DATA4)
|
|
|
|
PM_PUSH(11, ICPLB_DATA5)
|
|
|
|
PM_PUSH(12, ICPLB_DATA6)
|
|
|
|
PM_PUSH(13, ICPLB_DATA7)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
PM_PUSH(0, ICPLB_DATA8)
|
|
|
|
PM_PUSH(1, ICPLB_DATA9)
|
|
|
|
PM_PUSH(2, ICPLB_DATA10)
|
|
|
|
PM_PUSH(3, ICPLB_DATA11)
|
|
|
|
PM_PUSH(4, ICPLB_DATA12)
|
|
|
|
PM_PUSH(5, ICPLB_DATA13)
|
|
|
|
PM_PUSH(6, ICPLB_DATA14)
|
|
|
|
PM_PUSH(7, ICPLB_DATA15)
|
|
|
|
|
|
|
|
/* Event Vectors */
|
|
|
|
FP = B1;
|
|
|
|
PM_PUSH(8, EVT2)
|
|
|
|
PM_PUSH(9, EVT3)
|
|
|
|
FP += 4; /* EVT4 */
|
|
|
|
PM_PUSH(10, EVT5)
|
|
|
|
PM_PUSH(11, EVT6)
|
|
|
|
PM_PUSH(12, EVT7)
|
|
|
|
PM_PUSH(13, EVT8)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
PM_PUSH(0, EVT9)
|
|
|
|
PM_PUSH(1, EVT10)
|
|
|
|
PM_PUSH(2, EVT11)
|
|
|
|
PM_PUSH(3, EVT12)
|
|
|
|
PM_PUSH(4, EVT13)
|
|
|
|
PM_PUSH(5, EVT14)
|
|
|
|
PM_PUSH(6, EVT15)
|
|
|
|
|
|
|
|
/* CEC */
|
|
|
|
FP = B2;
|
|
|
|
PM_PUSH(7, IMASK)
|
|
|
|
FP += 4; /* IPEND */
|
|
|
|
PM_PUSH(8, ILAT)
|
|
|
|
PM_PUSH(9, IPRIO)
|
|
|
|
|
|
|
|
/* Core Timer */
|
|
|
|
FP = B3;
|
|
|
|
PM_PUSH(10, TCNTL)
|
|
|
|
PM_PUSH(11, TPERIOD)
|
|
|
|
PM_PUSH(12, TSCALE)
|
|
|
|
PM_PUSH(13, TCOUNT)
|
|
|
|
PM_PUSH_SYNC(13)
|
|
|
|
|
|
|
|
/* Misc non-contiguous registers */
|
|
|
|
FP = I0;
|
|
|
|
PM_CORE_PUSH(0, DMEM_CONTROL);
|
|
|
|
PM_CORE_PUSH(1, IMEM_CONTROL);
|
|
|
|
PM_CORE_PUSH(2, TBUFCTL);
|
|
|
|
PM_PUSH_SYNC(2)
|
|
|
|
|
|
|
|
/* Setup args to hibernate mode early for pipeline optimization */
|
|
|
|
R0 = M3;
|
|
|
|
P1.H = _hibernate_mode;
|
|
|
|
P1.L = _hibernate_mode;
|
2008-07-19 08:57:32 +00:00
|
|
|
|
|
|
|
/* Save Magic, return address and Stack Pointer */
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
P0 = 0;
|
|
|
|
R1.H = 0xDEAD; /* Hibernate Magic */
|
|
|
|
R1.L = 0xBEEF;
|
|
|
|
R2.H = .Lpm_resume_here;
|
|
|
|
R2.L = .Lpm_resume_here;
|
|
|
|
[P0++] = R1; /* Store Hibernate Magic */
|
|
|
|
[P0++] = R2; /* Save Return Address */
|
2008-07-19 08:57:32 +00:00
|
|
|
[P0++] = SP; /* Save Stack Pointer */
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
|
|
|
|
/* Must use an indirect call as we need to jump to L1 */
|
|
|
|
call (P1); /* Goodbye */
|
2008-07-19 08:57:32 +00:00
|
|
|
|
2008-07-16 09:07:26 +00:00
|
|
|
.Lpm_resume_here:
|
2008-07-19 08:57:32 +00:00
|
|
|
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
/* Restore Core MMRs */
|
|
|
|
I0.H = hi(COREMMR_BASE);
|
|
|
|
I0.L = lo(COREMMR_BASE);
|
|
|
|
I1 = I0;
|
|
|
|
I2 = I0;
|
|
|
|
I3 = I0;
|
|
|
|
B0 = I0;
|
|
|
|
B1 = I0;
|
|
|
|
B2 = I0;
|
|
|
|
B3 = I0;
|
|
|
|
I1.L = lo(DCPLB_ADDR15);
|
|
|
|
I2.L = lo(DCPLB_DATA15);
|
|
|
|
I3.L = lo(ICPLB_ADDR15);
|
|
|
|
B0.L = lo(ICPLB_DATA15);
|
|
|
|
B1.L = lo(EVT15);
|
|
|
|
B2.L = lo(IPRIO);
|
|
|
|
B3.L = lo(TCOUNT);
|
|
|
|
|
|
|
|
/* Misc non-contiguous registers */
|
|
|
|
FP = I0;
|
|
|
|
PM_POP_SYNC(2)
|
|
|
|
PM_CORE_POP(2, TBUFCTL)
|
|
|
|
PM_CORE_POP(1, IMEM_CONTROL)
|
|
|
|
PM_CORE_POP(0, DMEM_CONTROL)
|
|
|
|
|
|
|
|
/* Core Timer */
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
FP = B3;
|
|
|
|
PM_POP(13, TCOUNT)
|
|
|
|
PM_POP(12, TSCALE)
|
|
|
|
PM_POP(11, TPERIOD)
|
|
|
|
PM_POP(10, TCNTL)
|
|
|
|
|
|
|
|
/* CEC */
|
|
|
|
FP = B2;
|
|
|
|
PM_POP(9, IPRIO)
|
|
|
|
PM_POP(8, ILAT)
|
|
|
|
FP += -4; /* IPEND */
|
|
|
|
PM_POP(7, IMASK)
|
|
|
|
|
|
|
|
/* Event Vectors */
|
|
|
|
FP = B1;
|
|
|
|
PM_POP(6, EVT15)
|
|
|
|
PM_POP(5, EVT14)
|
|
|
|
PM_POP(4, EVT13)
|
|
|
|
PM_POP(3, EVT12)
|
|
|
|
PM_POP(2, EVT11)
|
|
|
|
PM_POP(1, EVT10)
|
|
|
|
PM_POP(0, EVT9)
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
PM_POP(13, EVT8)
|
|
|
|
PM_POP(12, EVT7)
|
|
|
|
PM_POP(11, EVT6)
|
|
|
|
PM_POP(10, EVT5)
|
|
|
|
FP += -4; /* EVT4 */
|
|
|
|
PM_POP(9, EVT3)
|
|
|
|
PM_POP(8, EVT2)
|
|
|
|
|
|
|
|
/* ICPLB Data */
|
|
|
|
FP = B0;
|
|
|
|
PM_POP(7, ICPLB_DATA15)
|
|
|
|
PM_POP(6, ICPLB_DATA14)
|
|
|
|
PM_POP(5, ICPLB_DATA13)
|
|
|
|
PM_POP(4, ICPLB_DATA12)
|
|
|
|
PM_POP(3, ICPLB_DATA11)
|
|
|
|
PM_POP(2, ICPLB_DATA10)
|
|
|
|
PM_POP(1, ICPLB_DATA9)
|
|
|
|
PM_POP(0, ICPLB_DATA8)
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
PM_POP(13, ICPLB_DATA7)
|
|
|
|
PM_POP(12, ICPLB_DATA6)
|
|
|
|
PM_POP(11, ICPLB_DATA5)
|
|
|
|
PM_POP(10, ICPLB_DATA4)
|
|
|
|
PM_POP(9, ICPLB_DATA3)
|
|
|
|
PM_POP(8, ICPLB_DATA2)
|
|
|
|
PM_POP(7, ICPLB_DATA1)
|
|
|
|
PM_POP(6, ICPLB_DATA0)
|
|
|
|
|
|
|
|
/* ICPLB Addr */
|
|
|
|
FP = I3;
|
|
|
|
PM_POP(5, ICPLB_ADDR15)
|
|
|
|
PM_POP(4, ICPLB_ADDR14)
|
|
|
|
PM_POP(3, ICPLB_ADDR13)
|
|
|
|
PM_POP(2, ICPLB_ADDR12)
|
|
|
|
PM_POP(1, ICPLB_ADDR11)
|
|
|
|
PM_POP(0, ICPLB_ADDR10)
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
PM_POP(13, ICPLB_ADDR9)
|
|
|
|
PM_POP(12, ICPLB_ADDR8)
|
|
|
|
PM_POP(11, ICPLB_ADDR7)
|
|
|
|
PM_POP(10, ICPLB_ADDR6)
|
|
|
|
PM_POP(9, ICPLB_ADDR5)
|
|
|
|
PM_POP(8, ICPLB_ADDR4)
|
|
|
|
PM_POP(7, ICPLB_ADDR3)
|
|
|
|
PM_POP(6, ICPLB_ADDR2)
|
|
|
|
PM_POP(5, ICPLB_ADDR1)
|
|
|
|
PM_POP(4, ICPLB_ADDR0)
|
|
|
|
|
|
|
|
/* DCPLB Data */
|
|
|
|
FP = I2;
|
|
|
|
PM_POP(3, DCPLB_DATA15)
|
|
|
|
PM_POP(2, DCPLB_DATA14)
|
|
|
|
PM_POP(1, DCPLB_DATA13)
|
|
|
|
PM_POP(0, DCPLB_DATA12)
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
PM_POP(13, DCPLB_DATA11)
|
|
|
|
PM_POP(12, DCPLB_DATA10)
|
|
|
|
PM_POP(11, DCPLB_DATA9)
|
|
|
|
PM_POP(10, DCPLB_DATA8)
|
|
|
|
PM_POP(9, DCPLB_DATA7)
|
|
|
|
PM_POP(8, DCPLB_DATA6)
|
|
|
|
PM_POP(7, DCPLB_DATA5)
|
|
|
|
PM_POP(6, DCPLB_DATA4)
|
|
|
|
PM_POP(5, DCPLB_DATA3)
|
|
|
|
PM_POP(4, DCPLB_DATA2)
|
|
|
|
PM_POP(3, DCPLB_DATA1)
|
|
|
|
PM_POP(2, DCPLB_DATA0)
|
|
|
|
|
|
|
|
/* DCPLB Addr */
|
|
|
|
FP = I1;
|
|
|
|
PM_POP(1, DCPLB_ADDR15)
|
|
|
|
PM_POP(0, DCPLB_ADDR14)
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
PM_POP(13, DCPLB_ADDR13)
|
|
|
|
PM_POP(12, DCPLB_ADDR12)
|
|
|
|
PM_POP(11, DCPLB_ADDR11)
|
|
|
|
PM_POP(10, DCPLB_ADDR10)
|
|
|
|
PM_POP(9, DCPLB_ADDR9)
|
|
|
|
PM_POP(8, DCPLB_ADDR8)
|
|
|
|
PM_POP(7, DCPLB_ADDR7)
|
|
|
|
PM_POP(6, DCPLB_ADDR6)
|
|
|
|
PM_POP(5, DCPLB_ADDR5)
|
|
|
|
PM_POP(4, DCPLB_ADDR4)
|
|
|
|
PM_POP(3, DCPLB_ADDR3)
|
|
|
|
PM_POP(2, DCPLB_ADDR2)
|
|
|
|
PM_POP(1, DCPLB_ADDR1)
|
|
|
|
PM_POP(0, DCPLB_ADDR0)
|
|
|
|
|
|
|
|
/* Restore System MMRs */
|
|
|
|
FP.H = hi(SYSMMR_BASE);
|
|
|
|
FP.L = lo(SYSMMR_BASE);
|
|
|
|
|
|
|
|
#ifdef EBIU_FCTL
|
|
|
|
PM_POP_SYNC(12)
|
|
|
|
PM_SYS_POP(12, EBIU_FCTL)
|
|
|
|
PM_SYS_POP(11, EBIU_MODE)
|
|
|
|
PM_SYS_POP(10, EBIU_MBSCTL)
|
|
|
|
#else
|
|
|
|
PM_POP_SYNC(9)
|
|
|
|
#endif
|
|
|
|
PM_SYS_POP(9, EBIU_AMBCTL1)
|
|
|
|
PM_SYS_POP(8, EBIU_AMBCTL0)
|
|
|
|
PM_SYS_POP16(7, EBIU_AMGCTL)
|
|
|
|
|
|
|
|
PM_SYS_POP16(6, SYSCR)
|
|
|
|
|
|
|
|
#ifdef PINT0_ASSIGN
|
|
|
|
PM_SYS_POP(5, PINT3_EDGE_SET)
|
|
|
|
PM_SYS_POP(4, PINT2_EDGE_SET)
|
|
|
|
PM_SYS_POP(3, PINT1_EDGE_SET)
|
|
|
|
PM_SYS_POP(2, PINT0_EDGE_SET)
|
|
|
|
PM_SYS_POP(1, PINT3_INVERT_SET)
|
|
|
|
PM_SYS_POP(0, PINT2_INVERT_SET)
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
PM_SYS_POP(13, PINT1_INVERT_SET)
|
|
|
|
PM_SYS_POP(12, PINT0_INVERT_SET)
|
|
|
|
PM_SYS_POP(11, PINT3_ASSIGN)
|
|
|
|
PM_SYS_POP(10, PINT2_ASSIGN)
|
|
|
|
PM_SYS_POP(9, PINT1_ASSIGN)
|
|
|
|
PM_SYS_POP(8, PINT0_ASSIGN)
|
|
|
|
PM_SYS_POP(7, PINT3_MASK_SET)
|
|
|
|
PM_SYS_POP(6, PINT2_MASK_SET)
|
|
|
|
PM_SYS_POP(5, PINT1_MASK_SET)
|
|
|
|
PM_SYS_POP(4, PINT0_MASK_SET)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SIC_IWR2
|
|
|
|
PM_SYS_POP(3, SIC_IWR2)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IWR1
|
|
|
|
PM_SYS_POP(2, SIC_IWR1)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IWR0
|
|
|
|
PM_SYS_POP(1, SIC_IWR0)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IWR
|
|
|
|
PM_SYS_POP(1, SIC_IWR)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SIC_IAR11
|
|
|
|
PM_SYS_POP(0, SIC_IAR11)
|
|
|
|
#endif
|
|
|
|
PM_POP_SYNC(13)
|
|
|
|
#ifdef SIC_IAR8
|
|
|
|
PM_SYS_POP(13, SIC_IAR10)
|
|
|
|
PM_SYS_POP(12, SIC_IAR9)
|
|
|
|
PM_SYS_POP(11, SIC_IAR8)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR7
|
|
|
|
PM_SYS_POP(10, SIC_IAR7)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR6
|
|
|
|
PM_SYS_POP(9, SIC_IAR6)
|
|
|
|
PM_SYS_POP(8, SIC_IAR5)
|
|
|
|
PM_SYS_POP(7, SIC_IAR4)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR3
|
|
|
|
PM_SYS_POP(6, SIC_IAR3)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IAR0
|
|
|
|
PM_SYS_POP(5, SIC_IAR2)
|
|
|
|
PM_SYS_POP(4, SIC_IAR1)
|
|
|
|
PM_SYS_POP(3, SIC_IAR0)
|
|
|
|
#endif
|
|
|
|
#ifdef SIC_IMASK0
|
|
|
|
# ifdef SIC_IMASK2
|
|
|
|
PM_SYS_POP(2, SIC_IMASK2)
|
|
|
|
# endif
|
|
|
|
PM_SYS_POP(1, SIC_IMASK1)
|
|
|
|
PM_SYS_POP(0, SIC_IMASK0)
|
|
|
|
#else
|
|
|
|
PM_SYS_POP(0, SIC_IMASK)
|
|
|
|
#endif
|
|
|
|
|
2008-07-19 08:57:32 +00:00
|
|
|
/* Restore Core Registers */
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
RETI = [sp++];
|
2008-07-19 08:57:32 +00:00
|
|
|
SEQSTAT = [sp++];
|
|
|
|
RETX = [sp++];
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
SYSCFG = [sp++];
|
2008-07-19 08:57:32 +00:00
|
|
|
CYCLES2 = [sp++];
|
|
|
|
CYCLES = [sp++];
|
|
|
|
ASTAT = [sp++];
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
RETS = [sp++];
|
2008-07-19 08:57:32 +00:00
|
|
|
|
|
|
|
LB1 = [sp++];
|
|
|
|
LB0 = [sp++];
|
|
|
|
LT1 = [sp++];
|
|
|
|
LT0 = [sp++];
|
|
|
|
LC1 = [sp++];
|
|
|
|
LC0 = [sp++];
|
|
|
|
|
|
|
|
a1.w = [sp++];
|
|
|
|
a1.x = [sp++];
|
|
|
|
a0.w = [sp++];
|
|
|
|
a0.x = [sp++];
|
|
|
|
b3 = [sp++];
|
|
|
|
b2 = [sp++];
|
|
|
|
b1 = [sp++];
|
|
|
|
b0 = [sp++];
|
|
|
|
|
|
|
|
l3 = [sp++];
|
|
|
|
l2 = [sp++];
|
|
|
|
l1 = [sp++];
|
|
|
|
l0 = [sp++];
|
|
|
|
|
|
|
|
m3 = [sp++];
|
|
|
|
m2 = [sp++];
|
|
|
|
m1 = [sp++];
|
|
|
|
m0 = [sp++];
|
|
|
|
|
|
|
|
i3 = [sp++];
|
|
|
|
i2 = [sp++];
|
|
|
|
i1 = [sp++];
|
|
|
|
i0 = [sp++];
|
|
|
|
|
|
|
|
usp = [sp++];
|
|
|
|
fp = [sp++];
|
Blackfin: dpmc: optimize hibernate/resume path
The current save logic used in hibernation is to do a MMR load (base +
offset) into a register, and then push that onto the stack. Then when
restoring, pop off the stack into a register followed by a MMR store
(base + offset). These use plenty of 32bit insns rather than 16bit,
are pretty long winded, and full of pipeline bubbles.
So, by taking advantage of MMRs that are contiguous, the multi-register
push/pop insn, and register abuse, we can shrink this code considerably.
When saving, the new logic does a lot of loads into the data and pointer
registers before executing a single multi-register push insn. Then when
restoring, we do a single multi-register pop insn followed by a lot of
stores. Overall, this allows us to cut the insn count by ~30%, the code
size by ~45%, and drastically reduce the register hazards that trigger
bubbles in the pipeline.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27 03:11:19 +00:00
|
|
|
(R7:0, P5:0) = [sp++];
|
2008-07-19 08:57:32 +00:00
|
|
|
|
|
|
|
[--sp] = RETI; /* Clear Global Interrupt Disable */
|
|
|
|
SP += 4;
|
|
|
|
|
|
|
|
RTS;
|
2008-07-16 09:07:26 +00:00
|
|
|
ENDPROC(_do_hibernate)
|