-
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 git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6: xtensa: Fix linker script to include .literal sections xtensa: update s6105_defconfig for ccount calibration xtensa: implement ccount calibration for s6000 xtensa: fix wrong extern declaration renamed in code using it xtensa: register gpio chip before use xtensa: always use correct stack pointer for stack traces xtensa: Fix checksum header file xtensa: Fix architecture specific Kconfig
- Loading branch information
Showing
12 changed files
with
81 additions
and
20 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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# s6000 Makefile | ||
|
||
obj-y += irq.o gpio.o | ||
obj-$(CONFIG_XTENSA_CALIBRATE_CCOUNT) += delay.o |
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,27 @@ | ||
#include <asm/delay.h> | ||
#include <asm/timex.h> | ||
#include <asm/io.h> | ||
#include <variant/hardware.h> | ||
|
||
#define LOOPS 10 | ||
void platform_calibrate_ccount(void) | ||
{ | ||
u32 uninitialized_var(a); | ||
u32 uninitialized_var(u); | ||
u32 b; | ||
u32 tstamp = S6_REG_GREG1 + S6_GREG1_GLOBAL_TIMER; | ||
int i = LOOPS+1; | ||
do { | ||
u32 t = u; | ||
asm volatile( | ||
"1: l32i %0, %2, 0 ;" | ||
" beq %0, %1, 1b ;" | ||
: "=&a"(u) : "a"(t), "a"(tstamp)); | ||
b = xtensa_get_ccount(); | ||
if (i == LOOPS) | ||
a = b; | ||
} while (--i >= 0); | ||
b -= a; | ||
nsec_per_ccount = (LOOPS * 10000) / b; | ||
ccount_per_jiffy = b * (100000UL / (LOOPS * HZ)); | ||
} |
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,6 @@ | ||
#ifndef _XTENSA_VARIANT_S6000_GPIO_H | ||
#define _XTENSA_VARIANT_S6000_GPIO_H | ||
|
||
extern int s6_gpio_init(void); | ||
|
||
#endif /* _XTENSA_VARIANT_S6000_GPIO_H */ |