Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SCU88 register and SCU90 init values #69

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions arch/arm/mach-aspeed/aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ static void __init do_common_setup(void)
/* SCU setup */
writel(0x01C000FF, AST_IO(AST_BASE_SCU | 0x88));
writel(0xC1C000FF, AST_IO(AST_BASE_SCU | 0x8c));
writel(0x01C0007F, AST_IO(AST_BASE_SCU | 0x88));
writel(0x003FA009, AST_IO(AST_BASE_SCU | 0x90));
writel(0x003FA008, AST_IO(AST_BASE_SCU | 0x90));

/* Setup scratch registers */
writel(0x00000042, AST_IO(AST_BASE_LPC | 0x170));
Expand All @@ -139,7 +138,10 @@ static void __init do_barreleye_setup(void)
/* GPIO setup */
writel(0x9E82FCE7, AST_IO(AST_BASE_GPIO | 0x00));
writel(0x0370E677, AST_IO(AST_BASE_GPIO | 0x04));


/* Barreleye Specific SCU setup */
writel(0x01C00000, AST_IO(AST_BASE_SCU | 0x88));

/*
* Do read/modify/write on power gpio to prevent resetting power on
* reboot
Expand All @@ -164,6 +166,9 @@ static void __init do_palmetto_setup(void)
writel(0x0370E677, AST_IO(AST_BASE_GPIO | 0x04));
writel(0xDF48F7FF, AST_IO(AST_BASE_GPIO | 0x20));
writel(0xC738F202, AST_IO(AST_BASE_GPIO | 0x24));

/* Palmetto Specific SCU setup */
writel(0x01C0007F, AST_IO(AST_BASE_SCU | 0x88));
}

#define SCU_PASSWORD 0x1688A8A8
Expand Down