-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'xtensa-20121218' of git://github.com/czankel/xtensa-linux
Pull Xtensa patchset from Chris Zankel: "This contains support of device trees, many fixes, and code clean-ups" * tag 'xtensa-20121218' of git://github.com/czankel/xtensa-linux: (33 commits) xtensa: don't try to build DTB when OF is disabled xtensa: set the correct ethernet address for xtfpga xtensa: clean up files to make them code-style compliant xtensa: provide endianness macro for sparse xtensa: fix RASID SR initialization xtensa: initialize CPENABLE SR when core has one xtensa: reset all timers on initialization Use for_each_compatible_node() macro. xtensa: add XTFPGA DTS xtensa: add support for the XTFPGA boards xtensa: add device trees support xtensa: add IRQ domains support xtensa: add U-Boot image support (uImage). xtensa: clean up boot make rules xtensa: fix mb and wmb definitions xtensa: add s32c1i-based spinlock implementations xtensa: add s32c1i-based bitops implementations xtensa: add s32c1i-based atomic ops implementations xtensa: add s32c1i sanity check xtensa: add trap_set_handler function ...
- Loading branch information
Showing
81 changed files
with
2,140 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
We Have Atomic Operation Control (ATOMCTL) Register. | ||
This register determines the effect of using a S32C1I instruction | ||
with various combinations of: | ||
|
||
1. With and without an Coherent Cache Controller which | ||
can do Atomic Transactions to the memory internally. | ||
|
||
2. With and without An Intelligent Memory Controller which | ||
can do Atomic Transactions itself. | ||
|
||
The Core comes up with a default value of for the three types of cache ops: | ||
|
||
0x28: (WB: Internal, WT: Internal, BY:Exception) | ||
|
||
On the FPGA Cards we typically simulate an Intelligent Memory controller | ||
which can implement RCW transactions. For FPGA cards with an External | ||
Memory controller we let it to the atomic operations internally while | ||
doing a Cached (WB) transaction and use the Memory RCW for un-cached | ||
operations. | ||
|
||
For systems without an coherent cache controller, non-MX, we always | ||
use the memory controllers RCW, thought non-MX controlers likely | ||
support the Internal Operation. | ||
|
||
CUSTOMER-WARNING: | ||
Virtually all customers buy their memory controllers from vendors that | ||
don't support atomic RCW memory transactions and will likely want to | ||
configure this register to not use RCW. | ||
|
||
Developers might find using RCW in Bypass mode convenient when testing | ||
with the cache being bypassed; for example studying cache alias problems. | ||
|
||
See Section 4.3.12.4 of ISA; Bits: | ||
|
||
WB WT BY | ||
5 4 | 3 2 | 1 0 | ||
2 Bit | ||
Field | ||
Values WB - Write Back WT - Write Thru BY - Bypass | ||
--------- --------------- ----------------- ---------------- | ||
0 Exception Exception Exception | ||
1 RCW Transaction RCW Transaction RCW Transaction | ||
2 Internal Operation Exception Reserved | ||
3 Reserved Reserved Reserved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# | ||
# This file is subject to the terms and conditions of the GNU General Public | ||
# License. See the file "COPYING" in the main directory of this archive | ||
# for more details. | ||
# | ||
|
||
UIMAGE_LOADADDR = 0xd0001000 | ||
UIMAGE_COMPRESSION = gzip | ||
|
||
$(obj)/../uImage: vmlinux.bin.gz FORCE | ||
$(call if_changed,uimage) | ||
$(Q)$(kecho) ' Kernel: $@ is ready' | ||
|
||
zImage: $(obj)/../uImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/dts-v1/; | ||
/include/ "xtfpga.dtsi" | ||
/include/ "xtfpga-flash-4m.dtsi" | ||
|
||
/ { | ||
compatible = "xtensa,lx60"; | ||
memory@0 { | ||
device_type = "memory"; | ||
reg = <0x00000000 0x04000000>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/dts-v1/; | ||
/include/ "xtfpga.dtsi" | ||
/include/ "xtfpga-flash-16m.dtsi" | ||
|
||
/ { | ||
compatible = "xtensa,ml605"; | ||
memory@0 { | ||
device_type = "memory"; | ||
reg = <0x00000000 0x08000000>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/ { | ||
flash: flash@f8000000 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "cfi-flash"; | ||
reg = <0xf8000000 0x01000000>; | ||
bank-width = <2>; | ||
device-width = <2>; | ||
partition@0x0 { | ||
label = "boot loader area"; | ||
reg = <0x00000000 0x00400000>; | ||
}; | ||
partition@0x400000 { | ||
label = "kernel image"; | ||
reg = <0x00400000 0x00600000>; | ||
}; | ||
partition@0xa00000 { | ||
label = "data"; | ||
reg = <0x00a00000 0x005e0000>; | ||
}; | ||
partition@0xfe0000 { | ||
label = "boot environment"; | ||
reg = <0x00fe0000 0x00020000>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/ { | ||
flash: flash@f8000000 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "cfi-flash"; | ||
reg = <0xf8000000 0x00400000>; | ||
bank-width = <2>; | ||
device-width = <2>; | ||
partition@0x0 { | ||
label = "boot loader area"; | ||
reg = <0x00000000 0x003f0000>; | ||
}; | ||
partition@0x3f0000 { | ||
label = "boot environment"; | ||
reg = <0x003f0000 0x00010000>; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.