/* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * * Copyright (C) 2012 Thomas Langer <thomas.langer@lantiq.com> * Copyright (C) 2012 John Crispin <john@phrozen.org> */ #include <linux/init.h> #include <linux/io.h> #include <linux/pm.h> #include <asm/reboot.h> #include <linux/export.h> #include <lantiq_soc.h> /* CPU0 Reset Source Register */ #define SYS1_CPU0RS 0x0040 /* reset cause mask */ #define CPU0RS_MASK 0x0003 /* CPU0 Boot Mode Register */ #define SYS1_BM 0x00a0 /* boot mode mask */ #define BM_MASK 0x0005 /* allow platform code to find out what surce we booted from */
unsigned char ltq_boot_select(void) { return ltq_sys1_r32(SYS1_BM) & BM_MASK; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 102 | 100.00% | 1 | 100.00% |
Total | 102 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 24 | 100.00% | 1 | 100.00% |
Total | 24 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 268 | 100.00% | 2 | 100.00% |
Total | 268 | 100.00% | 2 | 100.00% |