Skip to content

Commit

Permalink
Merge branch 'for-np' of git://git.wormnet.eu/alex/ts78xx into orion/…
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
Nicolas Pitre committed Feb 20, 2009
2 parents 402a917 + 39008f9 commit 22fc1db
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 109 deletions.
2 changes: 1 addition & 1 deletion arch/arm/configs/orion5x_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ CONFIG_RTC_DRV_S35390A=y
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
CONFIG_RTC_DRV_M48T86=y
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_V3020 is not set

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-orion5x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ config MACH_WRT350N_V2

config MACH_TS78XX
bool "Technologic Systems TS-78xx"
select PM
help
Say 'Y' here if you want your kernel to support the
Technologic Systems TS-78xx platform.
Expand Down
27 changes: 27 additions & 0 deletions arch/arm/mach-orion5x/ts78xx-fpga.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#define FPGAID(_magic, _rev) ((_magic << 8) + _rev)

/*
* get yer id's from http://ts78xx.digriz.org.uk/
* do *not* make up your own or 'borrow' any!
*/
enum fpga_ids {
/* Technologic Systems */
TS7800_REV_B = FPGAID(0x00b480, 0x03),
};

struct fpga_device {
unsigned present:1;
unsigned init:1;
};

struct fpga_devices {
/* Technologic Systems */
struct fpga_device ts_rtc;
};

struct ts78xx_fpga_data {
unsigned int id;
int state;

struct fpga_devices supports;
};
Loading

0 comments on commit 22fc1db

Please sign in to comment.