Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a602affa
Commit
a602affa
authored
Oct 05, 2021
by
Thierry Reding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-5.16/soc' into for-5.16/cpuidle
parents
f083c4b1
0d7281b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
7 deletions
+35
-7
include/soc/tegra/fuse.h
include/soc/tegra/fuse.h
+26
-5
include/soc/tegra/irq.h
include/soc/tegra/irq.h
+8
-1
include/soc/tegra/pm.h
include/soc/tegra/pm.h
+1
-1
No files found.
include/soc/tegra/fuse.h
View file @
a602affa
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
#ifndef __SOC_TEGRA_FUSE_H__
#ifndef __SOC_TEGRA_FUSE_H__
#define __SOC_TEGRA_FUSE_H__
#define __SOC_TEGRA_FUSE_H__
#include <linux/types.h>
#define TEGRA20 0x20
#define TEGRA20 0x20
#define TEGRA30 0x30
#define TEGRA30 0x30
#define TEGRA114 0x35
#define TEGRA114 0x35
...
@@ -22,11 +24,6 @@
...
@@ -22,11 +24,6 @@
#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__
u32
tegra_read_chipid
(
void
);
u8
tegra_get_chip_id
(
void
);
u8
tegra_get_platform
(
void
);
bool
tegra_is_silicon
(
void
);
enum
tegra_revision
{
enum
tegra_revision
{
TEGRA_REVISION_UNKNOWN
=
0
,
TEGRA_REVISION_UNKNOWN
=
0
,
TEGRA_REVISION_A01
,
TEGRA_REVISION_A01
,
...
@@ -57,6 +54,10 @@ extern struct tegra_sku_info tegra_sku_info;
...
@@ -57,6 +54,10 @@ extern struct tegra_sku_info tegra_sku_info;
u32
tegra_read_straps
(
void
);
u32
tegra_read_straps
(
void
);
u32
tegra_read_ram_code
(
void
);
u32
tegra_read_ram_code
(
void
);
int
tegra_fuse_readl
(
unsigned
long
offset
,
u32
*
value
);
int
tegra_fuse_readl
(
unsigned
long
offset
,
u32
*
value
);
u32
tegra_read_chipid
(
void
);
u8
tegra_get_chip_id
(
void
);
u8
tegra_get_platform
(
void
);
bool
tegra_is_silicon
(
void
);
#else
#else
static
struct
tegra_sku_info
tegra_sku_info
__maybe_unused
;
static
struct
tegra_sku_info
tegra_sku_info
__maybe_unused
;
...
@@ -74,6 +75,26 @@ static inline int tegra_fuse_readl(unsigned long offset, u32 *value)
...
@@ -74,6 +75,26 @@ static inline int tegra_fuse_readl(unsigned long offset, u32 *value)
{
{
return
-
ENODEV
;
return
-
ENODEV
;
}
}
static
inline
u32
tegra_read_chipid
(
void
)
{
return
0
;
}
static
inline
u8
tegra_get_chip_id
(
void
)
{
return
0
;
}
static
inline
u8
tegra_get_platform
(
void
)
{
return
0
;
}
static
inline
bool
tegra_is_silicon
(
void
)
{
return
false
;
}
#endif
#endif
struct
device
*
tegra_soc_device_register
(
void
);
struct
device
*
tegra_soc_device_register
(
void
);
...
...
include/soc/tegra/irq.h
View file @
a602affa
...
@@ -6,8 +6,15 @@
...
@@ -6,8 +6,15 @@
#ifndef __SOC_TEGRA_IRQ_H
#ifndef __SOC_TEGRA_IRQ_H
#define __SOC_TEGRA_IRQ_H
#define __SOC_TEGRA_IRQ_H
#if defined(CONFIG_ARM)
#include <linux/types.h>
#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA)
bool
tegra_pending_sgi
(
void
);
bool
tegra_pending_sgi
(
void
);
#else
static
inline
bool
tegra_pending_sgi
(
void
)
{
return
false
;
}
#endif
#endif
#endif
/* __SOC_TEGRA_IRQ_H */
#endif
/* __SOC_TEGRA_IRQ_H */
include/soc/tegra/pm.h
View file @
a602affa
...
@@ -17,7 +17,7 @@ enum tegra_suspend_mode {
...
@@ -17,7 +17,7 @@ enum tegra_suspend_mode {
TEGRA_SUSPEND_NOT_READY
,
TEGRA_SUSPEND_NOT_READY
,
};
};
#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM)
#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM)
&& defined(CONFIG_ARCH_TEGRA)
enum
tegra_suspend_mode
enum
tegra_suspend_mode
tegra_pm_validate_suspend_mode
(
enum
tegra_suspend_mode
mode
);
tegra_pm_validate_suspend_mode
(
enum
tegra_suspend_mode
mode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment